Add size info to icon

This commit is contained in:
hodasemi 2023-01-18 09:45:16 +01:00
parent 74355aac21
commit 0501a4edde

View file

@ -192,6 +192,13 @@ impl Icon {
self.iconizable_wrapper.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<()> { fn disable_base(&self) -> Result<()> {
self.framable.delete()?; self.framable.delete()?;