]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/mac/dcscreen.cpp
cosmetic fixes to font encoding names
[wxWidgets.git] / src / mac / dcscreen.cpp
... / ...
CommitLineData
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
20IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
21#endif
22
23// Create a DC representing the whole screen
24wxScreenDC::wxScreenDC()
25{
26#if TARGET_CARBON
27 m_macPort = GetQDGlobalsThePort() ;
28#else
29 m_macPort = LMGetWMgrPort() ;
30#endif
31 MacSetupPort() ;
32 m_ok = TRUE ;
33 BitMap screenBits;
34 GetQDGlobalsScreenBits( &screenBits );
35 m_minX = screenBits.bounds.left ;
36 #if TARGET_CARBON
37 SInt16 height ;
38 GetThemeMenuBarHeight( &height ) ;
39 m_minY = screenBits.bounds.top + height ;
40 #else
41 m_minY = screenBits.bounds.top + LMGetMBarHeight() ;
42 #endif
43 m_maxX = screenBits.bounds.right ;
44 m_maxY = screenBits.bounds.bottom ;
45}
46
47wxScreenDC::~wxScreenDC()
48{
49 // TODO
50}
51