Module Event.Tablet_tool

Events from graphics tablet tools (e.g. pens).

type ty = [
  1. | `Tablet_tool_axis of [ `Tablet_tool_axis ] t
  2. | `Tablet_tool_proximity of [ `Tablet_tool_proximity ] t
  3. | `Tablet_tool_tip of [ `Tablet_tool_tip ] t
  4. | `Tablet_tool_button of [ `Tablet_tool_button ] t
]
type any = [
  1. | `Tablet_tool_axis
  2. | `Tablet_tool_proximity
  3. | `Tablet_tool_tip
  4. | `Tablet_tool_button
]
val get_time : [< any ] t -> Timestamp.t
val x_has_changed : [< any ] t -> bool
val y_has_changed : [< any ] t -> bool
val pressure_has_changed : [< any ] t -> bool
val distance_has_changed : [< any ] t -> bool
val tilt_x_has_changed : [< any ] t -> bool
val tilt_y_has_changed : [< any ] t -> bool
val rotation_has_changed : [< any ] t -> bool
val slider_has_changed : [< any ] t -> bool
val size_major_has_changed : [< any ] t -> bool
val size_minor_has_changed : [< any ] t -> bool
val wheel_has_changed : [< any ] t -> bool
val get_x : [< any ] t -> float
val get_y : [< any ] t -> float
val get_dx : [< any ] t -> float
val get_dy : [< any ] t -> float
val get_pressure : [< any ] t -> float
val get_distance : [< any ] t -> float
val get_tilt_x : [< any ] t -> float
val get_tilt_y : [< any ] t -> float
val get_rotation : [< any ] t -> float
val get_slider_position : [< any ] t -> float
val get_size_major : [< any ] t -> float
val get_size_minor : [< any ] t -> float
val get_wheel_delta : [< any ] t -> float
val get_wheel_delta_discrete : [< any ] t -> int
val get_x_transformed : [< any ] t -> width:int -> float
val get_y_transformed : [< any ] t -> height:int -> float
val get_tool : [< any ] t -> Tablet_tool.t
val get_proximity_state : [< any ] t -> [ `In | `Out ]
val get_tip_state : [< any ] t -> [ `Up | `Down ]
val get_button : [ `Tablet_tool_button ] t -> int
val get_button_state : [ `Tablet_tool_button ] t -> [ `Released | `Pressed ]
val get_seat_button_count : [ `Tablet_tool_button ] t -> int