]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/overlay.h
7131de2900ed73df528a4f109522bf97cf7eeac9
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxOverlay
4 // Author: wxWidgets team
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
12 Creates an overlay over an existing window, allowing for manipulations like
13 rubberbanding, etc. On wxOSX the overlay is implemented with native
14 platform APIs, on the other platforms it is simulated using wxMemoryDC.
18 @see wxDCOverlay, wxDC
27 Clears the overlay without restoring the former state. To be done, for
28 example, when the window content has been changed and repainted.
38 Connects an overlay with a drawing DC.
49 Connects this overlay to the corresponding drawing dc, if the overlay is
50 not initialized yet this call will do so.
52 wxDCOverlay(wxOverlay
&overlay
, wxDC
*dc
, int x
, int y
, int width
, int height
);
55 Convenience wrapper that behaves the same using the entire area of the dc.
57 wxDCOverlay(wxOverlay
&overlay
, wxDC
*dc
);
60 Removes the connection between the overlay and the dc.
62 virtual ~wxDCOverlay();
65 Clears the layer, restoring the state at the last init.