[][src]Trait geng_ui::widget::Widget

pub trait Widget {
    fn core(&self) -> &WidgetCore;
fn core_mut(&mut self) -> &mut WidgetCore; fn calc_constraints(&mut self) { ... }
fn layout_children(&mut self) { ... }
fn update(&mut self, delta_time: f64) { ... }
fn draw(&mut self, framebuffer: &mut Framebuffer) { ... }
fn handle_event(&mut self, event: &Event) { ... }
fn walk_children_mut<'a>(&mut self, f: Box<dyn FnMut(&mut dyn Widget) + 'a>) { ... } }

Required methods

fn core(&self) -> &WidgetCore

fn core_mut(&mut self) -> &mut WidgetCore

Loading content...

Provided methods

fn calc_constraints(&mut self)

fn layout_children(&mut self)

fn update(&mut self, delta_time: f64)

fn draw(&mut self, framebuffer: &mut Framebuffer)

fn handle_event(&mut self, event: &Event)

fn walk_children_mut<'a>(&mut self, f: Box<dyn FnMut(&mut dyn Widget) + 'a>)

Loading content...

Implementations on Foreign Types

impl<'_> Widget for Box<dyn Widget + '_>[src]

Loading content...

Implementors

impl Widget for ColorBox[src]

impl<'_> Widget for ControlPanel<'_>[src]

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

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

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

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

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

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

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

impl<'a, T: AsRef<str>> Widget for Text<'a, T>[src]

impl<T: Widget> Widget for Align<T>[src]

impl<T: Widget> Widget for ConstraintOverride<T>[src]

impl<T: Widget> Widget for Padding<T>[src]

Loading content...