wrap when moving things to outputs with direction
This commit is contained in:
committed by
Michael Stapelberg
parent
3cd4b8c111
commit
f13d8ed06f
@ -87,20 +87,29 @@ Output *get_output_by_name(const char *name);
|
||||
*/
|
||||
Output *get_output_containing(int x, int y);
|
||||
|
||||
/**
|
||||
* Gets the output which is the last one in the given direction, for example
|
||||
* the output on the most bottom when direction == D_DOWN, the output most
|
||||
* right when direction == D_RIGHT and so on.
|
||||
*
|
||||
* This function always returns a output.
|
||||
*
|
||||
*/
|
||||
Output *get_output_most(direction_t direction, Output *current);
|
||||
|
||||
/**
|
||||
* Gets the output which is the next one in the given direction.
|
||||
*
|
||||
* If close_far == CLOSEST_OUTPUT, then the output next to the current one will
|
||||
* selected. If close_far == FARTHEST_OUTPUT, the output which is the last one
|
||||
* in the given direction will be selected.
|
||||
*
|
||||
* NULL will be returned when no active outputs are present in the direction
|
||||
* specified (note that ‘current’ counts as such an output).
|
||||
*
|
||||
*/
|
||||
Output *get_output_next(direction_t direction, Output *current, output_close_far_t close_far);
|
||||
|
||||
/**
|
||||
* Like get_output_next with close_far == CLOSEST_OUTPUT, but wraps.
|
||||
*
|
||||
* For example if get_output_next(D_DOWN, x, FARTHEST_OUTPUT) = NULL, then
|
||||
* get_output_next_wrap(D_DOWN, x) will return the topmost output.
|
||||
*
|
||||
* This function always returns a output: if no active outputs can be found,
|
||||
* current itself is returned.
|
||||
*
|
||||
*/
|
||||
Output *get_output_next_wrap(direction_t direction, Output *current);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user