All controls

Button

A rectangle containing an application-defined text label that indicates what the button does when the user selects it.
pub struct Button<ID: Eq+Clone+Hash> {
    pub text: String,
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub text_align: (HTextAlign, VTextAlign),
}
Members Events Actions

Checkbox

A square box and an application-defined label that indicates a choice the user can make by selecting the button. Applications typically display check boxes to enable the user to choose one or more options that are not mutually exclusive.
pub struct CheckBox<ID: Eq+Clone+Hash> {
    pub text: String,
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub tristate: bool,
    pub text_align: (HTextAlign, VTextAlign),
}
Members Events Actions

ComboBox

A control consisting of a dropdown menu and a selection field similar to an edit control.
pub struct ComboBox<ID: Eq+Clone+Hash> {
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub collection: Vec<String>,
    pub sorted: bool
}
Members Events Actions

Frame

A rectangular area with a border. Note: This control will be "enhanced" in future versions.
pub struct Frame<ID: Eq+Clone+Hash> {
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub border_style: FrameBorderStyle,
    pub border_color: FrameBorderColor
}
Members Events Actions

GroupBox

A rectangle that surrounds a set of controls, such as check boxes or radio buttons, with an application-defined text label in its upper left corner.
pub struct GroupBox<ID: Eq+Clone+Hash> {
    pub text: String,
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub text_align: HTextAlign,
}
Members Events Actions

Label

A static text string
pub struct Label<ID: Eq+Clone+Hash> {
    pub text: String,
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub text_align: HTextAlign,
}
Members Events Actions

RadioButton

A round button and an application-defined label that indicates a choice the user can make by selecting the button. An application typically uses radio buttons in a group box to enable the user to choose one of a set of related but mutually exclusive options.
pub struct RadioButton<ID: Eq+Clone+Hash> {
    pub text: String,
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub text_align: (HTextAlign, VTextAlign),
}
Members Events Actions

TextBox

Designates a rectangular child window into which the user can type text from the keyboard. Multiline.
pub struct TextBox<ID: Eq+Clone+Hash> {
    pub text: String,
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub readonly: bool
}
Members Events Actions

TextInput

Designates a rectangular child window into which the user can type text from the keyboard. Single line.
pub struct TextInput<ID: Eq+Clone+Hash> {
    pub text: String,
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub parent: ID,
    pub placeholder: Option<String>,
    pub text_align: HTextAlign,
    pub password: bool,
    pub readonly: bool
}
Members Events Actions

Window

A moveable and resizable rectangular area that contains children controls. Has a non-client area with a title and a few options such as closing and minimizing.
pub struct Window {
    pub caption: String,
    pub size: (u32, u32),
    pub position: (i32, i32),
    pub visible: bool,
    pub resizable: bool,
    pub exit_on_close: bool
}
Members Events Actions