Enumeration (GI Flags)

Gdk-3.0GdkAnchorHintsSince 3.22

Positioning hints for aligning a window relative to a rectangle.

These hints determine how the window should be positioned in the case that the window would fall off-screen if placed in its ideal position.

For example, Gdk.AnchorHints.FLIP_X will replace Gdk.Gravity.NORTH_WEST with Gdk.Gravity.NORTH_EAST and vice versa if the window extends beyond the left or right edges of the monitor.

If Gdk.AnchorHints.SLIDE_X is set, the window can be shifted horizontally to fit on-screen. If Gdk.AnchorHints.RESIZE_X is set, the window can be shrunken horizontally to fit.

In general, when multiple flags are set, flipping should take precedence over sliding, which should take precedence over resizing.

3.22

Index
FLIP: 3

allow flipping anchors on both axes

FLIP_X: 1

allow flipping anchors horizontally

FLIP_Y: 2

allow flipping anchors vertically

RESIZE: 48

allow resizing window on both axes

RESIZE_X: 16

allow resizing window horizontally

RESIZE_Y: 32

allow resizing window vertically

SLIDE: 12

allow sliding window on both axes

SLIDE_X: 4

allow sliding window horizontally

SLIDE_Y: 8

allow sliding window vertically

Variables

$gtype