RMGui 0.15.0
C11 retained-mode UI library: layout kernel, style schema, widget painters, fonts, software framebuffer
Loading...
Searching...
No Matches
rmgui_mask_t Struct Reference

height rows of width coverage bytes, 0 (outside) to 255 (inside), rows contiguous and unpadded. More...

#include <mask.h>

Data Fields

int width
int height
uint8_t * coverage

Detailed Description

height rows of width coverage bytes, 0 (outside) to 255 (inside), rows contiguous and unpadded.

Like rmgui_fb_t, a mask is in exactly one of two states:

  • empty: width == 0, height == 0, coverage == NULL (zero-initialized, and the result of rmgui_mask_free);
  • allocated: produced by rmgui_mask_alloc; width and height are positive and coverage is a library-owned block released only by rmgui_mask_free. Callers read every field and may write coverage bytes; they never assign the fields themselves. A mask a layout node points at must stay allocated and unmodified for as long as any snapshot published from that node is queried.

Field Documentation

◆ width

int rmgui_mask_t::width

◆ height

int rmgui_mask_t::height

◆ coverage

uint8_t* rmgui_mask_t::coverage

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