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

The box model every face obeys. More...

#include <paint.h>

Data Fields

int x
int y

Detailed Description

The box model every face obeys.

A face strokes itself inside the rect it is given, so an element's content box is its rect inset by the declared padding plus the stroke the class reserves: BUTTON padding + RMGUI_PAINT_STROKE_PX TEXT_FIELD padding + border_width CONTEXT_MENU padding + border_width other classes padding (their stroke lies under the padding) A host that declares exactly this inset as a node's padding makes the kernel's content box the box the painter draws into.

Field Documentation

◆ x

int rmgui_paint_inset_t::x

◆ y

int rmgui_paint_inset_t::y

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