

Public Types | |
| enum | CursorType_t { kDefaultArrow, kResizeNS, kResizeWE, kResizeNWSE, kResizeNESW } |
Public Member Functions | |
| virtual bool | init () |
| Initialization method overloaded in derived classes. | |
| 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 void | minimize ()=0 |
| Minimize all the windows. | |
| virtual void | restore ()=0 |
| Restore the minimized windows. | |
| virtual void | addInTray ()=0 |
| Add an icon in the system tray. | |
| virtual void | removeFromTray ()=0 |
| Remove the icon from the system tray. | |
| virtual void | addInTaskBar ()=0 |
| Show the task in the task bar. | |
| virtual void | removeFromTaskBar ()=0 |
| Remove the task from the task bar. | |
| 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 OSPopup * | createOSPopup ()=0 |
| Instantiate an object OSPopup. | |
| 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 int | getScreenHeight () const =0 |
| virtual SkinsRect | 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) |
| Get the right instance of OSFactory. | |
| static void | destroy (intf_thread_t *pIntf) |
| Delete the instance of OSFactory. | |
Protected Member Functions | |
| OSFactory (intf_thread_t *pIntf) | |
| virtual | ~OSFactory () |
| OSFactory::OSFactory | ( | intf_thread_t * | pIntf | ) | [inline, protected] |
| virtual OSFactory::~OSFactory | ( | ) | [inline, protected, virtual] |
| virtual bool OSFactory::init | ( | ) | [inline, virtual] |
Initialization method overloaded in derived classes.
It must return false if the init failed.
Reimplemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by instance().
| OSFactory * OSFactory::instance | ( | intf_thread_t * | pIntf | ) | [static] |
Get the right instance of OSFactory.
Returns NULL if initialization of the concrete factory failed.
References init(), intf_sys_t::p_osFactory, and intf_thread_t::p_sys.
Referenced by AnimBitmap::AnimBitmap(), CtrlImage::CtrlImage(), CtrlRadialSlider::CtrlRadialSlider(), CtrlSliderCursor::CtrlSliderCursor(), CtrlText::CtrlText(), CtrlImage::draw(), CmdUpdateItem::execute(), CmdShowPopup::execute(), CmdRemoveFromTaskBar::execute(), CmdAddInTaskBar::execute(), CmdRemoveFromTray::execute(), CmdAddInTray::execute(), CmdRestore::execute(), CmdMinimize::execute(), GenericLayout::GenericLayout(), GenericWindow::GenericWindow(), WindowManager::maximize(), Popup::Popup(), GenericLayout::resize(), Run(), ThemeRepository::ThemeRepository(), Tooltip::Tooltip(), and VlcProc::VlcProc().
| void OSFactory::destroy | ( | intf_thread_t * | pIntf | ) | [static] |
Delete the instance of OSFactory.
References intf_sys_t::p_osFactory, and intf_thread_t::p_sys.
Referenced by Run().
| virtual OSGraphics* OSFactory::createOSGraphics | ( | int | width, | |
| int | height | |||
| ) | [pure virtual] |
Instantiate an object OSGraphics.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by AnimBitmap::AnimBitmap(), CtrlImage::CtrlImage(), CtrlRadialSlider::CtrlRadialSlider(), CtrlSliderCursor::CtrlSliderCursor(), CtrlImage::draw(), GenericLayout::GenericLayout(), and GenericLayout::resize().
| virtual OSLoop* OSFactory::getOSLoop | ( | ) | [pure virtual] |
Get the instance of the singleton OSLoop.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by Run().
| virtual void OSFactory::destroyOSLoop | ( | ) | [pure virtual] |
Destroy the instance of OSLoop.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by Run().
| virtual void OSFactory::minimize | ( | ) | [pure virtual] |
Minimize all the windows.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by CmdMinimize::execute().
| virtual void OSFactory::restore | ( | ) | [pure virtual] |
Restore the minimized windows.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by CmdRestore::execute().
| virtual void OSFactory::addInTray | ( | ) | [pure virtual] |
Add an icon in the system tray.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by CmdAddInTray::execute().
| virtual void OSFactory::removeFromTray | ( | ) | [pure virtual] |
Remove the icon from the system tray.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by CmdRemoveFromTray::execute().
| virtual void OSFactory::addInTaskBar | ( | ) | [pure virtual] |
Show the task in the task bar.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by CmdAddInTaskBar::execute().
| virtual void OSFactory::removeFromTaskBar | ( | ) | [pure virtual] |
Remove the task from the task bar.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by CmdRemoveFromTaskBar::execute().
| virtual OSTimer* OSFactory::createOSTimer | ( | CmdGeneric & | rCmd | ) | [pure virtual] |
Instantiate an OSTimer with the given command.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by AnimBitmap::AnimBitmap(), CtrlText::CtrlText(), Tooltip::Tooltip(), and VlcProc::VlcProc().
| virtual OSWindow* OSFactory::createOSWindow | ( | GenericWindow & | rWindow, | |
| bool | dragDrop, | |||
| bool | playOnDrop, | |||
| OSWindow * | pParent | |||
| ) | [pure virtual] |
Instantiate an object OSWindow.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by GenericWindow::GenericWindow().
| virtual OSTooltip* OSFactory::createOSTooltip | ( | ) | [pure virtual] |
Instantiate an object OSTooltip.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by Tooltip::Tooltip().
| virtual OSPopup* OSFactory::createOSPopup | ( | ) | [pure virtual] |
Instantiate an object OSPopup.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by Popup::Popup().
| virtual const string& OSFactory::getDirSeparator | ( | ) | const [pure virtual] |
Get the directory separator.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by CmdUpdateItem::execute(), and Run().
| virtual const list<string>& OSFactory::getResourcePath | ( | ) | const [pure virtual] |
Get the resource path.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by Run(), and ThemeRepository::ThemeRepository().
| virtual int OSFactory::getScreenWidth | ( | ) | const [pure virtual] |
| virtual int OSFactory::getScreenHeight | ( | ) | const [pure virtual] |
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
| virtual SkinsRect OSFactory::getWorkArea | ( | ) | const [pure virtual] |
Get the work area (screen area without taskbars).
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by WindowManager::maximize().
| virtual void OSFactory::getMousePos | ( | int & | rXPos, | |
| int & | rYPos | |||
| ) | const [pure virtual] |
Get the position of the mouse.
Implemented in MacOSXFactory, Win32Factory, and X11Factory.
Referenced by CmdShowPopup::execute().
| virtual void OSFactory::changeCursor | ( | CursorType_t | type | ) | const [pure virtual] |
| virtual void OSFactory::rmDir | ( | const string & | rPath | ) | [pure virtual] |
1.5.6