Skip to main content

ElementSized

Trait ElementSized 

Source
pub trait ElementSized {
    // Required methods
    fn width(&self) -> u32;
    fn height(&self) -> u32;
    fn set_size(&mut self, width: u32, height: u32);
}
Expand description

Trait for sized elements (width, height)

Required Methods§

Source

fn width(&self) -> u32

Get width in EMU

Source

fn height(&self) -> u32

Get height in EMU

Source

fn set_size(&mut self, width: u32, height: u32)

Set size

Implementors§