]>
git.saurik.com Git - wxWidgets.git/blob - interface/dcscreen.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxScreenDC
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
20 @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxWindowDC
22 class wxScreenDC
: public wxDC
31 Use this in conjunction with StartDrawingOnTop().
32 This function destroys the temporary window created to implement on-top drawing
35 bool EndDrawingOnTop();
39 Use this in conjunction with EndDrawingOnTop() to
40 ensure that drawing to the screen occurs on top of existing windows. Without
42 some window systems (such as X) only allow drawing to take place underneath
44 By using the first form of this function, an application is specifying that
45 the area that will be drawn on coincides with the given window.
46 By using the second form, an application can specify an area of the screen
47 which is to be drawn on. If @NULL is passed, the whole screen is available.
48 It is recommended that an area of the screen is specified because with large
50 flickering effects are noticeable when destroying the temporary transparent
52 to implement this feature.
53 You might use this pair of functions when implementing a drag feature, for
55 as in the wxSplitterWindow implementation.
57 @remarks This function is probably obsolete since the X implementations
58 allow drawing directly on the screen now. However, the
59 fact that this function allows the screen to be
60 refreshed afterwards, may be useful to some
63 bool StartDrawingOnTop(wxWindow
* window
);
64 bool StartDrawingOnTop(wxRect
* rect
= NULL
);