Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::UIMargin Struct Reference

Defines the exterior boundaries (in pixels) surrounding a UI element. More...

#include <flint/ui/ui-types.h>

+ Collaboration diagram for Flint::UIMargin:

Public Attributes

float top = 0.0f
 
float left = 0.0f
 
float right = 0.0f
 
float bottom = 0.0f
 

Detailed Description

Defines the exterior boundaries (in pixels) surrounding a UI element.

See also
UIPanel::measure, UIPanel::arrange

Definition at line 62 of file ui-types.h.

Member Data Documentation

◆ bottom

float Flint::UIMargin::bottom = 0.0f

Bottom exterior offset in pixels.

Definition at line 66 of file ui-types.h.

◆ left

float Flint::UIMargin::left = 0.0f

Left exterior offset in pixels.

Definition at line 64 of file ui-types.h.

◆ right

float Flint::UIMargin::right = 0.0f

Right exterior offset in pixels.

Definition at line 65 of file ui-types.h.

◆ top

float Flint::UIMargin::top = 0.0f

Top exterior offset in pixels.

Definition at line 63 of file ui-types.h.


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