Trait fltk::prelude::InputExt [−][src]
pub unsafe trait InputExt: WidgetExt {}Show 24 methods
fn value(&self) -> String; fn set_value(&mut self, val: &str); fn maximum_size(&self) -> i32; fn set_maximum_size(&mut self, val: i32); fn position(&self) -> i32; fn set_position(&mut self, val: i32) -> Result<(), FltkError>; fn mark(&self) -> i32; fn set_mark(&mut self, val: i32) -> Result<(), FltkError>; fn replace(
&mut self,
beg: i32,
end: i32,
val: &str
) -> Result<(), FltkError>; fn insert(&mut self, txt: &str) -> Result<(), FltkError>; fn append(&mut self, txt: &str) -> Result<(), FltkError>; fn copy(&mut self) -> Result<(), FltkError>; fn undo(&mut self) -> Result<(), FltkError>; fn cut(&mut self) -> Result<(), FltkError>; fn text_font(&self) -> Font; fn set_text_font(&mut self, font: Font); fn text_color(&self) -> Color; fn set_text_color(&mut self, color: Color); fn text_size(&self) -> i32; fn set_text_size(&mut self, sz: i32); fn readonly(&self) -> bool; fn set_readonly(&mut self, val: bool); fn wrap(&self) -> bool; fn set_wrap(&mut self, val: bool);
Expand description
Defines the methods implemented by all input and output widgets
Required methods
fn maximum_size(&self) -> i32
fn maximum_size(&self) -> i32
Returns the maximum size (in bytes) accepted by an input/output widget
fn set_maximum_size(&mut self, val: i32)
fn set_maximum_size(&mut self, val: i32)
Sets the maximum size (in bytes) accepted by an input/output widget
Sets the index postion inside an input/output widget
Errors
Errors on failure to set the cursor position in the text
fn set_text_font(&mut self, font: Font)
fn set_text_font(&mut self, font: Font)
Sets the text font
fn text_color(&self) -> Color
fn text_color(&self) -> Color
Return the text color
fn set_text_color(&mut self, color: Color)
fn set_text_color(&mut self, color: Color)
Sets the text color
fn set_text_size(&mut self, sz: i32)
fn set_text_size(&mut self, sz: i32)
Sets the text size
fn set_readonly(&mut self, val: bool)
fn set_readonly(&mut self, val: bool)
Set readonly status of the input/output widget