Schnittstelle Cursor.OnCursorGetTextureCallback

Umschließende Klasse:
Cursor
Funktionsschnittstelle:
Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.

@FunctionalInterface public static interface Cursor.OnCursorGetTextureCallback
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    onCursorGetTextureCallback(CallbackHandler __self, Cursor cursor, int cursor_size, double scale, Int width, Int height, Int hotspot_x, Int hotspot_y, Pointer data)
    The type of callback used by a dynamic `GdkCursor` to generate
    a texture for the cursor image at the given @cursor_size
    and @scale.
  • Methodendetails

    • onCursorGetTextureCallback

      Texture onCursorGetTextureCallback(CallbackHandler __self, @Nonnull Cursor cursor, int cursor_size, double scale, @Nonnull Int width, @Nonnull Int height, @Nonnull Int hotspot_x, @Nonnull Int hotspot_y, @Nullable Pointer data)
      The type of callback used by a dynamic `GdkCursor` to generate
      a texture for the cursor image at the given @cursor_size
      and @scale.

      The actual cursor size in application pixels may be different
      from @cursor_size x @cursor_size, and will be returned in
      @width, @height. The returned texture should have a size that
      corresponds to the actual cursor size, in device pixels (i.e.
      application pixels, multiplied by @scale).

      This function may fail and return `NULL`, in which case
      the fallback cursor will be used.
      Parameter:
      cursor - the `GdkCursor`
      cursor_size - the nominal cursor size, in application pixels
      scale - the device scale
      width - return location for the actual cursor width, in application pixels
      height - return location for the actual cursor height, in application pixels
      hotspot_x - return location for the hotspot X position, in application pixels
      hotspot_y - return location for the hotspot Y position, in application pixels
      data - User data for the callback
      Gibt zurück:
      the cursor image, or `NULL` if none could be produced.