Add size info to icon
This commit is contained in:
parent
74355aac21
commit
0501a4edde
1 changed files with 7 additions and 0 deletions
|
@ -192,6 +192,13 @@ impl Icon {
|
|||
self.iconizable_wrapper.icon()
|
||||
}
|
||||
|
||||
pub fn extent(&self) -> (i32, i32) {
|
||||
(
|
||||
self.framable.right() - self.framable.left(),
|
||||
self.framable.bottom() - self.framable.top(),
|
||||
)
|
||||
}
|
||||
|
||||
fn disable_base(&self) -> Result<()> {
|
||||
self.framable.delete()?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue