Cytopia  0.3
A city building simulation game
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Layout.hxx
Go to the documentation of this file.
1 #ifndef LAYOUT_HXX_
2 #define LAYOUT_HXX_
3 
4 #include <string>
5 #include <vector>
6 
7 struct LayoutData
8 {
12  float alignmentOffset = 0.0F;
13  int padding = 0;
14  int paddingToParent = 0;
15  int groupHeight = 0;
16  int groupWidth = 0;
17  uint32_t fontSize = 20;
18  struct ImFont *font = nullptr;
19 };
20 
21 #endif
LayoutData::layoutType
std::string layoutType
<mandatory> how to layout, default = HORIZONTAL
Definition: Layout.hxx:10
LayoutData::alignmentOffset
float alignmentOffset
Offset in percent to the screen point. can be negative.
Definition: Layout.hxx:12
LayoutData::font
struct ImFont * font
<internal> font pointer for elements
Definition: Layout.hxx:18
LayoutData::groupWidth
int groupWidth
<internal> Width of all elements in group
Definition: Layout.hxx:16
LayoutData::layoutParentElementID
std::string layoutParentElementID
elementID of the parent UiElement this group should be aligned to.
Definition: Layout.hxx:11
LayoutData::fontSize
uint32_t fontSize
<internal> default font size of all elements in group
Definition: Layout.hxx:17
LayoutData::alignment
std::string alignment
<mandatory> where the element should be placed. e.g. CENTER
Definition: Layout.hxx:9
LayoutData::paddingToParent
int paddingToParent
padding between this group and the parent in pixels
Definition: Layout.hxx:14
LayoutData::padding
int padding
padding between elements in pixels
Definition: Layout.hxx:13
LayoutData::groupHeight
int groupHeight
<internal> height of all elements in group
Definition: Layout.hxx:15
string
std::string string
Definition: AudioConfig.hxx:14
LayoutData
Definition: Layout.hxx:7