Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

OSFactory Class Reference

Abstract factory used to instantiate OS specific objects. More...

#include <os_factory.hpp>

Inheritance diagram for OSFactory:

SkinObject MacOSXFactory Win32Factory X11Factory List of all members.

Public Member Functions

virtual bool init ()
virtual OSGraphicscreateOSGraphics (int width, int height)=0
 Instantiate an object OSGraphics.
virtual OSLoopgetOSLoop ()=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 OSWindowcreateOSWindow (GenericWindow &rWindow, bool dragDrop, bool playOnDrop, OSWindow *pParent)=0
 Instantiate an object OSWindow.
virtual OSTooltipcreateOSTooltip ()=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 OSFactoryinstance (intf_thread_t *pIntf)
static void destroy (intf_thread_t *pIntf)
 Delete the instance of OSFactory.

Detailed Description

Abstract factory used to instantiate OS specific objects.

Definition at line 44 of file os_factory.hpp.


Member Function Documentation

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.

Definition at line 58 of file os_factory.hpp.

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.

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().


The documentation for this class was generated from the following files:
Generated on Tue Dec 20 10:15:03 2005 for vlc-0.8.4a by  doxygen 1.4.2