| Top |
GObject
╰── GInitiallyUnowned
╰── CtkWidget
╰── CtkContainer
╰── CtkBin
╰── CtkToolItem
╰── CtkToolButton
╰── CtkToggleToolButton
╰── CtkRadioToolButton
CtkRadioToolButton implements AtkImplementorIface, CtkBuildable, CtkActivatable and CtkActionable.
A CtkRadioToolButton is a CtkToolItem that contains a radio button, that is, a button that is part of a group of toggle buttons where only one button can be active at a time.
Use ctk_radio_tool_button_new() to create a new CtkRadioToolButton. Use
ctk_radio_tool_button_new_from_widget() to create a new CtkRadioToolButton
that is part of the same group as an existing CtkRadioToolButton.
CtkToolItem *
ctk_radio_tool_button_new (GSList *group);
Creates a new CtkRadioToolButton, adding it to group
.
group |
An
existing radio button group, or |
[allow-none][element-type CtkRadioButton] |
Since: 2.4
CtkToolItem * ctk_radio_tool_button_new_from_stock (GSList *group,const gchar *stock_id);
ctk_radio_tool_button_new_from_stock has been deprecated since version 3.10 and should not be used in newly-written code.
Use ctk_radio_tool_button_new() instead.
Creates a new CtkRadioToolButton, adding it to group
.
The new CtkRadioToolButton will contain an icon and label from the
stock item indicated by stock_id
.
group |
an existing radio button
group, or |
[allow-none][element-type CtkRadioButton] |
stock_id |
the name of a stock item |
Since: 2.4
CtkToolItem *
ctk_radio_tool_button_new_from_widget (CtkRadioToolButton *group);
Creates a new CtkRadioToolButton adding it to the same group as gruup
[constructor]
Since: 2.4
CtkToolItem * ctk_radio_tool_button_new_with_stock_from_widget (CtkRadioToolButton *group,const gchar *stock_id);
ctk_radio_tool_button_new_with_stock_from_widget has been deprecated since version 3.10 and should not be used in newly-written code.
ctk_radio_tool_button_new_from_widget
Creates a new CtkRadioToolButton adding it to the same group as group
.
The new CtkRadioToolButton will contain an icon and label from the
stock item indicated by stock_id
.
[constructor]
Since: 2.4
GSList *
ctk_radio_tool_button_get_group (CtkRadioToolButton *button);
Returns the radio button group button
belongs to.
Since: 2.4
void ctk_radio_tool_button_set_group (CtkRadioToolButton *button,GSList *group);
Adds button
to group
, removing it from the group it belonged to before.
button |
||
group |
an existing radio button group, or |
[element-type CtkRadioButton][allow-none] |
Since: 2.4
“group” property“group” CtkRadioToolButton *
Sets a new group for a radio tool button.
Owner: CtkRadioToolButton
Flags: Write
Since: 2.4