36 #ifndef __GUI_SYSTEM__ 
   37 #define __GUI_SYSTEM__ 
   40 #define DISOWN(a) %apply SWIGTYPE* DISOWN {a}; 
   47         #pragma warning(disable: 4251) 
   50     #if defined(NEO2D_DLL) 
   51         #define NEO2D_EXPORT __declspec( dllexport ) 
   52     #elif defined(NEO_CORE_STATIC) 
   55         #define NEO2D_EXPORT __declspec( dllimport ) 
   89     std::vector<Canvas*> m_canvasVector;
 
   90     std::map<int, WidgetId> m_widgets;
 
   91     std::string m_defaultFont;
 
   92     float m_defaultFontSize;
 
   98     bool m_clearScheduled;
 
  105     String m_themeBorderHHover;
 
  106     String m_themeBorderVHover;
 
  110     String m_themeBorderHPressed;
 
  111     String m_themeBorderVPressed;
 
  112     String m_themeBodyPressed;
 
  113     String m_themeEdgePressed;
 
  124     FontRef* loadFont(
const char * filename, 
unsigned int fontsize);
 
  125     TextureRef* loadTexture(
const char * filename, 
const bool mipmap = 
true, 
const bool preload = 
true);
 
  158     void setThemeDirectory(
const char* dir);
 
  243         m_highlightBackground = color;
 
  252     Widget* getWidget(
unsigned int idx);
 
  291     void destroyWidget(
int id);
 
const char * getThemeBorderH()
Definition: Neo2DEngine.h:129
 
Definition: DataManager.h:72
 
void setNormalBackground(Vector4 color)
Changes the normal background color. 
Definition: Neo2DEngine.h:229
 
void setEnabled(bool enabled)
Enables or disables the GUI. 
Definition: Neo2DEngine.h:177
 
The Canvas class contains all widgets and renders them. 
Definition: Canvas.h:109
 
const char * getThemeEdge()
Definition: Neo2DEngine.h:132
 
const char * getThemeEdgeHover()
Definition: Neo2DEngine.h:137
 
size_t getNumWidgets()
Returns the number of registered widgets. 
Definition: Neo2DEngine.h:266
 
Vector4 getNormalBackground()
Returns the normal background color. 
Definition: Neo2DEngine.h:211
 
const char * getDefaultFont()
Returns the default font. 
Definition: Neo2DEngine.h:193
 
Implements a framework for string manipulation that operates directly on C strings. 
Definition: NeoString.h:35
 
const char * getThemeBorderVPressed()
Definition: Neo2DEngine.h:141
 
float getDefaultFontSize()
Returns the default font size. 
Definition: Neo2DEngine.h:199
 
const char * getThemeBody()
Definition: Neo2DEngine.h:131
 
void setHoverBackground(Vector4 color)
Changes the hover background color. 
Definition: Neo2DEngine.h:235
 
The Neo2DEngine class contains all functionality to set up a GUI. 
Definition: Neo2DEngine.h:77
 
Vector4 getHighlightBackground()
Returns the highlight color. 
Definition: Neo2DEngine.h:223
 
const char * getThemeBodyHover()
Definition: Neo2DEngine.h:136
 
const char * getSafeString(void)
Returns the C string. This method is ensured to return a valid C string and never NULL...
 
const char * getThemeBorderHPressed()
Definition: Neo2DEngine.h:140
 
Definition: TextureRef.h:32
 
const char * getThemeBorderV()
Definition: Neo2DEngine.h:130
 
Canvas * getCanvas(unsigned int i)
Returns the Canvas with the given index. 
Definition: Neo2DEngine.h:279
 
void setDefaultFontSize(float s)
Changes the default font size. 
Definition: Neo2DEngine.h:205
 
const char * getThemeBorderHHover()
Definition: Neo2DEngine.h:134
 
Vector4 getHoverBackground()
Returns the hover background color. 
Definition: Neo2DEngine.h:217
 
const char * getThemeBorderVHover()
Definition: Neo2DEngine.h:135
 
const char * getThemeDirectory()
Definition: Neo2DEngine.h:127
 
const char * getThemeBodyPressed()
Definition: Neo2DEngine.h:142
 
Class used to manage script functions virtually. 
Definition: ScriptContext.h:32
 
void scheduleClear()
Definition: Neo2DEngine.h:297
 
void setHighlightBackground(Vector4 color)
Changes the highlight background color. 
Definition: Neo2DEngine.h:241
 
const char * getThemeEdgePressed()
Definition: Neo2DEngine.h:143