![]() |
![]() |
![]() |
![]() |
ToolDrawer Tool Item — A GtkToolItem that can be expand to show multiple items.
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkToolItem ╰── TalkatuToolDrawer
TalkatuToolDrawer implements AtkImplementorIface, GtkBuildable and GtkActivatable.
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.
gboolean
talkatu_tool_drawer_get_expanded (TalkatuToolDrawer *drawer
);
Gets whether or not drawer
is expanded.
#define TALKATU_TYPE_TOOL_DRAWER (talkatu_tool_drawer_get_type())
The standard _get_type macro for TalkatuToolDrawer.
typedef struct _TalkatuToolDrawer TalkatuToolDrawer;
A GtkToolItem subclass that displays a menu of items or can be expanded to show all of the items as a toolbar.
Stability Level: Unstable
“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
“label”
property“label” char *
The label to display when not expanded.
Owner: TalkatuToolDrawer
Flags: Read / Write / Construct Only
Default value: NULL