[][src]Trait fltk::prelude::ButtonExt

pub unsafe trait ButtonExt: WidgetExt {
    fn shortcut(&self) -> Shortcut;
fn set_shortcut(&mut self, shortcut: Shortcut);
fn clear(&mut self);
fn is_set(&self) -> bool;
fn set(&mut self, flag: bool); }

Defines the methods implemented by all button widgets

Required methods

fn shortcut(&self) -> Shortcut

Gets the shortcut associated with a button

fn set_shortcut(&mut self, shortcut: Shortcut)

Sets the shortcut associated with a button

fn clear(&mut self)

Clears the value of the button. Useful for round, radio, light, toggle and check buttons

fn is_set(&self) -> bool

Returns whether a button is set or not Useful for round, radio, light, toggle and check buttons

fn set(&mut self, flag: bool)

Sets whether a button is set or not Useful for round, radio, light, toggle and check buttons

Loading content...

Implementors

impl ButtonExt for Button[src]

impl ButtonExt for CheckButton[src]

impl ButtonExt for LightButton[src]

impl ButtonExt for RadioButton[src]

impl ButtonExt for RadioLightButton[src]

impl ButtonExt for RadioRoundButton[src]

impl ButtonExt for RepeatButton[src]

impl ButtonExt for ReturnButton[src]

impl ButtonExt for RoundButton[src]

impl ButtonExt for ToggleButton[src]

Loading content...