91     NEO_CALLBACK_FUNCTION m_callback;
 
  119     static void doNothing(
Widget* w, 
long data) {}
 
  121     static void callScript(
Widget* w, 
long data)
 
  128     Widget(
unsigned int x, 
unsigned int y, 
unsigned int width,
 
  129            unsigned int height, 
const char* label);
 
  141     void setSize(
unsigned int w, 
unsigned int h) { m_width = w; m_height = h; }
 
  163     virtual void update() = 0;
 
  179     void setCallback(NEO_CALLBACK_FUNCTION func) { m_callback = func; }
 
  184         m_callbackScript = name;
 
  185         m_callback = Widget::callScript;
 
  272     void rotate(
float value) { m_rotation += value; }
 
  305     virtual bool isMouseOver();
 
std::function< void(Widget *, long int)> NEO_CALLBACK_FUNCTION
Definition: Widget.h:50
 
static NeoEngine * getInstance(void)
 
float y
Definition: Vector2.h:36
 
Implements a framework for string manipulation that operates directly on C strings. 
Definition: NeoString.h:35
 
float x
Definition: Vector2.h:35
 
const char * getSafeString(void)
Returns the C string. This method is ensured to return a valid C string and never NULL...
 
virtual void callFunction(const char *name)=0
 
Class used to manage script functions virtually. 
Definition: ScriptContext.h:32
 
ScriptContext * getScriptContext(void)
Definition: NeoEngine.h:227