Cytopia
0.3
A city building simulation game
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Functions
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
~
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
a
c
d
e
g
i
m
n
p
r
s
t
u
v
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Functions
b
c
d
f
g
i
m
o
p
r
s
t
w
Variables
a
c
d
g
h
i
l
m
n
r
s
t
Typedefs
a
c
d
e
f
g
i
j
l
m
n
r
s
t
v
Enumerations
Enumerator
a
b
d
e
f
g
l
m
n
p
r
s
t
u
w
z
Macros
_
c
e
i
l
n
r
s
t
v
Examples
▼
Cytopia
Todo List
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
▼
engine
►
audio
►
basics
►
common
►
GameObjects
►
map
EventManager.cxx
►
EventManager.hxx
►
Layout.hxx
►
Map.cxx
►
Map.hxx
►
MessageQueue.hxx
MessageQueue.inl.hxx
►
ResourcesManager.cxx
►
ResourcesManager.hxx
Sprite.cxx
►
Sprite.hxx
►
TileManager.cxx
►
TileManager.hxx
►
UIManager.cxx
►
UIManager.hxx
WindowManager.cxx
►
WindowManager.hxx
►
game
►
scripting
►
services
►
util
►
windows
Game.cxx
►
Game.hxx
►
main.cxx
►
MainMenu.cxx
►
MainMenu.hxx
phc.hxx
►
File Members
►
Examples
•
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
{
9
std::string
alignment
;
10
std::string
layoutType
;
11
std::string
layoutParentElementID
;
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
src
engine
Layout.hxx
Generated on Sun Nov 27 2022 09:50:52 for Cytopia by
1.8.17