GdkAnchorHints

Positioning hints for aligning a surface relative to a rectangle.

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

For example, gdk.types.AnchorHints.FlipX will replace gdk.types.Gravity.NorthWest with gdk.types.Gravity.NorthEast and vice versa if the surface extends beyond the left or right edges of the monitor.

If gdk.types.AnchorHints.SlideX is set, the surface can be shifted horizontally to fit on-screen. If gdk.types.AnchorHints.ResizeX is set, the surface 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.

Values

ValueMeaning
FlipX1

allow flipping anchors horizontally

FlipY2

allow flipping anchors vertically

SlideX4

allow sliding surface horizontally

SlideY8

allow sliding surface vertically

ResizeX16

allow resizing surface horizontally

ResizeY32

allow resizing surface vertically

Flip3

allow flipping anchors on both axes

Slide12

allow sliding surface on both axes

Resize48

allow resizing surface on both axes