Struct ux::native::ButtonGroup [−][src]
pub struct ButtonGroup { /* fields omitted */ }
Implementations
impl ButtonGroup
[src]
pub fn new() -> ButtonGroup
[src]
Trait Implementations
impl AsRef<ButtonGroup> for ButtonGroup
[src]
pub fn as_ref(&self) -> &ButtonGroup
[src]
impl Clone for ButtonGroup
[src]
pub fn clone(&self) -> ButtonGroup
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ButtonGroup
[src]
impl Default for ButtonGroup
[src]
pub fn default() -> ButtonGroup
[src]
impl Display for ButtonGroup
[src]
impl Is<ButtonGroup> for ButtonGroup
[src]
impl Object for ButtonGroup
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ButtonGroup
impl !Send for ButtonGroup
impl !Sync for ButtonGroup
impl Unpin for ButtonGroup
impl UnwindSafe for ButtonGroup
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<O> ButtonGroupExt for O where
O: Is<ButtonGroup>,
[src]
O: Is<ButtonGroup>,
pub fn add<P>(&self, button: &P) where
P: Is<Button>,
[src]
P: Is<Button>,
add: @group: A #ButtonGroup @button: A #Button
Add @button to the #ButtonGroup.
pub fn foreach<P>(&self, callback: P) where
P: FnMut(&Actor),
[src]
P: FnMut(&Actor),
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>
[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]
P: Is<Button>,
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]
P: Is<Button>,
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.
pub fn connect_property_active_button_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
F: 'static + Fn(&O),
pub fn connect_property_allow_no_active_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
[src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,