Added rsx element fields #20

This commit is contained in:
2025-08-02 12:19:04 -05:00
parent 35dcc4d22c
commit d9d107bd80
5 changed files with 34 additions and 26 deletions
+6 -6
View File
@@ -6,33 +6,33 @@ use crate::{
};
pub struct FlexRow {
gap: u16,
pub gap: u16,
children: Mutex<Vec<Arc<Widget>>>,
size: (u16, u16),
}
pub struct FlexCol {
gap: u16,
pub gap: u16,
children: Mutex<Vec<Arc<Widget>>>,
size: (u16, u16),
}
impl FlexRow {
pub fn new(gap: u16) -> Self {
pub fn new() -> Self {
Self {
children: Mutex::new(Vec::new()),
size: (0, 0),
gap,
gap: 0,
}
}
}
impl FlexCol {
pub fn new(gap: u16) -> Self {
pub fn new() -> Self {
Self {
children: Mutex::new(Vec::new()),
size: (0, 0),
gap,
gap: 0,
}
}
}