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

Type
GtkAlign
Default value
0

valign

How to position in extra vertical space

Type
GtkAlign
Default value
0

hexpand

Whether widget wants more horizontal space

Type
Boolean
Default value
False

vexpand

Whether widget wants more vertical space

Type
Boolean
Default value
False

expand

Whether widget wants to expand in both directions

Type
Boolean
Default value
False

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