TDME2
1.9.200
src
tdme
gui
nodes
GUIParentNode_Overflow.cpp
Go to the documentation of this file.
1
#include <
tdme/gui/nodes/GUIParentNode_Overflow.h
>
2
3
#include <string>
4
5
#include <
tdme/tdme.h
>
6
#include <
tdme/utilities/Enum.h
>
7
8
using
std::string;
9
10
using
tdme::gui::nodes::GUIParentNode_Overflow
;
11
using
tdme::utilities::Enum
;
12
13
GUIParentNode_Overflow::GUIParentNode_Overflow(
const
string
& name,
int
ordinal)
14
:
Enum
(name, ordinal)
15
{
16
}
17
18
GUIParentNode_Overflow
*
tdme::gui::nodes::GUIParentNode_Overflow::HIDDEN
=
new
GUIParentNode_Overflow
(
"HIDDEN"
, 0);
19
GUIParentNode_Overflow
*
tdme::gui::nodes::GUIParentNode_Overflow::DOWNSIZE_CHILDREN
=
new
GUIParentNode_Overflow
(
"DOWNSIZE_CHILDREN"
, 1);
20
GUIParentNode_Overflow
*
tdme::gui::nodes::GUIParentNode_Overflow::SCROLL
=
new
GUIParentNode_Overflow
(
"SCROLL"
, 2);
21
22
GUIParentNode_Overflow
*
GUIParentNode_Overflow::valueOf
(
const
string
& name)
23
{
24
if
(
DOWNSIZE_CHILDREN
->
getName
() ==
name
)
return
DOWNSIZE_CHILDREN
;
25
if
(
HIDDEN
->
getName
() ==
name
)
return
HIDDEN
;
26
if
(
SCROLL
->
getName
() ==
name
)
return
SCROLL
;
27
// TODO: throw exception here maybe
28
return
nullptr
;
29
}
Enum.h
GUIParentNode_Overflow.h
tdme::gui::nodes::GUIParentNode_Overflow
GUI parent node overflow enum.
Definition:
GUIParentNode_Overflow.h:20
tdme::gui::nodes::GUIParentNode_Overflow::DOWNSIZE_CHILDREN
static STATIC_DLL_IMPEXT GUIParentNode_Overflow * DOWNSIZE_CHILDREN
Definition:
GUIParentNode_Overflow.h:23
tdme::gui::nodes::GUIParentNode_Overflow::valueOf
static GUIParentNode_Overflow * valueOf(const string &name)
Returns enum object given by name.
Definition:
GUIParentNode_Overflow.cpp:22
tdme::gui::nodes::GUIParentNode_Overflow::HIDDEN
static STATIC_DLL_IMPEXT GUIParentNode_Overflow * HIDDEN
Definition:
GUIParentNode_Overflow.h:22
tdme::gui::nodes::GUIParentNode_Overflow::SCROLL
static STATIC_DLL_IMPEXT GUIParentNode_Overflow * SCROLL
Definition:
GUIParentNode_Overflow.h:24
tdme::utilities::Enum
Enum base class.
Definition:
Enum.h:14
tdme::utilities::Enum::getName
const string & getName() const
Definition:
Enum.h:37
tdme::utilities::Enum::name
string name
Definition:
Enum.h:16
tdme.h
Generated by
1.9.1