mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
refactor wlr_output_layout_closest_point
This commit is contained in:
parent
9b65d0b3f0
commit
b6031d1065
3 changed files with 24 additions and 42 deletions
|
|
@ -53,11 +53,10 @@ bool wlr_output_layout_intersects(struct wlr_output_layout *layout,
|
|||
struct wlr_output *reference, int x1, int y1, int x2, int y2);
|
||||
|
||||
/**
|
||||
* Get the closest boundary point of this layout from the given point from the
|
||||
* reference output. If reference is NULL, gets the closest boundary point from
|
||||
* the entire layout.
|
||||
* Get the closest point on this layout from the given point from the reference
|
||||
* output. If reference is NULL, gets the closest point from the entire layout.
|
||||
*/
|
||||
void wlr_output_layout_closest_boundary(struct wlr_output_layout *layout,
|
||||
void wlr_output_layout_closest_point(struct wlr_output_layout *layout,
|
||||
struct wlr_output *reference, double x, double y, double *dest_x,
|
||||
double *dest_y);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue