Struct native_windows_gui::TextBox
[−]
[src]
pub struct TextBox { /* fields omitted */ }
A multi line textinput control
Methods
impl TextBox
[src]
fn set_readonly(&self, readonly: bool)
Set or unset the readonly status on the control
fn get_readonly(&self) -> bool
Return true
if the user cannot edit the content of the control or false
if the user can
fn set_limit(&self, limit: u32)
Set the maximum number of characters that the control can hold
fn get_limit(&self) -> u32
Return the maximum number of characters that the control can hold
fn get_text(&self) -> String
fn set_text<'a>(&self, text: &'a str)
fn get_visibility(&self) -> bool
fn set_visibility(&self, visible: bool)
fn get_position(&self) -> (i32, i32)
fn set_position(&self, x: i32, y: i32)
fn get_size(&self) -> (u32, u32)
fn set_size(&self, w: u32, h: u32)
fn get_enabled(&self) -> bool
fn set_enabled(&self, e: bool)
Trait Implementations
impl Control for TextBox
[src]
fn handle(&self) -> AnyHandle
Should return the underlying handle to the object
fn control_type(&self) -> ControlType
Should return the type of the control. For custom controls, the return value should be Undefined
(the default).
fn free(&mut self)
If specified, should free any ressource allocated in the template build
function. This includes functions like DestroyWindow
.