]> git.saurik.com Git - wxWidgets.git/blob - src/mac/dcscreen.cpp
Compile fix for app.cpp without precompiled headers.
[wxWidgets.git] / src / mac / dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcscreen.cpp
3 // Purpose: wxScreenDC class
4 // Author: AUTHOR
5 // Modified by:
6 // Created: ??/??/98
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "dcscreen.h"
14 #endif
15
16 #include "wx/dcscreen.h"
17 #include "wx/mac/uma.h"
18
19 #if !USE_SHARED_LIBRARY
20 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
21 #endif
22
23 // Create a DC representing the whole screen
24 wxScreenDC::wxScreenDC()
25 {
26 #if TARGET_CARBON
27 m_macPort = GetQDGlobalsThePort() ;
28 #else
29 m_macPort = LMGetWMgrPort() ;
30 #endif
31 m_ok = TRUE ;
32 BitMap screenBits;
33 GetQDGlobalsScreenBits( &screenBits );
34 m_minX = screenBits.bounds.left ;
35 #if TARGET_CARBON
36 SInt16 height ;
37 GetThemeMenuBarHeight( &height ) ;
38 m_minY = screenBits.bounds.top + height ;
39 #else
40 m_minY = screenBits.bounds.top + LMGetMBarHeight() ;
41 #endif
42 m_maxX = screenBits.bounds.right ;
43 m_maxY = screenBits.bounds.bottom ;
44 }
45
46 wxScreenDC::~wxScreenDC()
47 {
48 // TODO
49 }
50