diff options
author | rabite <rabite@posteo.de> | 2019-02-12 22:55:16 +0100 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-02-12 22:55:16 +0100 |
commit | 56d9c3521599baef6ff1472c0c95fa07f17a5a67 (patch) | |
tree | 48f16edb6cc49a71bd9d438072f7c2d4848c3ac7 /src/coordinates.rs | |
parent | 1c500d91cf7389850e9f32b14d8ae210a7e62888 (diff) |
async widget
Diffstat (limited to 'src/coordinates.rs')
-rw-r--r-- | src/coordinates.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/coordinates.rs b/src/coordinates.rs index d4dc914..5861f72 100644 --- a/src/coordinates.rs +++ b/src/coordinates.rs @@ -40,6 +40,18 @@ impl Coordinates { &self.position } + pub fn u16position(&self) -> (u16, u16) { + self.position.position() + } + + pub fn size(&self) -> &Size { + &self.size + } + + pub fn u16size(&self) -> (u16, u16) { + self.size.size() + } + pub fn top(&self) -> Position { self.position().clone() } |