Blender V5.3
GHOST_IconGenerator Struct Reference

#include <GHOST_Types.hh>

Public Attributes

void(*) generate_fn (const struct GHOST_IconGenerator *icon_generator, GHOST_IWindow *window, uint8_t *pixels, int icon_size)
GHOST_TUserDataPtr user_data

Detailed Description

Definition at line 83 of file GHOST_Types.hh.

Member Data Documentation

◆ generate_fn

void(*) GHOST_IconGenerator::generate_fn(const struct GHOST_IconGenerator *icon_generator, GHOST_IWindow *window, uint8_t *pixels, int icon_size)

Generate a top-level window icon.

The callback writes RGBA pixels into a pre-allocated buffer. The color is "straight" (alpha is not pre-multiplied).

Parameters
icon_generatorPass in to allow accessing the user_data argument.
windowThe window requesting an icon.
pixelsPre-allocated RGBA buffer (icon_size * icon_size * 4 bytes).
icon_sizeThe width and height of the square icon in pixels.

Definition at line 95 of file GHOST_Types.hh.

Referenced by GHOST_SystemWayland::xdg_toplevel_icon_update().

◆ user_data

GHOST_TUserDataPtr GHOST_IconGenerator::user_data

Implementation specific data.

Definition at line 100 of file GHOST_Types.hh.


The documentation for this struct was generated from the following file: