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
fn update(&mut self, args: &ControlState, res: &Resources)
Update the control.
fn draw(&self, buffer: &mut Vec<u32>, buffer_width: usize, res: &Resources)
Draw the control on the output buffer.
fn control_type(&self) -> ControlType
Retrieve what type of control this is.
fn as_any(&self) -> &Any
For downcasting.
fn as_any_mut(&mut self) -> &mut Any
For downcasting.