NW4F Lyt
Loading...
Searching...
No Matches
lyt_Types.h
Go to the documentation of this file.
1#ifndef NW_LYT_TYPES_H_
2#define NW_LYT_TYPES_H_
3
4#include <nw/types.h>
5
6#include <nw/math/math_Types.h>
7
8namespace nw { namespace lyt {
9
10const int ResourceNameStrMax = 24;
11// ...
12const int UserDataStrMax = 8;
13// ...
14const int TexMapMax = 3;
15
26
27struct Size
28{
30 : width(0), height(0)
31 {
32 }
33
34 Size(f32 aWidth, f32 aHeight)
36 {
37 }
38
39 Size(const Size& other)
41 {
42 }
43
44 static Size Create(float aWidth, float aHeight)
45 {
46 Size size;
47
48 size.width = aWidth;
49 size.height = aHeight;
50
51 return size;
52 }
53
56};
57
58} } // namespace nw::lyt
59
60#endif // NW_LYT_TYPES_H_
Definition lyt_Animator.h:6
const int TexMapMax
Definition lyt_Types.h:14
const int UserDataStrMax
Definition lyt_Types.h:12
const int ResourceNameStrMax
Definition lyt_Types.h:10
TextColor
Definition lyt_Types.h:17
@ TextColor_Top
Definition lyt_Types.h:22
@ TextColor_Bottom
Definition lyt_Types.h:23
@ TEXTCOLOR_MAX
Definition lyt_Types.h:20
@ TextColor_MaxTextColor
Definition lyt_Types.h:24
@ TEXTCOLOR_TOP
Definition lyt_Types.h:18
@ TEXTCOLOR_BOTTOM
Definition lyt_Types.h:19
Definition lyt_Types.h:28
Size(f32 aWidth, f32 aHeight)
Definition lyt_Types.h:34
f32 height
Definition lyt_Types.h:55
static Size Create(float aWidth, float aHeight)
Definition lyt_Types.h:44
f32 width
Definition lyt_Types.h:54
Size()
Definition lyt_Types.h:29
Size(const Size &other)
Definition lyt_Types.h:39