working divs

This commit is contained in:
2025-07-05 04:40:05 -05:00
parent cec25c02d5
commit ec963707a1
8 changed files with 155 additions and 61 deletions
+6
View File
@@ -1,5 +1,6 @@
use crate::component;
#[derive(Clone)]
pub struct RawTransform {
pub x: u16,
pub y: u16,
@@ -57,6 +58,11 @@ impl Transform {
self
}
pub fn right(mut self) -> Self {
self.x = Position::End;
self
}
pub fn margin(mut self, x: i32, y: i32) -> Self {
self.mx = x;
self.my = y;