]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/dcscreen.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxScreenDC class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "dcscreen.h"
16 #include "wx/dcscreen.h"
17 #include "wx/mac/uma.h"
19 #if !USE_SHARED_LIBRARY
20 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC
, wxWindowDC
)
23 // Create a DC representing the whole screen
24 wxScreenDC::wxScreenDC()
27 m_macPort
= GetQDGlobalsThePort() ;
29 m_macPort
= LMGetWMgrPort() ;
34 GetQDGlobalsScreenBits( &screenBits
);
35 m_minX
= screenBits
.bounds
.left
;
38 GetThemeMenuBarHeight( &height
) ;
39 m_minY
= screenBits
.bounds
.top
+ height
;
41 m_minY
= screenBits
.bounds
.top
+ LMGetMBarHeight() ;
43 m_maxX
= screenBits
.bounds
.right
;
44 m_maxY
= screenBits
.bounds
.bottom
;
47 wxScreenDC::~wxScreenDC()