]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: _overlay.i | |
3 | // Purpose: wxOverlay classes | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 10-Oct-2006 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 2006 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | // Not a %module | |
14 | ||
15 | ||
16 | %{ | |
17 | #include <wx/overlay.h> | |
18 | %} | |
19 | ||
20 | //--------------------------------------------------------------------------- | |
21 | ||
22 | class wxOverlay | |
23 | { | |
24 | public: | |
25 | wxOverlay(); | |
26 | ~wxOverlay(); | |
27 | ||
28 | // clears the overlay without restoring the former state | |
29 | // to be done eg when the window content has been changed and repainted | |
30 | void Reset(); | |
31 | }; | |
32 | ||
33 | class wxDCOverlay | |
34 | { | |
35 | public: | |
36 | ||
37 | %nokwargs wxDCOverlay; | |
38 | ||
39 | // connects this overlay to the corresponding drawing dc, if the overlay is not initialized yet | |
40 | // this call will do so | |
41 | wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc, int x , int y , int width , int height); | |
42 | ||
43 | // convenience wrapper that behaves the same using the entire area of the dc | |
44 | wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc); | |
45 | ||
46 | // removes the connection between the overlay and the dc | |
47 | virtual ~wxDCOverlay(); | |
48 | ||
49 | // clears the layer, restoring the state at the last init | |
50 | void Clear(); | |
51 | }; | |
52 | ||
53 | ||
54 | //--------------------------------------------------------------------------- |