Add wxOverlay
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
8afc02ca49
commit
270a8b4604
51
wxPython/src/_overlay.i
Normal file
51
wxPython/src/_overlay.i
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: _overlay.i
|
||||||
|
// Purpose: wxOverlay classes
|
||||||
|
//
|
||||||
|
// Author: Robin Dunn
|
||||||
|
//
|
||||||
|
// Created: 10-Oct-2006
|
||||||
|
// RCS-ID: $Id$
|
||||||
|
// Copyright: (c) 2006 by Total Control Software
|
||||||
|
// Licence: wxWindows license
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
// Not a %module
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
class wxOverlay
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
wxOverlay();
|
||||||
|
~wxOverlay();
|
||||||
|
|
||||||
|
// clears the overlay without restoring the former state
|
||||||
|
// to be done eg when the window content has been changed and repainted
|
||||||
|
void Reset();
|
||||||
|
};
|
||||||
|
|
||||||
|
class wxDCOverlay
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
%nokwargs wxDCOverlay;
|
||||||
|
|
||||||
|
// connects this overlay to the corresponding drawing dc, if the overlay is not initialized yet
|
||||||
|
// this call will do so
|
||||||
|
wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc, int x , int y , int width , int height);
|
||||||
|
|
||||||
|
// convenience wrapper that behaves the same using the entire area of the dc
|
||||||
|
wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc);
|
||||||
|
|
||||||
|
// removes the connection between the overlay and the dc
|
||||||
|
virtual ~wxDCOverlay();
|
||||||
|
|
||||||
|
// clears the layer, restoring the state at the last init
|
||||||
|
void Clear();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------------
|
@ -43,6 +43,7 @@ MAKE_CONST_WXSTRING_NOSWIG(EmptyString);
|
|||||||
%include _intl.i
|
%include _intl.i
|
||||||
%include _dc.i
|
%include _dc.i
|
||||||
%include _graphics.i
|
%include _graphics.i
|
||||||
|
%include _overlay.i
|
||||||
%include _imaglist.i
|
%include _imaglist.i
|
||||||
%include _stockobjs.i
|
%include _stockobjs.i
|
||||||
%include _effects.i
|
%include _effects.i
|
||||||
|
Loading…
Reference in New Issue
Block a user