working divs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user