]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mgl/private.h
simplified WXDLLEXPORT/IMPORT defines, added WXEXPORT/IMPORT
[wxWidgets.git] / include / wx / mgl / private.h
CommitLineData
32b8ec41
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: private.h
3// Purpose: Private declarations: as this header is only included by
4// wxWindows itself, it may contain identifiers which don't start
5// with "wx".
6// Author: Vaclav Slavik
7// Created: 2001/04/07
8// RCS-ID: $Id$
8f7b34a8 9// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
32b8ec41
VZ
10// Licence: wxWindows licence
11/////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_PRIVATE_H_
14#define _WX_PRIVATE_H_
15
16#include <mgraph.hpp>
17
18class WXDLLEXPORT wxBitmap;
19
20
21// ---------------------------------------------------------------------------
22// private variables
23// ---------------------------------------------------------------------------
24
25extern MGLDevCtx *g_displayDC;
a4bbc9f7 26extern winmng_t *g_winMng;
32b8ec41
VZ
27
28// ---------------------------------------------------------------------------
29// helper functions
30// ---------------------------------------------------------------------------
31
32
33// This function converts wxBitmap into pixpattern24_t representation
34// (used by wxBrush and wxPen)
35
36extern void wxBitmapToPixPattern(const wxBitmap& bitmap,
37 pixpattern24_t *pix, pattern_t *mask);
38
39
40// Sets current DC and restores previous one upon destruction:
41class wxCurrentDCSwitcher
42{
43public:
44 wxCurrentDCSwitcher(MGLDevCtx *dc)
45 { m_old = dc->makeCurrent(); }
46 ~wxCurrentDCSwitcher()
47 { MGL_makeCurrentDC(m_old); }
48 MGLDC *m_old;
49};
50
51
a4bbc9f7
VS
52extern bool wxCreateMGL_WM();
53extern void wxDestroyMGL_WM();
54
32b8ec41 55#endif // _WX_PRIVATE_H_