mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-25 06:59:42 -05:00
implement wlr_cursor_warp
This commit is contained in:
parent
dd68f680e4
commit
0cba06dcef
2 changed files with 40 additions and 25 deletions
|
|
@ -28,8 +28,17 @@ void wlr_cursor_destroy(struct wlr_cursor *cur);
|
|||
|
||||
void wlr_cursor_set_xcursor(struct wlr_cursor *cur, struct wlr_xcursor *xcur);
|
||||
|
||||
void wlr_cursor_warp(struct wlr_cursor *cur, double x, double y);
|
||||
/**
|
||||
* Warp the cursor to the given x and y in layout coordinates. If x and y are
|
||||
* out of the layout boundaries or constraints, no warp will happen.
|
||||
*
|
||||
* Returns true when the mouse warp was successful.
|
||||
*/
|
||||
bool wlr_cursor_warp(struct wlr_cursor *cur, double x, double y);
|
||||
|
||||
/**
|
||||
* Move the cursor in the direction of the given x and y coordinates.
|
||||
*/
|
||||
void wlr_cursor_move(struct wlr_cursor *cur, double delta_x, double delta_y);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue