Typedef MirPlacementHints¶
Defined in File common.h
Typedef Documentation¶
-
typedef enum MirPlacementHints 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.