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

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

Defines the methods implemented by all button widgets

Required methods

pub fn shortcut(&self) -> Shortcut[src]

Gets the shortcut associated with a button

pub fn set_shortcut(&mut self, shortcut: Shortcut)[src]

Sets the shortcut associated with a button

pub fn clear(&mut self)[src]

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

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

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

pub fn set(&mut self, flag: bool)[src]

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

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

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