2001-06-26 17:05:06 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: private.h
|
|
|
|
// Purpose: Private declarations: as this header is only included by
|
|
|
|
// wxWindows itself, it may contain identifiers which don't start
|
|
|
|
// with "wx".
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Created: 2001/04/07
|
|
|
|
// RCS-ID: $Id$
|
2001-06-29 15:03:13 -04:00
|
|
|
// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
|
2001-06-26 17:05:06 -04:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_PRIVATE_H_
|
|
|
|
#define _WX_PRIVATE_H_
|
|
|
|
|
|
|
|
#include <mgraph.hpp>
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxBitmap;
|
|
|
|
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// private variables
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
extern MGLDevCtx *g_displayDC;
|
2001-08-01 18:57:11 -04:00
|
|
|
extern winmng_t *g_winMng;
|
2001-06-26 17:05:06 -04:00
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
// helper functions
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// This function converts wxBitmap into pixpattern24_t representation
|
|
|
|
// (used by wxBrush and wxPen)
|
|
|
|
|
|
|
|
extern void wxBitmapToPixPattern(const wxBitmap& bitmap,
|
|
|
|
pixpattern24_t *pix, pattern_t *mask);
|
|
|
|
|
|
|
|
|
|
|
|
// Sets current DC and restores previous one upon destruction:
|
|
|
|
class wxCurrentDCSwitcher
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxCurrentDCSwitcher(MGLDevCtx *dc)
|
|
|
|
{ m_old = dc->makeCurrent(); }
|
|
|
|
~wxCurrentDCSwitcher()
|
|
|
|
{ MGL_makeCurrentDC(m_old); }
|
|
|
|
MGLDC *m_old;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2001-08-01 18:57:11 -04:00
|
|
|
extern bool wxCreateMGL_WM();
|
|
|
|
extern void wxDestroyMGL_WM();
|
|
|
|
|
2001-06-26 17:05:06 -04:00
|
|
|
#endif // _WX_PRIVATE_H_
|