Enum MirPlacementHints¶
Defined in File common.h
Enum Documentation¶
-
enum MirPlacementHints¶
Positioning hints for aligning a window relative to a rectangle.
These hints determine how the window should be positioned in the case that the surface would fall off-screen if placed in its ideal position.
For example,
mir_placement_hints_flip_xwill invert the x component ofaux_rect_placement_offsetand replacemir_placement_gravity_northwestwithmir_placement_gravity_northeastand vice versa if the window extends beyond the left or right edges of the monitor.If
mir_placement_hints_slide_xis set, the window can be shifted horizontally to fit on-screen.If
mir_placement_hints_resize_xis set, the window can be shrunken horizontally to fit.If
mir_placement_hints_antipodesis set then the rect gravity may be substituted with the opposite corner (e.g.mir_placement_gravity_northeasttomir_placement_gravity_southwest) in combination with other options.When multiple flags are set, flipping should take precedence over sliding, which should take precedence over resizing.
Values:
-
enumerator mir_placement_hints_flip_x¶
allow flipping anchors horizontally
-
enumerator mir_placement_hints_flip_y¶
allow flipping anchors vertically
-
enumerator mir_placement_hints_slide_x¶
allow sliding window horizontally
-
enumerator mir_placement_hints_slide_y¶
allow sliding window vertically
-
enumerator mir_placement_hints_resize_x¶
allow resizing window horizontally
-
enumerator mir_placement_hints_resize_y¶
allow resizing window vertically
-
enumerator mir_placement_hints_antipodes¶
allow flipping aux_anchor to opposite corner
-
enumerator mir_placement_hints_flip_any¶
allow flipping anchors on both axes
-
enumerator mir_placement_hints_slide_any¶
allow sliding window on both axes
-
enumerator mir_placement_hints_resize_any¶
allow resizing window on both axes
-
enumerator mir_placement_hints_flip_x¶