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

Enumeration Members

FLIP: number

allow flipping anchors on both axes

FLIP_X: number

allow flipping anchors horizontally

FLIP_Y: number

allow flipping anchors vertically

RESIZE: number

allow resizing window on both axes

RESIZE_X: number

allow resizing window horizontally

RESIZE_Y: number

allow resizing window vertically

SLIDE: number

allow sliding window on both axes

SLIDE_X: number

allow sliding window horizontally

SLIDE_Y: number

allow sliding window vertically