Class: Gtk::GestureStylus
- Inherits:
-
GestureSingle
- Object
- EventController
- Gesture
- GestureSingle
- Gtk::GestureStylus
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#device_tool ⇒ Gdk::DeviceTool
Returns the
GdkDeviceToolcurrently driving input through this gesture. -
#get_axes(axes, values) ⇒ Boolean
Returns the current values for the requested axes.
-
#get_axis(axis, value) ⇒ Boolean
Returns the current value for the requested axis.
-
#get_backlog(backlog, n_elems) ⇒ Boolean
Returns the accumulated backlog of tracking information.
-
#initialize ⇒ Gtk::Gesture
constructor
Creates a new
GtkGestureStylus. -
#stylus_only ⇒ Boolean
Checks whether the gesture is for styluses only.
-
#stylus_only=(stylus_only) ⇒ Boolean
If this gesture should exclusively react to stylus input devices.
-
#stylus_only? ⇒ Boolean
If this gesture should exclusively react to stylus input devices.
Methods inherited from GestureSingle
#button, #button=, #current_button, #current_sequence, #exclusive, #exclusive=, #exclusive?, #touch_only, #touch_only=, #touch_only?
Methods inherited from Gesture
#device, #get_bounding_box, #get_bounding_box_center, #get_last_event, #get_point, #get_sequence_state, #group, #handles_sequence, #is_active, #is_grouped_with, #is_recognized, #last_updated_sequence, #n_points, #n_points=, #sequences, #set_sequence_state, #state=, #ungroup
Methods inherited from EventController
#current_event, #current_event_device, #current_event_state, #current_event_time, #name, #name=, #propagation_limit, #propagation_limit=, #propagation_phase, #propagation_phase=, #reset, #static_name=, #widget, #widget=
Constructor Details
#initialize ⇒ Gtk::Gesture
Creates a new GtkGestureStylus.
Instance Method Details
#device_tool ⇒ Gdk::DeviceTool
Returns the GdkDeviceTool currently driving input through this gesture.
This function must be called from the handler of one of the [signalGtk.GestureStylus::down], [signalGtk.GestureStylus::motion], [signalGtk.GestureStylus::up] or [signalGtk.GestureStylus::proximity] signals.
#get_axes(axes, values) ⇒ Boolean
Returns the current values for the requested axes.
This function must be called from the handler of one of the [signalGtk.GestureStylus::down], [signalGtk.GestureStylus::motion], [signalGtk.GestureStylus::up] or [signalGtk.GestureStylus::proximity] signals.
#get_axis(axis, value) ⇒ Boolean
Returns the current value for the requested axis.
This function must be called from the handler of one of the [signalGtk.GestureStylus::down], [signalGtk.GestureStylus::motion], [signalGtk.GestureStylus::up] or [signalGtk.GestureStylus::proximity] signals.
#get_backlog(backlog, n_elems) ⇒ Boolean
Returns the accumulated backlog of tracking information.
By default, GTK will limit rate of input events. On stylus input where accuracy of strokes is paramount, this function returns the accumulated coordinate/timing state before the emission of the current [Gtk.GestureStylus::motion] signal.
This function may only be called within a [signalGtk.GestureStylus::motion] signal handler, the state given in this signal and obtainable through [methodGtk.GestureStylus.get_axis] express the latest (most up-to-date) state in motion history.
The backlog is provided in chronological order.
#stylus_only ⇒ Boolean
Checks whether the gesture is for styluses only.
Stylus-only gestures will signal events exclusively from stylus input devices.
#stylus_only=(stylus_only) ⇒ Boolean
If this gesture should exclusively react to stylus input devices.
#stylus_only? ⇒ Boolean
If this gesture should exclusively react to stylus input devices.