mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
implement touch up and touch down
This commit is contained in:
parent
c914697676
commit
5e06d61e42
7 changed files with 195 additions and 58 deletions
|
|
@ -46,6 +46,9 @@ void wlr_cursor_set_xcursor(struct wlr_cursor *cur, struct wlr_xcursor *xcur);
|
|||
bool wlr_cursor_warp(struct wlr_cursor *cur, struct wlr_input_device *dev,
|
||||
double x, double y);
|
||||
|
||||
void wlr_cursor_warp_absolute(struct wlr_cursor *cur,
|
||||
struct wlr_input_device *dev, double x_mm, double y_mm);
|
||||
|
||||
/**
|
||||
* Move the cursor in the direction of the given x and y coordinates.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -15,4 +15,6 @@ bool wlr_geometry_intersection(struct wlr_geometry *geo_a,
|
|||
|
||||
bool wlr_geometry_contains_point(struct wlr_geometry *geo, int x, int y);
|
||||
|
||||
bool wlr_geometry_empty(struct wlr_geometry *geo);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4,14 +4,20 @@
|
|||
#include <wayland-util.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
struct wlr_output_layout_state;
|
||||
|
||||
struct wlr_output_layout {
|
||||
struct wl_list outputs;
|
||||
struct wlr_output_layout_state *state;
|
||||
};
|
||||
|
||||
struct wlr_output_layout_output_state;
|
||||
|
||||
struct wlr_output_layout_output {
|
||||
struct wlr_output *output;
|
||||
int x, y;
|
||||
struct wl_list link;
|
||||
struct wlr_output_layout_output_state *state;
|
||||
};
|
||||
|
||||
struct wlr_output_layout *wlr_output_layout_init();
|
||||
|
|
@ -55,4 +61,11 @@ void wlr_output_layout_closest_boundary(struct wlr_output_layout *layout,
|
|||
struct wlr_output *reference, double x, double y, double *dest_x,
|
||||
double *dest_y);
|
||||
|
||||
/**
|
||||
* Get the geometry of the layout for the given reference output. If `reference`
|
||||
* is NULL, the geometry will be for the extents of the entire layout.
|
||||
*/
|
||||
struct wlr_geometry *wlr_output_layout_get_geometry(
|
||||
struct wlr_output_layout *layout, struct wlr_output *reference);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue