Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | ide_layout_stack_header_new () |
void | ide_layout_stack_header_add_custom_title () |
GdkRGBA * | background-rgba | Write |
GdkRGBA * | foreground-rgba | Write |
gboolean | modified | Read / Write |
gboolean | show-close-button | Read / Write |
gchar * | title | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBox ╰── DzlPriorityBox ╰── IdeLayoutStackHeader
IdeLayoutStackHeader implements AtkImplementorIface, GtkBuildable and GtkOrientable.
The IdeLayoutStackHeader is the titlebar widget above stacks of documents. It is used to add state when a given document is in view.
It can also track the primary color of the content and update it's styling to match.
void ide_layout_stack_header_add_custom_title (IdeLayoutStackHeader *self
,GtkWidget *widget
,gint priority
);
This will add widget
to the title area with priority
determining the
sort order of the child.
All "title" widgets in the IdeLayoutStackHeader are expanded to the
same size. So if you don't need that, you should just use the normal
gtk_container_add_with_properties()
API to specify your widget with
a given priority.
#define IDE_TYPE_LAYOUT_STACK_HEADER (ide_layout_stack_header_get_type())
“background-rgba”
property “background-rgba” GdkRGBA *
The "background-rgba" property can be used to set the background color of the header. This should be set to the “primary-color” of the active view.
Set to NULL
to unset the primary-color.
Flags: Write
Since: 3.26
“foreground-rgba”
property “foreground-rgba” GdkRGBA *
Sets the foreground color to use when “background-rgba” is used for the background.
Flags: Write
Since: 3.26
“modified”
property “modified” gboolean
If the current document is modified.
Flags: Read / Write
Default value: FALSE
“show-close-button”
property “show-close-button” gboolean
If the close button should be displayed.
Flags: Read / Write
Default value: FALSE