]>
Commit | Line | Data |
---|---|---|
270a8b46 RD |
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 | //--------------------------------------------------------------------------- | |
18 | ||
19 | class wxOverlay | |
20 | { | |
21 | public: | |
22 | wxOverlay(); | |
23 | ~wxOverlay(); | |
24 | ||
25 | // clears the overlay without restoring the former state | |
26 | // to be done eg when the window content has been changed and repainted | |
27 | void Reset(); | |
28 | }; | |
29 | ||
30 | class wxDCOverlay | |
31 | { | |
32 | public: | |
33 | ||
34 | %nokwargs wxDCOverlay; | |
35 | ||
36 | // connects this overlay to the corresponding drawing dc, if the overlay is not initialized yet | |
37 | // this call will do so | |
38 | wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc, int x , int y , int width , int height); | |
39 | ||
40 | // convenience wrapper that behaves the same using the entire area of the dc | |
41 | wxDCOverlay(wxOverlay &overlay, wxWindowDC *dc); | |
42 | ||
43 | // removes the connection between the overlay and the dc | |
44 | virtual ~wxDCOverlay(); | |
45 | ||
46 | // clears the layer, restoring the state at the last init | |
47 | void Clear(); | |
48 | }; | |
49 | ||
50 | ||
51 | //--------------------------------------------------------------------------- |