[][src]Trait fltk::prelude::InputExt

pub unsafe trait InputExt: WidgetExt {
    pub fn value(&self) -> String;
pub fn set_value(&self, val: &str);
pub fn maximum_size(&self) -> u32;
pub fn set_maximum_size(&mut self, val: u32);
pub fn position(&self) -> u32;
pub fn set_position(&mut self, val: u32) -> Result<(), FltkError>;
pub fn mark(&self) -> u32;
pub fn set_mark(&mut self, val: u32) -> Result<(), FltkError>;
pub fn replace(
        &mut self,
        beg: u32,
        end: u32,
        val: &str
    ) -> Result<(), FltkError>;
pub fn insert(&mut self, txt: &str) -> Result<(), FltkError>;
pub fn append(&mut self, txt: &str) -> Result<(), FltkError>;
pub fn copy(&mut self) -> Result<(), FltkError>;
pub fn undo(&mut self) -> Result<(), FltkError>;
pub fn cut(&mut self) -> Result<(), FltkError>;
pub fn text_font(&self) -> Font;
pub fn set_text_font(&mut self, font: Font);
pub fn text_color(&self) -> Color;
pub fn set_text_color(&mut self, color: Color);
pub fn text_size(&self) -> u32;
pub fn set_text_size(&mut self, sz: u32);
pub fn readonly(&self) -> bool;
pub fn set_readonly(&mut self, val: bool);
pub fn wrap(&self) -> bool;
pub fn set_wrap(&mut self, val: bool); }

Defines the methods implemented by all input and output widgets

Required methods

pub fn value(&self) -> String[src]

Returns the value inside the input/output widget

pub fn set_value(&self, val: &str)[src]

Sets the value inside an input/output widget

pub fn maximum_size(&self) -> u32[src]

Returns the maximum size (in bytes) accepted by an input/output widget

pub fn set_maximum_size(&mut self, val: u32)[src]

Sets the maximum size (in bytes) accepted by an input/output widget

pub fn position(&self) -> u32[src]

Returns the index position inside an input/output widget

pub fn set_position(&mut self, val: u32) -> Result<(), FltkError>[src]

Sets the index postion inside an input/output widget

pub fn mark(&self) -> u32[src]

Returns the index mark inside an input/output widget

pub fn set_mark(&mut self, val: u32) -> Result<(), FltkError>[src]

Sets the index mark inside an input/output widget

pub fn replace(
    &mut self,
    beg: u32,
    end: u32,
    val: &str
) -> Result<(), FltkError>
[src]

Replace content with a &str

pub fn insert(&mut self, txt: &str) -> Result<(), FltkError>[src]

Insert a &str

pub fn append(&mut self, txt: &str) -> Result<(), FltkError>[src]

Append a &str

pub fn copy(&mut self) -> Result<(), FltkError>[src]

Copy the value within the widget

pub fn undo(&mut self) -> Result<(), FltkError>[src]

Undo changes

pub fn cut(&mut self) -> Result<(), FltkError>[src]

Cut the value within the widget

pub fn text_font(&self) -> Font[src]

Return the text font

pub fn set_text_font(&mut self, font: Font)[src]

Sets the text font

pub fn text_color(&self) -> Color[src]

Return the text color

pub fn set_text_color(&mut self, color: Color)[src]

Sets the text color

pub fn text_size(&self) -> u32[src]

Return the text size

pub fn set_text_size(&mut self, sz: u32)[src]

Sets the text size

pub fn readonly(&self) -> bool[src]

Returns whether the input/output widget is readonly

pub fn set_readonly(&mut self, val: bool)[src]

Set readonly status of the input/output widget

pub fn wrap(&self) -> bool[src]

Return whether text is wrapped inside an input/output widget

pub fn set_wrap(&mut self, val: bool)[src]

Set whether text is wrapped inside an input/output widget

Loading content...

Implementors

impl InputExt for FileInput[src]

impl InputExt for FloatInput[src]

impl InputExt for Input[src]

impl InputExt for IntInput[src]

impl InputExt for MultilineInput[src]

impl InputExt for SecretInput[src]

impl InputExt for MultilineOutput[src]

impl InputExt for Output[src]

Loading content...