Klasse GestureStylus

Alle implementierten Schnittstellen:
PointerInterface

public class GestureStylus extends GestureSingle
Recognizes tablet stylus input.

The provided signals just relay the basic information of the
stylus events.

https://docs.gtk.org/gtk4/class.GestureStylus.html

  • Felddetails

  • Konstruktordetails

    • GestureStylus

      public GestureStylus(PointerContainer pointer)
    • GestureStylus

      public GestureStylus()
      Creates a new `GtkGestureStylus`.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getDeviceTool

      public DeviceTool getDeviceTool()
      Returns the `GdkDeviceTool` currently driving input through this gesture.

      This function must be called from the handler of one of the
      [signal@Gtk.GestureStylus::down], [signal@Gtk.GestureStylus::motion],
      [signal@Gtk.GestureStylus::up] or [signal@Gtk.GestureStylus::proximity]
      signals.
      Gibt zurück:
      The current stylus tool
    • getStylusOnly

      public boolean getStylusOnly()
      Checks whether the gesture is for styluses only.

      Stylus-only gestures will signal events exclusively from stylus
      input devices.
      Gibt zurück:
      %TRUE if the gesture is only for stylus events
    • setStylusOnly

      public void setStylusOnly(boolean stylus_only)
      Sets the state of stylus-only

      If true, the gesture will exclusively handle events from stylus input devices,
      otherwise it'll handle events from any pointing device.
      Parameter:
      stylus_only - whether the gesture is used exclusively for stylus events
    • onDown

      public SignalHandler onDown(GestureStylus.OnDown signal)
      Connect to signal "down".
      See GestureStylus.OnDown.onDown(double, double) for signal description.
      Field SIGNAL_ON_DOWN contains original signal name and can be used as resource reference.
      Parameter:
      signal - callback function (lambda).
      Gibt zurück:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onMotion

      public SignalHandler onMotion(GestureStylus.OnMotion signal)
      Connect to signal "motion".
      See GestureStylus.OnMotion.onMotion(double, double) for signal description.
      Field SIGNAL_ON_MOTION contains original signal name and can be used as resource reference.
      Parameter:
      signal - callback function (lambda).
      Gibt zurück:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onProximity

      public SignalHandler onProximity(GestureStylus.OnProximity signal)
      Connect to signal "proximity".
      See GestureStylus.OnProximity.onProximity(double, double) for signal description.
      Field SIGNAL_ON_PROXIMITY contains original signal name and can be used as resource reference.
      Parameter:
      signal - callback function (lambda).
      Gibt zurück:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • onUp

      public SignalHandler onUp(GestureStylus.OnUp signal)
      Connect to signal "up".
      See GestureStylus.OnUp.onUp(double, double) for signal description.
      Field SIGNAL_ON_UP contains original signal name and can be used as resource reference.
      Parameter:
      signal - callback function (lambda).
      Gibt zurück:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()