Rectangles, ellipses, and checkboxes are lightweight geometric UI elements. Rectangles and ellipses serve as structural and decorative shapes — borders, panels, and indicators. Checkboxes provide a familiar toggleable boolean control with an optional text label. All three accept separate foreground (border) and background (fill) color parameters; passingDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/DRESSedAlarm184/LWXGL/llms.txt
Use this file to discover all available pages before exploring further.
CLR_NONE (-1) for either omits that rendering layer entirely.
CreateRect
CLR_NONE for fg renders a filled rectangle with no visible border; passing CLR_NONE for bg renders only the border outline.
Unique element ID.
X coordinate of the top-left corner in pixels.
Y coordinate of the top-left corner in pixels.
Width of the rectangle in pixels.
Height of the rectangle in pixels.
Border color — palette index (0–15),
CLR_* constant, or CLR_NONE (-1) to omit the border.Fill color — palette index (0–15),
CLR_* constant, or CLR_NONE (-1) to omit the fill (border-only mode).CreateEllipse
(x, y, w, h). As with CreateRect, fg paints the border and bg fills the interior; either may be CLR_NONE to suppress that layer.
Unique element ID.
X coordinate of the bounding box’s top-left corner in pixels.
Y coordinate of the bounding box’s top-left corner in pixels.
Width of the bounding box in pixels. The ellipse’s horizontal diameter equals
w.Height of the bounding box in pixels. The ellipse’s vertical diameter equals
h. Pass equal w and h for a circle.Border color — palette index (0–15),
CLR_* constant, or CLR_NONE to omit the border.Fill color — palette index (0–15),
CLR_* constant, or CLR_NONE to omit the fill.CreateCheckbox
size × size pixels; the label extends beyond it visually but hit-testing uses only the box region.
Unique element ID.
X coordinate of the checkbox square’s top-left corner in pixels.
Y coordinate of the checkbox square’s top-left corner in pixels.
Side length of the checkbox square in pixels. Both the element width and height are set to this value.
Palette index for the checkmark glyph and the box border.
Palette index for the label text rendered to the right of the box.
Null-terminated label string. The pointer is stored directly (not copied) and must remain valid for the element’s lifetime.
GetCheckbox
ID of an existing checkbox element.
1 if the checkbox is checked, 0 if unchecked.