#include <os_factory.hpp>
Inheritance diagram for OSFactory:

Public Member Functions | |
| virtual bool | init () |
| virtual OSGraphics * | createOSGraphics (int width, int height)=0 |
| Instantiate an object OSGraphics. | |
| virtual OSLoop * | getOSLoop ()=0 |
| Get the instance of the singleton OSLoop. | |
| virtual void | destroyOSLoop ()=0 |
| Destroy the instance of OSLoop. | |
| virtual OSTimer * | createOSTimer (CmdGeneric &rCmd)=0 |
| Instantiate an OSTimer with the given command. | |
| virtual OSWindow * | createOSWindow (GenericWindow &rWindow, bool dragDrop, bool playOnDrop, OSWindow *pParent)=0 |
| Instantiate an object OSWindow. | |
| virtual OSTooltip * | createOSTooltip ()=0 |
| Instantiate an object OSTooltip. | |
| virtual const string & | getDirSeparator () const =0 |
| Get the directory separator. | |
| virtual const list< string > & | getResourcePath () const =0 |
| Get the resource path. | |
| virtual int | getScreenWidth () const =0 |
| Get the screen size. | |
| virtual Rect | getWorkArea () const =0 |
| Get the work area (screen area without taskbars). | |
| virtual void | getMousePos (int &rXPos, int &rYPos) const =0 |
| Get the position of the mouse. | |
| virtual void | changeCursor (CursorType_t type) const =0 |
| Change the cursor. | |
| virtual void | rmDir (const string &rPath)=0 |
| Delete a directory recursively. | |
Static Public Member Functions | |
| static OSFactory * | instance (intf_thread_t *pIntf) |
| static void | destroy (intf_thread_t *pIntf) |
| Delete the instance of OSFactory. | |
Definition at line 44 of file os_factory.hpp.
|
|
Initialization method overloaded in derived classes. It must return false if the init failed. Reimplemented in MacOSXFactory, Win32Factory, and X11Factory. Definition at line 58 of file os_factory.hpp. Referenced by instance(). |
|
|
Get the right instance of OSFactory. Returns NULL if initialization of the concrete factory failed. Definition at line 35 of file os_factory.cpp. References init(). Referenced by CtrlButton::CtrlButton(), CtrlCheckbox::CtrlCheckbox(), CtrlRadialSlider::CtrlRadialSlider(), CtrlSliderCursor::CtrlSliderCursor(), CtrlText::CtrlText(), CtrlImage::draw(), VoutWindow::resize(), and GenericLayout::resize(). |
1.4.2