$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
UILayout Struct Reference

Helper for automatic vertical stacking of UI elements. More...

#include <ui.h>

Collaboration diagram for UILayout:
[legend]

Data Fields

UIContextui
 
float start_x
 
float cursor_y
 
float padding
 
int screen_width
 
int screen_height
 

Detailed Description

Helper for automatic vertical stacking of UI elements.

Field Documentation

◆ cursor_y

float UILayout::cursor_y

Current vertical insertion point.

◆ padding

float UILayout::padding

Space between elements.

◆ screen_height

int UILayout::screen_height

Current window height.

◆ screen_width

int UILayout::screen_width

Current window width.

◆ start_x

float UILayout::start_x

Anchor X position.

◆ ui

UIContext* UILayout::ui

Reference to the UI context.


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