Top | ![]() |
![]() |
![]() |
![]() |
IdeFrameIdeFrame — A stack of IdePage |
GtkWidget * | ide_frame_new () |
GtkWidget * | ide_frame_get_titlebar () |
IdePage * | ide_frame_get_visible_child () |
void | ide_frame_set_visible_child () |
gboolean | ide_frame_get_has_page () |
void | ide_frame_agree_to_close_async () |
gboolean | ide_frame_agree_to_close_finish () |
void | ide_frame_foreach_page () |
void | ide_frame_add_with_depth () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── IdeFrame
IdeFrame implements AtkImplementorIface, GtkBuildable, GtkOrientable and GListModel.
This widget is used to represent a stack of IdePage widgets. it includes an IdeFrameHeader at the top, and then a stack of pages below.
If there are no IdePage visibile, then an empty state widget is displayed with some common information for the user.
To simplify integration with other systems, IdeFrame implements the GListModel interface for each of the IdePage.
GtkWidget *
ide_frame_get_titlebar (IdeFrame *self
);
Gets the IdeFrameHeader header that is at the top of the stack.
Since: 3.32
IdePage *
ide_frame_get_visible_child (IdeFrame *self
);
Gets the visible IdePage if there is one; otherwise NULL
.
Since: 3.32
void ide_frame_set_visible_child (IdeFrame *self
,IdePage *page
);
Sets the current page for the stack.
Since: 3.32
gboolean
ide_frame_get_has_page (IdeFrame *self
);
Gets the "has-page" property.
This property is a convenience to allow widgets to easily bind properties based on whether or not a page is visible in the stack.
Since: 3.32
void ide_frame_agree_to_close_async (IdeFrame *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean ide_frame_agree_to_close_finish (IdeFrame *self
,GAsyncResult *result
,GError **error
);
void ide_frame_foreach_page (IdeFrame *self
,GtkCallback callback
,gpointer user_data
);
This function will call callback
for every page found in self
.
self |
a IdeFrame |
|
callback |
A callback for each page. |
[scope call][closure user_data] |
user_data |
user data for |
Since: 3.32
struct IdeFrameClass { GtkBoxClass parent_class; void (*agree_to_close_async) (IdeFrame *stack, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gboolean (*agree_to_close_finish) (IdeFrame *stack, GAsyncResult *result, GError **error); };
“visible-child”
property“visible-child” IdePage *
The current page to be displayed.
Owner: IdeFrame
Flags: Read / Write