Class
PhocCursor
[−]
Description
class Phoc.Cursor : GObject.Object
{
seat: PhocSeat*,
cursor: wlr_cursor*,
active_constraint: wlr_pointer_constraint_v1*,
confine: pixman_region32_t,
offs_x: int,
offs_y: int,
view_x: int,
view_y: int,
view_width: int,
view_height: int,
resize_edges: uint32_t,
pointer_view: PhocSeatView*,
wlr_surface: wlr_surface*,
motion: wl_listener,
motion_absolute: wl_listener,
button: wl_listener,
axis: wl_listener,
frame: wl_listener,
swipe_begin: wl_listener,
swipe_update: wl_listener,
swipe_end: wl_listener,
pinch_begin: wl_listener,
pinch_update: wl_listener,
pinch_end: wl_listener,
touch_down: wl_listener,
touch_up: wl_listener,
touch_motion: wl_listener,
touch_frame: wl_listener,
tool_axis: wl_listener,
tool_tip: wl_listener,
tool_proximity: wl_listener,
tool_button: wl_listener,
request_set_cursor: wl_listener,
focus_change: wl_listener,
constraint_commit: wl_listener
}
No description available.
[−]
Instance methods
phoc_cursor_configure_xcursor
Load cursor theme for the current output scales and set a default cursor.
phoc_cursor_handle_event
Feed an event that happened at the cursor coordinates of type type
to the event system. This gives all gestures that are registered in the compositor
a chance to handle the event.
phoc_cursor_is_active_touch_id
Checks whether the given touch is is in the list of active touch points.
phoc_cursor_set_image
Set the cursor image via a surface. To use an image from the cursor
theme see phoc_cursor_set_image()
.
phoc_cursor_set_name
Select a cursor from the cursor theme by its name. To use a surface see
phoc_cursor_set_image()
.
[+]