[][src]Struct fltk::misc::InputChoice

pub struct InputChoice { /* fields omitted */ }

Creates an InputChoice widget

Implementations

impl InputChoice[src]

pub fn set_down_frame(&mut self, f: FrameType)[src]

Set the down_box of the widget

pub fn down_frame(&self) -> FrameType[src]

Get the down frame type of the widget

pub fn add(&mut self, s: &str)[src]

Add an element to the input choice

pub fn clear(&mut self)[src]

Clear the input choice widget

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

Get the value of the current choice

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

Set the value to a string

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

Set the value of the input choice to a current element

pub fn menu_button(&self) -> Box<dyn MenuExt>[src]

Get the associated menu button

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

Gets the text font

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

Sets the text font

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

Gets the text size

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

Sets the text size

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

Gets the text's color

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

Sets the text's color

Trait Implementations

impl Clone for InputChoice[src]

impl Debug for InputChoice[src]

impl Default for InputChoice[src]

impl Send for InputChoice[src]

impl Sync for InputChoice[src]

impl WidgetBase for InputChoice[src]

impl WidgetExt for InputChoice[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.