Skip to content

MTY_AppSetPNGCursor

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Set the app's cursor to a PNG image.

void MTY_AppSetPNGCursor(
    MTY_App *    ctx,
    const void * image,
    size_t       size,
    uint32_t     hotX,
    uint32_t     hotY
);

Parameters

ctx (MTY_App *)

The MTY_App.

image (const void *)

A buffer holding a compressed PNG image.

size (size_t)

Size in bytes of image.

hotX (uint32_t)

The cursor's horizontal hotspot position.

hotY (uint32_t)

The cursor's vertical hotspot position.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: App

Clone this wiki locally