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
text: S1
position: (i32, i32)
size: (u32, u32)
visible: bool
disabled: bool
readonly: bool
limit: u32
scrollbars: (bool, bool)
parent: ID
font: Option<ID>
Trait Implementations
impl<S1: Clone + Clone + Into<String>, ID: Clone + Hash + Clone> Clone for TextBoxT<S1, ID>
[src]
fn clone(&self) -> TextBoxT<S1, ID>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<S1: Clone + Into<String>, ID: Hash + Clone> ControlT<ID> for TextBoxT<S1, 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
.