]>
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 // wxWidgets itself, it may contain identifiers which don't start
6 // Author: Vaclav Slavik
9 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_PRIVATE_H_
14 #define _WX_PRIVATE_H_
19 class WXDLLEXPORT wxBitmap
;
22 // ---------------------------------------------------------------------------
24 // ---------------------------------------------------------------------------
26 extern MGLDevCtx
*g_displayDC
;
27 extern winmng_t
*g_winMng
;
29 // ---------------------------------------------------------------------------
31 // ---------------------------------------------------------------------------
34 // This function converts wxBitmap into pixpattern24_t representation
35 // (used by wxBrush and wxPen)
37 extern void wxBitmapToPixPattern(const wxBitmap
& bitmap
,
38 pixpattern24_t
*pix
, pattern_t
*mask
);
41 // Sets current DC and restores previous one upon destruction:
42 class wxCurrentDCSwitcher
45 wxCurrentDCSwitcher(MGLDevCtx
*dc
)
46 { m_old
= dc
->makeCurrent(); }
47 ~wxCurrentDCSwitcher()
48 { MGL_makeCurrentDC(m_old
); }
53 #endif // _WX_PRIVATE_H_