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

macosx_factory.cpp

00001 /*****************************************************************************
00002  * macosx_factory.cpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: macosx_factory.cpp 11664 2005-07-09 06:17:09Z courmisch $
00006  *
00007  * Authors: Cyril Deguet     <[email protected]>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00022  *****************************************************************************/
00023 
00024 #ifdef MACOSX_SKINS
00025 
00026 #include "macosx_factory.hpp"
00027 #include "macosx_graphics.hpp"
00028 #include "macosx_loop.hpp"
00029 #include "macosx_timer.hpp"
00030 #include "macosx_window.hpp"
00031 #include "macosx_tooltip.hpp"
00032 
00033 
00034 MacOSXFactory::MacOSXFactory( intf_thread_t *pIntf ): OSFactory( pIntf ),
00035     m_dirSep( "/" )
00036 {
00037     // TODO
00038 }
00039 
00040 
00041 MacOSXFactory::~MacOSXFactory()
00042 {
00043     // TODO
00044 }
00045 
00046 
00047 bool MacOSXFactory::init()
00048 {
00049     // TODO
00050     return true;
00051 }
00052 
00053 
00054 OSGraphics *MacOSXFactory::createOSGraphics( int width, int height )
00055 {
00056     return new MacOSXGraphics( getIntf(), width, height );
00057 }
00058 
00059 
00060 OSLoop *MacOSXFactory::getOSLoop()
00061 {
00062     return MacOSXLoop::instance( getIntf() );
00063 }
00064 
00065 
00066 void MacOSXFactory::destroyOSLoop()
00067 {
00068     MacOSXLoop::destroy( getIntf() );
00069 }
00070 
00071 void MacOSXFactory::minimize()
00072 {
00073     // TODO
00074 }
00075 
00076 OSTimer *MacOSXFactory::createOSTimer( const Callback &rCallback )
00077 {
00078     return new MacOSXTimer( getIntf(), rCallback );
00079 }
00080 
00081 
00082 OSWindow *MacOSXFactory::createOSWindow( GenericWindow &rWindow, bool dragDrop,
00083                                       bool playOnDrop, OSWindow *pParent )
00084 {
00085     return new MacOSXWindow( getIntf(), rWindow, dragDrop,
00086                           playOnDrop, (MacOSXWindow*)pParent );
00087 }
00088 
00089 
00090 OSTooltip *MacOSXFactory::createOSTooltip()
00091 {
00092     return new MacOSXTooltip( getIntf() );
00093 }
00094 
00095 
00096 int MacOSXFactory::getScreenWidth() const
00097 {
00098     // TODO
00099     return 0;
00100 }
00101 
00102 
00103 int MacOSXFactory::getScreenHeight() const
00104 {
00105     // TODO
00106     return 0;
00107 }
00108 
00109 
00110 Rect MacOSXFactory::getWorkArea() const
00111 {
00112     // XXX
00113     return Rect( 0, 0, getScreenWidth(), getScreenHeight() );
00114 }
00115 
00116 
00117 void MacOSXFactory::getMousePos( int &rXPos, int &rYPos ) const
00118 {
00119     // TODO
00120 }
00121 
00122 
00123 void MacOSXFactory::rmDir( const string &rPath )
00124 {
00125     // TODO
00126 }
00127 
00128 
00129 #endif

Generated on Tue Dec 20 10:14:42 2005 for vlc-0.8.4a by  doxygen 1.4.2