alias Gdk::CursorGetTextureCallback

Overview

The type of callback used by a dynamic Gdk::Cursor 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.

Alias Definition

Gdk::Cursor, Int32, Float64, Int32, Int32, Int32, Int32 -> Gdk::Texture

Defined in:

lib/gi-crystal/src/auto/gdk-4.0/gdk.cr