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.

[]

Ancestors

[]

Constructors

phoc_cursor_new
No description available.

[]

Instance methods

phoc_cursor_add_gesture

Adds a gesture to the list of gestures handled by self.

phoc_cursor_configure_xcursor

Load cursor theme for the current output scales and set a default cursor.

phoc_cursor_constrain
No description available.

phoc_cursor_get_gestures

Gets the currently registered gestures of self.

phoc_cursor_get_mode

Get the current cursor mode.

phoc_cursor_get_touch_points

Gets the touch points currently tracked by the 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_handle_focus_change
No description available.

phoc_cursor_handle_tool_axis
No description available.

phoc_cursor_handle_tool_tip
No description available.

phoc_cursor_handle_touch_down
No description available.

phoc_cursor_handle_touch_motion
No description available.

phoc_cursor_handle_touch_up
No description available.

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_mode

Set the cursor mode.

phoc_cursor_set_name

Select a cursor from the cursor theme by its name. To use a surface see phoc_cursor_set_image().

phoc_cursor_set_xcursor_theme

Set the current cursor theme.

phoc_cursor_update_focus
No description available.

phoc_cursor_update_position
No description available.

Methods inherited from GObject (43)
[]

Properties

Phoc.Cursor:seat
No description available.

[]

Signals

Signals inherited from GObject (1)

Class structure