[]Struct gtk::CheckButton

pub struct CheckButton(_, _);

A CheckButton places a discrete ToggleButton next to a widget, (usually a Label). See the section on ToggleButton widgets for more information about toggle/check buttons.

The important signal ( ToggleButton::toggled ) is also inherited from ToggleButton.

CSS nodes

checkbutton
├── check
╰── <child>

A CheckButton with indicator (see ToggleButtonExt::set_mode) has a main CSS node with name checkbutton and a subnode with name check.

button.check
├── check
╰── <child>

A CheckButton without indicator changes the name of its main node to button and adds a .check style class to it. The subnode is invisible in this case.

Implements

ToggleButtonExt, ButtonExt, BinExt, ContainerExt, WidgetExt, glib::object::ObjectExt, BuildableExt, ActionableExt, WidgetExtManual, BuildableExtManual

Implementations

impl CheckButton[src]

pub fn new() -> CheckButton[src]

Creates a new CheckButton.

Returns

a Widget.

pub fn with_label(label: &str) -> CheckButton[src]

pub fn with_mnemonic(label: &str) -> CheckButton[src]

Trait Implementations

impl Clone for CheckButton

impl Debug for CheckButton

impl Default for CheckButton[src]

impl Display for CheckButton[src]

impl Eq for CheckButton

impl Hash for CheckButton

impl IsA<Actionable> for CheckButton

impl IsA<Bin> for CheckButton

impl IsA<Buildable> for CheckButton

impl IsA<Button> for CheckButton

impl IsA<CheckButton> for RadioButton

impl IsA<Container> for CheckButton

impl IsA<ToggleButton> for CheckButton

impl IsA<Widget> for CheckButton

impl Ord for CheckButton

impl<T: ObjectType> PartialEq<T> for CheckButton

impl<T: ObjectType> PartialOrd<T> for CheckButton

impl StaticType for CheckButton

Auto Trait Implementations

impl RefUnwindSafe for CheckButton

impl !Send for CheckButton

impl !Sync for CheckButton

impl Unpin for CheckButton

impl UnwindSafe for CheckButton

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<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 

impl<T> Cast for T where
    T: ObjectType, 

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

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

impl<T> ObjectExt for T where
    T: ObjectType, 

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<Array>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<List>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 

type Storage = (Option<PtrArray>, Vec<Stash<'a, <T as GlibPtrDefault>::GlibType, T>>)

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

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.