]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/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() ;
33 GetQDGlobalsScreenBits( &screenBits
);
34 m_minX
= screenBits
.bounds
.left
;
37 GetThemeMenuBarHeight( &height
) ;
38 m_minY
= screenBits
.bounds
.top
+ height
;
40 m_minY
= screenBits
.bounds
.top
+ LMGetMBarHeight() ;
42 m_maxX
= screenBits
.bounds
.right
;
43 m_maxY
= screenBits
.bounds
.bottom
;
46 wxScreenDC::~wxScreenDC()