[][src]Trait ezui::widget::Widget

pub trait Widget {
    fn position(&self) -> (f32, f32);
fn size(&self) -> (f32, f32);
fn drawable(&self) -> Option<Drawable>; fn draw(&self, target: &mut Frame, system: &System) { ... }
fn size_adjusted(&self) -> (f32, f32) { ... }
fn position_adjusted(&self) -> (f32, f32) { ... }
fn translate(&self, mat: [[f32; 4]; 4]) -> [[f32; 4]; 4] { ... }
fn scale(&self, mat: [[f32; 4]; 4]) -> [[f32; 4]; 4] { ... }
fn matrix(&self) -> [[f32; 4]; 4] { ... } }

Required methods

fn position(&self) -> (f32, f32)

fn size(&self) -> (f32, f32)

fn drawable(&self) -> Option<Drawable>

Loading content...

Provided methods

fn draw(&self, target: &mut Frame, system: &System)

fn size_adjusted(&self) -> (f32, f32)

fn position_adjusted(&self) -> (f32, f32)

fn translate(&self, mat: [[f32; 4]; 4]) -> [[f32; 4]; 4]

fn scale(&self, mat: [[f32; 4]; 4]) -> [[f32; 4]; 4]

fn matrix(&self) -> [[f32; 4]; 4]

Loading content...

Implementors

impl Widget for UiButton[src]

impl<'a> Widget for UiText<'a>[src]

impl<'a> Widget for UiTexture<'a>[src]

Loading content...