]> git.sesse.net Git - vlc/blob - modules/gui/skins2/macosx/macosx_factory.cpp
FSF address change.
[vlc] / modules / gui / skins2 / macosx / macosx_factory.cpp
1 /*****************************************************************************
2  * macosx_factory.cpp
3  *****************************************************************************
4  * Copyright (C) 2003 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifdef MACOSX_SKINS
25
26 #include "macosx_factory.hpp"
27 #include "macosx_graphics.hpp"
28 #include "macosx_loop.hpp"
29 #include "macosx_popup.hpp"
30 #include "macosx_timer.hpp"
31 #include "macosx_window.hpp"
32 #include "macosx_tooltip.hpp"
33
34
35 MacOSXFactory::MacOSXFactory( intf_thread_t *pIntf ): OSFactory( pIntf ),
36     m_dirSep( "/" )
37 {
38     // TODO
39 }
40
41
42 MacOSXFactory::~MacOSXFactory()
43 {
44     // TODO
45 }
46
47
48 bool MacOSXFactory::init()
49 {
50     // TODO
51     return true;
52 }
53
54
55 OSGraphics *MacOSXFactory::createOSGraphics( int width, int height )
56 {
57     return new MacOSXGraphics( getIntf(), width, height );
58 }
59
60
61 OSLoop *MacOSXFactory::getOSLoop()
62 {
63     return MacOSXLoop::instance( getIntf() );
64 }
65
66
67 void MacOSXFactory::destroyOSLoop()
68 {
69     MacOSXLoop::destroy( getIntf() );
70 }
71
72 void MacOSXFactory::minimize()
73 {
74     // TODO
75 }
76
77 OSTimer *MacOSXFactory::createOSTimer( const Callback &rCallback )
78 {
79     return new MacOSXTimer( getIntf(), rCallback );
80 }
81
82
83 OSWindow *MacOSXFactory::createOSWindow( GenericWindow &rWindow, bool dragDrop,
84                                       bool playOnDrop, OSWindow *pParent )
85 {
86     return new MacOSXWindow( getIntf(), rWindow, dragDrop,
87                           playOnDrop, (MacOSXWindow*)pParent );
88 }
89
90
91 OSTooltip *MacOSXFactory::createOSTooltip()
92 {
93     return new MacOSXTooltip( getIntf() );
94 }
95
96
97 OSPopup *MacOSXFactory::createOSPopup()
98 {
99     return new MacOSXPopup( getIntf() );
100 }
101
102
103 int MacOSXFactory::getScreenWidth() const
104 {
105     // TODO
106     return 0;
107 }
108
109
110 int MacOSXFactory::getScreenHeight() const
111 {
112     // TODO
113     return 0;
114 }
115
116
117 Rect MacOSXFactory::getWorkArea() const
118 {
119     // XXX
120     return Rect( 0, 0, getScreenWidth(), getScreenHeight() );
121 }
122
123
124 void MacOSXFactory::getMousePos( int &rXPos, int &rYPos ) const
125 {
126     // TODO
127 }
128
129
130 void MacOSXFactory::rmDir( const string &rPath )
131 {
132     // TODO
133 }
134
135
136 #endif