Layout.Overlay

Classes

Layout.Overlay

This layout can be used to stack modules on top of one another. The module in the 'content' slot determines the size of the module, then the modules in the 'overlays' multi-slot are positioned on top of it.

The modules' 'halign' and 'valign' properties, as well as their 'margin' CSS properties, determine where they are arranged on top of the main module. For example, a module with halign: end, valign: end, and in CSS margin: 10px will be positioned 10px away from the bottom right corner.

Properties

halign

How to position in extra horizontal space

Default value
0
Type
GtkAlign

valign

How to position in extra vertical space

Default value
0
Type
GtkAlign

hexpand

Whether widget wants more horizontal space

Default value
False
Type
Boolean

vexpand

Whether widget wants more vertical space

Default value
False
Type
Boolean

expand

Whether widget wants to expand in both directions

Default value
False
Type
Boolean

Slots

content

For the main module

overlays

A list of other modules to be positioned on top of the content

Array
yes

The results of the search are