added more files (unchanged) from wxUniv branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
51
include/wx/mgl/private.h
Normal file
51
include/wx/mgl/private.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// 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$
|
||||
// Copyright: (c) 2001 Vaclav Slavik
|
||||
// Licence: wxWindows licence
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_PRIVATE_H_
|
||||
#define _WX_PRIVATE_H_
|
||||
|
||||
#include <mgraph.hpp>
|
||||
|
||||
class WXDLLEXPORT wxBitmap;
|
||||
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// private variables
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
extern MGLDevCtx *g_displayDC;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 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;
|
||||
};
|
||||
|
||||
|
||||
#endif // _WX_PRIVATE_H_
|
Reference in New Issue
Block a user