Top | ![]() |
![]() |
![]() |
![]() |
IdeLayoutStackIdeLayoutStack — A stack of IdeLayoutView |
GtkWidget * | ide_layout_stack_new () |
GtkWidget * | ide_layout_stack_get_titlebar () |
IdeLayoutView * | ide_layout_stack_get_visible_child () |
void | ide_layout_stack_set_visible_child () |
gboolean | ide_layout_stack_get_has_view () |
void | ide_layout_stack_agree_to_close_async () |
gboolean | ide_layout_stack_agree_to_close_finish () |
void | ide_layout_stack_foreach_view () |
void | ide_layout_stack_add_with_depth () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── IdeLayoutStack
IdeLayoutStack implements AtkImplementorIface, GtkBuildable, GtkOrientable and GListModel.
This widget is used to represent a stack of IdeLayoutView widgets. it includes an IdeLayoutStackHeader at the top, and then a stack of views below.
If there are no IdeLayoutView visibile, then an empty state widget is displayed with some common information for the user.
To simplify integration with other systems, IdeLayoutStack implements the GListModel interface for each of the IdeLayoutView.
GtkWidget *
ide_layout_stack_get_titlebar (IdeLayoutStack *self
);
Gets the IdeLayoutStackHeader header that is at the top of the stack.
Since: 3.26
IdeLayoutView *
ide_layout_stack_get_visible_child (IdeLayoutStack *self
);
Gets the visible IdeLayoutView if there is one; otherwise NULL
.
Since: 3.26
void ide_layout_stack_set_visible_child (IdeLayoutStack *self
,IdeLayoutView *view
);
Sets the current view for the stack.
Since: 3.26
gboolean
ide_layout_stack_get_has_view (IdeLayoutStack *self
);
Gets the "has-view" property.
This property is a convenience to allow widgets to easily bind properties based on whether or not a view is visible in the stack.
Since: 3.26
void ide_layout_stack_agree_to_close_async (IdeLayoutStack *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean ide_layout_stack_agree_to_close_finish (IdeLayoutStack *self
,GAsyncResult *result
,GError **error
);
void ide_layout_stack_foreach_view (IdeLayoutStack *self
,GtkCallback callback
,gpointer user_data
);
This function will call callback
for every view found in self
.
self |
||
callback |
A callback for each view. |
[scope call][closure user_data] |
user_data |
user data for |
Since: 3.26
void ide_layout_stack_add_with_depth (IdeLayoutStack *self
,GtkWidget *widget
,guint position
);
struct IdeLayoutStackClass { GtkBoxClass parent_class; void (*agree_to_close_async) (IdeLayoutStack *stack, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gboolean (*agree_to_close_finish) (IdeLayoutStack *stack, GAsyncResult *result, GError **error); };
“visible-child”
property“visible-child” IdeLayoutView *
The current view to be displayed.
Flags: Read / Write
“change-current-page”
signalvoid user_function (IdeLayoutStack *idelayoutstack, gint arg1, gpointer user_data)
Flags: Action