]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/private.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: Private declarations: as this header is only included by
4 // wxWindows itself, it may contain identifiers which don't start
6 // Author: Vaclav Slavik
9 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_PRIVATE_H_
14 #define _WX_PRIVATE_H_
18 class WXDLLEXPORT wxBitmap
;
21 // ---------------------------------------------------------------------------
23 // ---------------------------------------------------------------------------
25 extern MGLDevCtx
*g_displayDC
;
26 extern winmng_t
*g_winMng
;
28 // ---------------------------------------------------------------------------
30 // ---------------------------------------------------------------------------
33 // This function converts wxBitmap into pixpattern24_t representation
34 // (used by wxBrush and wxPen)
36 extern void wxBitmapToPixPattern(const wxBitmap
& bitmap
,
37 pixpattern24_t
*pix
, pattern_t
*mask
);
40 // Sets current DC and restores previous one upon destruction:
41 class wxCurrentDCSwitcher
44 wxCurrentDCSwitcher(MGLDevCtx
*dc
)
45 { m_old
= dc
->makeCurrent(); }
46 ~wxCurrentDCSwitcher()
47 { MGL_makeCurrentDC(m_old
); }
52 #endif // _WX_PRIVATE_H_