Enumeration
GdkAnchorHints
since: 3.22
Description [src]
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_ANCHOR_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_ANCHOR_SLIDE_X
is set, the window can be shifted horizontally to fit
on-screen. If GDK_ANCHOR_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.
Stability: Unstable
Available since: 3.22
Members
-
GDK_ANCHOR_FLIP_X
-
Allow flipping anchors horizontally.
- Value:
1
- Available since: 3.22
- Value:
-
GDK_ANCHOR_FLIP_Y
-
Allow flipping anchors vertically.
- Value:
2
- Available since: 3.22
- Value:
-
GDK_ANCHOR_SLIDE_X
-
Allow sliding window horizontally.
- Value:
4
- Available since: 3.22
- Value:
-
GDK_ANCHOR_SLIDE_Y
-
Allow sliding window vertically.
- Value:
8
- Available since: 3.22
- Value:
-
GDK_ANCHOR_RESIZE_X
-
Allow resizing window horizontally.
- Value:
16
- Available since: 3.22
- Value:
-
GDK_ANCHOR_RESIZE_Y
-
Allow resizing window vertically.
- Value:
32
- Available since: 3.22
- Value:
-
GDK_ANCHOR_FLIP
-
Allow flipping anchors on both axes.
- Value:
3
- Available since: 3.22
- Value:
-
GDK_ANCHOR_SLIDE
-
Allow sliding window on both axes.
- Value:
12
- Available since: 3.22
- Value:
-
GDK_ANCHOR_RESIZE
-
Allow resizing window on both axes.
- Value:
48
- Available since: 3.22
- Value: