Cytopia  0.3
A city building simulation game
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LayoutData Struct Reference

#include <Layout.hxx>

+ Collaboration diagram for LayoutData:

Public Attributes

std::string alignment
 <mandatory> where the element should be placed. e.g. CENTER More...
 
std::string layoutType
 <mandatory> how to layout, default = HORIZONTAL More...
 
std::string layoutParentElementID
 elementID of the parent UiElement this group should be aligned to. More...
 
float alignmentOffset = 0.0F
 Offset in percent to the screen point. can be negative. More...
 
int padding = 0
 padding between elements in pixels More...
 
int paddingToParent = 0
 padding between this group and the parent in pixels More...
 
int groupHeight = 0
 <internal> height of all elements in group More...
 
int groupWidth = 0
 <internal> Width of all elements in group More...
 
uint32_t fontSize = 20
 <internal> default font size of all elements in group More...
 
struct ImFont * font = nullptr
 <internal> font pointer for elements More...
 

Detailed Description

Definition at line 7 of file Layout.hxx.

Member Data Documentation

◆ alignment

std::string LayoutData::alignment

<mandatory> where the element should be placed. e.g. CENTER

Definition at line 9 of file Layout.hxx.

◆ alignmentOffset

float LayoutData::alignmentOffset = 0.0F

Offset in percent to the screen point. can be negative.

Definition at line 12 of file Layout.hxx.

◆ font

struct ImFont* LayoutData::font = nullptr

<internal> font pointer for elements

Definition at line 18 of file Layout.hxx.

◆ fontSize

uint32_t LayoutData::fontSize = 20

<internal> default font size of all elements in group

Definition at line 17 of file Layout.hxx.

◆ groupHeight

int LayoutData::groupHeight = 0

<internal> height of all elements in group

Definition at line 15 of file Layout.hxx.

◆ groupWidth

int LayoutData::groupWidth = 0

<internal> Width of all elements in group

Definition at line 16 of file Layout.hxx.

◆ layoutParentElementID

std::string LayoutData::layoutParentElementID

elementID of the parent UiElement this group should be aligned to.

Definition at line 11 of file Layout.hxx.

◆ layoutType

std::string LayoutData::layoutType

<mandatory> how to layout, default = HORIZONTAL

Definition at line 10 of file Layout.hxx.

◆ padding

int LayoutData::padding = 0

padding between elements in pixels

Definition at line 13 of file Layout.hxx.

◆ paddingToParent

int LayoutData::paddingToParent = 0

padding between this group and the parent in pixels

Definition at line 14 of file Layout.hxx.


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