Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | gat_sidebar_new () |
void | gat_sidebar_set_stack () |
GtkStack * | gat_sidebar_get_stack () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GtkScrolledWindow ╰── GatSidebar
A GatSidebarWindow enables you to quickly and easily provide a consistent "sidebar" object for your user interface.
In order to use a GatSidebar, you simply use a GtkStack to organise your UI flow, and add the sidebar to your sidebar area. You can use gat_sidebar_set_stack to connect the GatSidebar to the GtkStack
The GatSidebar will obtain the titles from the "title" child-property of the item within the GtkStack. Theming is automatically handled within the library to ensure a consistent look across applications. Note that users may use the touch, key or mouse events to interact with this widget and select an item within your GtkStack instance.
It should be of interest to developers that a GatSidebar subclasses GtkScrolledWindow - this means you can enable the scrolled window policy for automatic scrollbars, etc, within a GatSidebar. Note that scrollbars are disabled by default, leaving it up to the application developer to decide on their UI appearance.
void gat_sidebar_set_stack (GatSidebar *sidebar
,GtkStack *stack
);
Set the GtkStack associated with this GatSidebar. This sidebar widget will automatically update according to the order (packing) and items within the given GtkStack.