[][src]Struct fltk::browser::CheckBrowser

pub struct CheckBrowser { /* fields omitted */ }

Creates a CheckBrowser widget

Implementations

impl CheckBrowser[src]

pub fn add(&mut self, s: &str, checked: bool) -> i32[src]

Add an item, returns the number of current items

pub fn remove(&mut self, item: usize) -> i32[src]

Remove item at index, returns the number of current items

pub fn clear(&mut self)[src]

Clear the browser

pub fn nitems(&self) -> usize[src]

Return the number of items

pub fn nchecked(&self) -> usize[src]

Get the number of checked items

pub fn checked(&self, item: i32) -> bool[src]

Returns whether an item is checked

pub fn set_checked(&mut self, item: i32)[src]

Check selected item

pub fn check_all(&mut self)[src]

Ckeck all of the items

pub fn check_none(&mut self)[src]

Check none of the items

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

Get the currently selected item

pub fn text(&self, item: i32) -> Option<String>[src]

Get the text of the item

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

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

Gets the vertical scroll position of the list as a pixel position

pub fn set_position(&mut self, pos: u32)[src]

Sets the vertical scroll position of the list as a pixel position

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

Gets the horizontal scroll position of the list as a pixel position

pub fn set_hposition(&mut self, pos: u32)[src]

Sets the horizontal scroll position of the list as a pixel position

pub fn has_scrollbar(&self) -> BrowserScrollbar[src]

Returns the type of scrollbar associated with the browser

pub fn set_has_scrollbar(&mut self, mode: BrowserScrollbar)[src]

Sets the type of scrollbar associated with the browser

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

Gets the scrollbar size

pub fn set_scrollbar_size(&mut self, new_size: u32)[src]

Sets the scrollbar size

pub fn sort(&mut self)[src]

Sort browser elements

pub fn scrollbar(&self) -> Box<dyn ValuatorExt>[src]

Returns the vertical scrollbar

pub fn hscrollbar(&self) -> Box<dyn ValuatorExt>[src]

Returns the horizontal scrollbar

Trait Implementations

impl Clone for CheckBrowser[src]

impl Debug for CheckBrowser[src]

impl Default for CheckBrowser[src]

impl Send for CheckBrowser[src]

impl Sync for CheckBrowser[src]

impl WidgetBase for CheckBrowser[src]

impl WidgetExt for CheckBrowser[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.