Struct native_windows_gui::CanvasT
[−]
[src]
pub struct CanvasT<ID: Hash + Clone> {
pub parent: ID,
pub position: (i32, i32),
pub size: (u32, u32),
pub visible: bool,
pub disabled: bool,
}A template that creates a canvas
Members:
• parent: The canvas parent.
• position : Starting posiion of the canvas after it is created
• size : Starting size of the canvas after it is created
• visible : If the user can see the canvas or not
• disabled : If the canvas is enabled or not. A disabled canvas do not process events
Fields
parent: ID
position: (i32, i32)
size: (u32, u32)
visible: bool
disabled: bool
Trait Implementations
impl<ID: Hash + Clone + 'static> ControlT<ID> for CanvasT<ID>[src]
fn type_id(&self) -> TypeId
Should return the TypeId of the generated control. For example a WindowT struct returns the TypeId of a Window struct.
fn events(&self) -> Vec<Event>
Should return the events supported by the control.
fn build(&self, ui: &Ui<ID>) -> Result<Box<Control>, Error>
Should instance the control and return it as a Box. If an error is raised, it will be returned by ui.commit.