Struct native_windows_gui::TextBoxT [] [src]

pub struct TextBoxT<S1: Clone + Into<String>, ID: Hash + Clone> {
    pub text: S1,
    pub position: (i32, i32),
    pub size: (u32, u32),
    pub visible: bool,
    pub disabled: bool,
    pub readonly: bool,
    pub limit: u32,
    pub scrollbars: (bool, bool),
    pub parent: ID,
    pub font: Option<ID>,
}

A template that creates a multi line textinput control

Events:
Event: Event::Destroyed, Event::Focus, Event::Char, Event::KeyDown, Event::KeyUp, Event::MouseDown, Event::MouseUp, Event::ValueChanged, Event::Moved, Event::Resized, Event::Raw

Members:
text: The text of the textbox
position: The start position of the textbox
size: The start size of the textbox
visible: If the textbox should be visible to the user
disabled: If the user can or can't click on the textbox
readonly: If the user can copty the text but can't edit the textbox content
limit: The maximum number of characters that the control can hold
scrollbars: A tuple to defined whether to show scrollbars or not (show horizontal, show vertical) • parent: The textbox parent
font: The textbox font. If None, use the system default

Fields

Trait Implementations

impl<S1: Clone + Clone + Into<String>, ID: Clone + Hash + Clone> Clone for TextBoxT<S1, ID>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S1: Clone + Into<String>, ID: Hash + Clone> ControlT<ID> for TextBoxT<S1, 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.