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

pub unsafe trait InputExt: WidgetExt {
    fn value(&self) -> String;
fn set_value(&self, val: &str);
fn maximum_size(&self) -> u32;
fn set_maximum_size(&mut self, val: u32);
fn position(&self) -> u32;
fn set_position(&mut self, val: u32) -> Result<(), FltkError>;
fn mark(&self) -> u32;
fn set_mark(&mut self, val: u32) -> Result<(), FltkError>;
fn replace(
        &mut self,
        beg: u32,
        end: u32,
        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) -> u32;
fn set_text_size(&mut self, sz: u32);
fn readonly(&self) -> bool;
fn set_readonly(&mut self, val: bool);
fn wrap(&self) -> bool;
fn set_wrap(&mut self, val: bool); }

Defines the methods implemented by all input and output widgets

Required methods

fn value(&self) -> String

Returns the value inside the input/output widget

fn set_value(&self, val: &str)

Sets the value inside an input/output widget

fn maximum_size(&self) -> u32

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

fn set_maximum_size(&mut self, val: u32)

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

fn position(&self) -> u32

Returns the index position inside an input/output widget

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

Sets the index postion inside an input/output widget

fn mark(&self) -> u32

Returns the index mark inside an input/output widget

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

Sets the index mark inside an input/output widget

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

Replace content with a &str

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

Insert a &str

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

Append a &str

fn copy(&mut self) -> Result<(), FltkError>

Copy the value within the widget

fn undo(&mut self) -> Result<(), FltkError>

Undo changes

fn cut(&mut self) -> Result<(), FltkError>

Cut the value within the widget

fn text_font(&self) -> Font

Return the text font

fn set_text_font(&mut self, font: Font)

Sets the text font

fn text_color(&self) -> Color

Return the text color

fn set_text_color(&mut self, color: Color)

Sets the text color

fn text_size(&self) -> u32

Return the text size

fn set_text_size(&mut self, sz: u32)

Sets the text size

fn readonly(&self) -> bool

Returns whether the input/output widget is readonly

fn set_readonly(&mut self, val: bool)

Set readonly status of the input/output widget

fn wrap(&self) -> bool

Return whether text is wrapped inside an input/output widget

fn set_wrap(&mut self, val: bool)

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...