| Top |
ToolDrawer Tool ItemToolDrawer Tool Item — A GtkToolItem that can be expand to show multiple items. |
| GtkToolItem * | talkatu_tool_drawer_new () |
| void | talkatu_tool_drawer_add_item () |
| void | talkatu_tool_drawer_add_separator () |
| const gchar * | talkatu_tool_drawer_get_label () |
| void | talkatu_tool_drawer_set_label () |
| const gchar * | talkatu_tool_drawer_get_icon_name () |
| void | talkatu_tool_drawer_set_icon_name () |
| void | talkatu_tool_drawer_set_expanded () |
| gboolean | talkatu_tool_drawer_get_expanded () |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkContainer
╰── GtkBin
╰── GtkToolItem
╰── TalkatuToolDrawer
A TalkatuToolDrawer is a GtkToolItem that groups many GtkToolItems into a collection that can be collapsed into a single item to eliminate clutter in the user interface.
GtkToolItem * talkatu_tool_drawer_new (const gchar *label,const gchar *icon_name);
Creates a new TalkatuToolDrawer instance.
void talkatu_tool_drawer_add_item (TalkatuToolDrawer *drawer,GAction *action,const gchar *markup,const gchar *icon_name,gchar *tooltip,GCallback callback);
Adds a new item to drawer
.
drawer |
The TalkatuToolDrawer instance. |
|
action |
The GAction to add. |
|
markup |
Pango markup to use as a label. |
|
icon_name |
The name of the icon to display. |
|
tooltip |
UTF-8 text to display as a tooltip. |
|
callback |
The callback to call when the item is activated. |
[scope notified] |
void
talkatu_tool_drawer_add_separator (TalkatuToolDrawer *drawer);
Adds a separator to the end of drawer
.
const gchar *
talkatu_tool_drawer_get_label (TalkatuToolDrawer *drawer);
Gets the label that's displayed when drawer
is collapsed.
void talkatu_tool_drawer_set_label (TalkatuToolDrawer *drawer,const gchar *label);
Sets the label to be displayed when drawer
is collapsed.
const gchar *
talkatu_tool_drawer_get_icon_name (TalkatuToolDrawer *drawer);
Gets the icon name for drawer
.
void talkatu_tool_drawer_set_icon_name (TalkatuToolDrawer *drawer,const gchar *icon_name);
Sets the name of the icon to be displayed when drawer
is collapsed.
drawer |
The TalkatuToolDrawer instance. |
|
icon_name |
The name of the icon to display when collapse. |
void talkatu_tool_drawer_set_expanded (TalkatuToolDrawer *drawer,gboolean expanded);
Sets whether or not drawer
is expanded.
drawer |
The TalkatuToolDrawer instance. |
|
expanded |
|
gboolean
talkatu_tool_drawer_get_expanded (TalkatuToolDrawer *drawer);
Gets whether or not drawer
is expanded.
“expanded” property “expanded” gboolean
Whether or not the drawer is expanded.
Owner: TalkatuToolDrawer
Flags: Read / Write / Construct
Default value: FALSE
“icon-name” property “icon-name” char *
The name of the icon to display when not expanded.
Owner: TalkatuToolDrawer
Flags: Read / Write / Construct Only
Default value: NULL