Trait direct_gui::controls::Control [] [src]

pub trait Control {
    fn update(&mut self, args: &ControlState, res: &Resources);
fn draw(&self, buffer: &mut Vec<u32>, buffer_width: usize, res: &Resources);
fn control_type(&self) -> ControlType;
fn as_any(&self) -> &Any;
fn as_any_mut(&mut self) -> &mut Any; }

Required Methods

Update the control.

Draw the control on the output buffer.

Retrieve what type of control this is.

For downcasting.

For downcasting.

Implementors