TDME2  1.9.200
GUINode_AlignmentVertical.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 GUINode_AlignmentVertical::GUINode_AlignmentVertical(const string& name, int ordinal)
14  : Enum(name, ordinal)
15 {
16 }
17 
22 
24 {
25  if (NONE->getName() == name) return NONE;
26  if (TOP->getName() == name) return TOP;
27  if (CENTER->getName() == name) return CENTER;
28  if (BOTTOM->getName() == name) return BOTTOM;
29  // TODO: throw exception here maybe
30  return nullptr;
31 }
static STATIC_DLL_IMPEXT GUINode_AlignmentVertical * NONE
static STATIC_DLL_IMPEXT GUINode_AlignmentVertical * BOTTOM
static GUINode_AlignmentVertical * valueOf(const string &name)
Returns enum object given by name.
static STATIC_DLL_IMPEXT GUINode_AlignmentVertical * CENTER
static STATIC_DLL_IMPEXT GUINode_AlignmentVertical * TOP
Enum base class.
Definition: Enum.h:14
const string & getName() const
Definition: Enum.h:37