]>
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_MGL_PRIVATE_H_
14 #define _WX_MGL_PRIVATE_H_
16 #include "wx/ioswrap.h"
20 class WXDLLEXPORT wxBitmap
;
23 // ---------------------------------------------------------------------------
25 // ---------------------------------------------------------------------------
27 extern MGLDevCtx
*g_displayDC
;
28 extern winmng_t
*g_winMng
;
30 // ---------------------------------------------------------------------------
32 // ---------------------------------------------------------------------------
35 // This function converts wxBitmap into pixpattern24_t representation
36 // (used by wxBrush and wxPen)
38 extern void wxBitmapToPixPattern(const wxBitmap
& bitmap
,
39 pixpattern24_t
*pix
, pattern_t
*mask
);
42 // Sets current DC and restores previous one upon destruction:
43 class wxCurrentDCSwitcher
46 wxCurrentDCSwitcher(MGLDevCtx
*dc
)
47 { m_old
= dc
->makeCurrent(); }
48 ~wxCurrentDCSwitcher()
49 { MGL_makeCurrentDC(m_old
); }
54 #endif // _WX_MGL_PRIVATE_H_