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

data is copied with memcpy into these layouts; no pointer casts or alignment assumptions apply. More...

#include <draw_target.h>

Data Fields

rmgui_color_t color
int values [5]

Detailed Description

data is copied with memcpy into these layouts; no pointer casts or alignment assumptions apply.

rect carries requested destination geometry, not clipped bounds. Basic.color is straight RGBA. PIXEL uses rect.x/y. HLINE and VLINE both store origin in rect.x/y and length in rect.w (rect.h unused). LINE uses rect x,y,w,h as x0,y0,x1,y1. ROUNDED uses values[0] as radius. REPLACE/RECT/OUTLINE use rect unchanged. VGRAD/POLYGON use array offset/count (stops or points); polygon also uses array.color and flags. AA_DISC: from=centre,width=radius; AA_RING: from=centre,width=outer, to.x_q16=inner; AA_LINE: from,to,width; AA_ELLIPSE: from=centre, to={rx,ry},width=0. All AA use color, mode/cap flags. BLIT/BLIT_SCALED use rect.x/y, scaled extra holds the signed scale bits. STRETCH uses rect. FILTERED/MASKED/SHAPED/NINE/TILE use blit.src and clip. MASKED extra is mask/radius payload offset, SHAPED extra is mask resource, NINE/TILE extra is the corresponding payload offset; tint is straight RGBA. GLYPH uses basic.color and rect.x/y as coverage origin. LAYER uses array.offset for transform payload and SUBSTREAM resource. COMPOSITE uses blit.extra for target_composite.h's value payload. Its source is immutable RGBA or a sealed SUBSTREAM rendered on transparent black; the latter is sampled as straight RGBA by the same image kernel. Child reads are isolated and its storage remains acquired until consume.

Field Documentation

◆ color

rmgui_color_t rmgui_target_basic_args_t::color

◆ values

int rmgui_target_basic_args_t::values[5]

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