Class: Gtk::GestureStylus

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#device_toolGdk::DeviceTool

Returns the Gdk::DeviceTool currently driving input through this gesture. This function must be called from either the Gtk::GestureStylus::down, Gtk::GestureStylus::motion, #GtkGestureStylus::up or #GtkGestureStylus::proximity signal handlers.

Returns:

#get_axes(axes, values) ⇒ TrueClass

Returns the current values for the requested axes. This function must be called from either the Gtk::GestureStylus:down, Gtk::GestureStylus:motion, #GtkGestureStylus:up or #GtkGestureStylus:proximity signals.

Parameters:

  • axes (Array<Gdk::AxisUse>)

    array of requested axes, terminated with #GDK_AXIS_IGNORE

  • values (Array<Float>)

    return location for the axis values

Returns:

  • (TrueClass)

    #TRUE if there is a current value for the axes

#get_axis(axis, value) ⇒ TrueClass

Returns the current value for the requested axis. This function must be called from either the Gtk::GestureStylus:down, Gtk::GestureStylus:motion, #GtkGestureStylus:up or #GtkGestureStylus:proximity signals.

Parameters:

  • axis (Gdk::AxisUse)

    requested device axis

  • value (Float)

    return location for the axis value

Returns:

  • (TrueClass)

    #TRUE if there is a current value for the axis

#new(widget) ⇒ Gtk::Gesture

Creates a new Gtk::GestureStylus.

Parameters:

Returns: