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