mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Merge pull request #632 from acrisci/output-layout-adjacent
add wlr_output_layout_adjacent_output
This commit is contained in:
commit
09cfa39392
2 changed files with 64 additions and 0 deletions
|
|
@ -96,4 +96,19 @@ void wlr_output_layout_add_auto(struct wlr_output_layout *layout,
|
|||
struct wlr_output *wlr_output_layout_get_center_output(
|
||||
struct wlr_output_layout *layout);
|
||||
|
||||
enum wlr_direction {
|
||||
WLR_DIRECTION_UP = 0,
|
||||
WLR_DIRECTION_DOWN = 1,
|
||||
WLR_DIRECTION_LEFT = 2,
|
||||
WLR_DIRECTION_RIGHT = 4,
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the closest adjacent output to the reference output from the reference
|
||||
* point in the given direction.
|
||||
*/
|
||||
struct wlr_output *wlr_output_layout_adjacent_output(
|
||||
struct wlr_output_layout *layout, enum wlr_direction direction,
|
||||
struct wlr_output *reference, double ref_x, double ref_y);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue