| 1 | /*********************************************************************** | 
|---|
| 2 | System | 
|---|
| 3 | ***********************************************************************/ | 
|---|
| 4 | class System : public EventSet | 
|---|
| 5 | { | 
|---|
| 6 | static System& getSingleton(); | 
|---|
| 7 |  | 
|---|
| 8 | Renderer* getRenderer() const; | 
|---|
| 9 |  | 
|---|
| 10 | void setDefaultFont(string name); | 
|---|
| 11 | void setDefaultFont(Font* font); | 
|---|
| 12 | Font* getDefaultFont() const; | 
|---|
| 13 |  | 
|---|
| 14 | void signalRedraw(); | 
|---|
| 15 | bool isRedrawRequested() const; | 
|---|
| 16 | void renderGUI(); | 
|---|
| 17 |  | 
|---|
| 18 | Window* setGUISheet(Window* sheet); | 
|---|
| 19 | Window* getGUISheet() const; | 
|---|
| 20 |  | 
|---|
| 21 | void setSingleClickTimeout(double timeout); | 
|---|
| 22 | void setMultiClickTimeout(double timeout); | 
|---|
| 23 | void setMultiClickToleranceAreaSize(const Size& sz); | 
|---|
| 24 | double getSingleClickTimeout() const; | 
|---|
| 25 | double getMultiClickTimeout() const; | 
|---|
| 26 | const Size& getMultiClickToleranceAreaSize() const; | 
|---|
| 27 |  | 
|---|
| 28 | void setDefaultMouseCursor(MouseCursorImage image); | 
|---|
| 29 | void setDefaultMouseCursor(const Image* image); | 
|---|
| 30 | void setDefaultMouseCursor(string imageset_name, string image_name); | 
|---|
| 31 | const Image* getDefaultMouseCursor() const; | 
|---|
| 32 |  | 
|---|
| 33 | Window* getWindowContainingMouse() const; | 
|---|
| 34 |  | 
|---|
| 35 | void executeScriptFile(string filename) const; | 
|---|
| 36 | int executeScriptGlobal(string global_name) const; | 
|---|
| 37 | void executeScriptString(string lua_string) const; | 
|---|
| 38 |  | 
|---|
| 39 | float getMouseMoveScaling() const; | 
|---|
| 40 | void setMouseMoveScaling(float scaling); | 
|---|
| 41 |  | 
|---|
| 42 | void notifyWindowDestroyed(const Window* window); | 
|---|
| 43 |  | 
|---|
| 44 | // commented because we can't do 'bitwise and' in Lua | 
|---|
| 45 | //unsigned int getSystemKeys() const; | 
|---|
| 46 | tolua_outside bool ceguiLua_System_isSystemKeyDown @ isSystemKeyDown(SystemKey k) const; | 
|---|
| 47 |  | 
|---|
| 48 | void setDefaultTooltip(Tooltip* tooltip); | 
|---|
| 49 | void setDefaultTooltip(string tooltipType); | 
|---|
| 50 | Tooltip* getDefaultTooltip(void) const; | 
|---|
| 51 |  | 
|---|
| 52 | bool injectMouseMove(float dx, float dy); | 
|---|
| 53 | bool injectMouseLeaves(); | 
|---|
| 54 | bool injectMouseButtonDown(MouseButton btn); | 
|---|
| 55 | bool injectMouseButtonUp(MouseButton btn); | 
|---|
| 56 | bool injectKeyDown(unsigned int keycode); | 
|---|
| 57 | bool injectKeyUp(unsigned int keycode); | 
|---|
| 58 | bool injectChar(unsigned long code_point); | 
|---|
| 59 | bool injectMouseWheelChange(float delta); | 
|---|
| 60 | bool injectMousePosition(float x, float y); | 
|---|
| 61 | bool injectTimePulse(float timeElapsed); | 
|---|
| 62 |  | 
|---|
| 63 | tolua_outside EventIterator ceguiLua_getEventIterator @ getEventIterator() const; | 
|---|
| 64 | }; | 
|---|