Package ch.bailu.gtk.gdk
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungonCursorGetTextureCallback
(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 pixelsscale
- the device scalewidth
- return location for the actual cursor width, in application pixelsheight
- return location for the actual cursor height, in application pixelshotspot_x
- return location for the hotspot X position, in application pixelshotspot_y
- return location for the hotspot Y position, in application pixelsdata
- User data for the callback- Gibt zurück:
- the cursor image, or `NULL` if none could be produced.
-