Trait ux::ButtonGroupExt [−][src]
pub trait ButtonGroupExt: 'static {
pub fn add<P>(&self, button: &P)
where
P: Is<Button>;
pub fn foreach<P>(&self, callback: P)
where
P: FnMut(&Actor);
pub fn get_active_button(&self) -> &Option<Button>;
pub fn get_allow_no_active(&self) -> bool;
pub fn get_buttons(&self) -> &Vec<Button, Global>;
pub fn remove<P>(&self, button: &P)
where
P: Is<Button>;
pub fn set_active_button<P>(&self, button: Option<&P>)
where
P: Is<Button>;
pub fn set_allow_no_active(&self, allow_no_active: bool);
pub fn connect_property_active_button_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
pub fn connect_property_allow_no_active_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
}Required methods
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(&Self), [src]
F: 'static + Fn(&Self),
pub fn connect_property_allow_no_active_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self), [src]
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
Implementors
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),