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

Trait Implementations

impl<ID: Hash + Clone + 'static> ControlT<ID> for CanvasT<ID>
[src]

Should return the TypeId of the generated control. For example a WindowT struct returns the TypeId of a Window struct.

Should return the events supported by the control.

Should instance the control and return it as a Box. If an error is raised, it will be returned by ui.commit.