]>
git.saurik.com Git - wxWidgets.git/blob - interface/dcscreen.h
7c4854c7ea66bb203ddab07ee616df49eda1e79e
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: documentation for wxScreenDC class
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 A wxScreenDC can be used to paint on the screen.
14 This should normally be constructed as a temporary stack object; don't store
21 wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxWindowDC
23 class wxScreenDC
: public wxDC
32 Use this in conjunction with StartDrawingOnTop().
33 This function destroys the temporary window created to implement on-top drawing
36 bool EndDrawingOnTop();
40 Use this in conjunction with EndDrawingOnTop() to
41 ensure that drawing to the screen occurs on top of existing windows. Without
43 some window systems (such as X) only allow drawing to take place underneath
45 By using the first form of this function, an application is specifying that
46 the area that will be drawn on coincides with the given window.
47 By using the second form, an application can specify an area of the screen
48 which is to be drawn on. If @NULL is passed, the whole screen is available.
49 It is recommended that an area of the screen is specified because with large
51 flickering effects are noticeable when destroying the temporary transparent
53 to implement this feature.
54 You might use this pair of functions when implementing a drag feature, for
56 as in the wxSplitterWindow implementation.
58 @remarks This function is probably obsolete since the X implementations
59 allow drawing directly on the screen now. However, the
60 fact that this function allows the screen to be
61 refreshed afterwards, may be useful to some
64 bool StartDrawingOnTop(wxWindow
* window
);
65 bool StartDrawingOnTop(wxRect
* rect
= NULL
);