Struct ux::ButtonGroup[][src]

pub struct ButtonGroup { /* fields omitted */ }

Implementations

impl ButtonGroup[src]

pub fn new() -> ButtonGroup[src]

Trait Implementations

impl AsRef<ButtonGroup> for ButtonGroup[src]

impl Clone for ButtonGroup[src]

impl Debug for ButtonGroup[src]

impl Default for ButtonGroup[src]

impl Display for ButtonGroup[src]

impl Is<ButtonGroup> for ButtonGroup[src]

impl Object for ButtonGroup[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<O> ButtonGroupExt for O where
    O: Is<ButtonGroup>, 
[src]

pub fn add<P>(&self, button: &P) where
    P: Is<Button>, 
[src]

add: @group: A #ButtonGroup @button: A #Button

Add @button to the #ButtonGroup.

pub fn foreach<P>(&self, callback: P) where
    P: FnMut(&Actor), 
[src]

foreach: @group: A #ButtonGroup @callback: (scope call): A #Callback @userdata: (closure): A #gpointer

Calls @callback for each button in the group.

pub fn get_active_button(&self) -> &Option<Button>[src]

get_active_button: @group: A #ButtonGroup

Get the current active button

Returns: (transfer none): the currently active button

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

get_allow_no_active: @group: A #ButtonGroup

Get the value of the #ButtonGroup:allow-no-active property.

Returns: the value of the “allow-no-active” property.

pub fn get_buttons(&self) -> &Vec<Button, Global>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

get_buttons: @group: A #ButtonGroup

Get a list of the buttons in the button group.

Returns: (element-type .Button): a list of buttons. The list is owned by the #ButtonGroup and should not be modified by the application.

pub fn remove<P>(&self, button: &P) where
    P: Is<Button>, 
[src]

remove: @group: A #ButtonGroup @button: A #Button

Remove @button from the #ButtonGroup

pub fn set_active_button<P>(&self, button: Option<&P>) where
    P: Is<Button>, 
[src]

set_active_button: @group: A #ButtonGroup @button: (allow-none): A #Button

Set the current active button in the group. The previous active button will have #Button:toggled set to #false.

pub fn set_allow_no_active(&self, allow_no_active: bool)[src]

set_allow_no_active: @group: A #ButtonGroup @allow_no_active: A #gboolean

Set the value of the #ButtonGroup:allow-no-active property.

impl<T> Construction<T> for T where
    T: Default + Clone
[src]

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

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

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,