]>
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. This should normally be
14 constructed as a temporary stack object; don't store a wxScreenDC object.
19 @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxWindowDC
21 class wxScreenDC
: public wxDC
30 Use this in conjunction with StartDrawingOnTop().
32 This function destroys the temporary window created to implement on-top
35 bool EndDrawingOnTop();
38 Use this in conjunction with EndDrawingOnTop() to ensure that drawing
39 to the screen occurs on top of existing windows. Without this, some
40 window systems (such as X) only allow drawing to take place underneath
43 This version of StartDrawingOnTop() is used to specify that the area
44 that will be drawn on coincides with the given window. It is
45 recommended that an area of the screen is specified with
46 StartDrawingOnTop(wxRect*) because with large regions, flickering
47 effects are noticeable when destroying the temporary transparent window
48 used to implement this feature.
50 You might use this function when implementing a drag feature, for
51 example as in the wxSplitterWindow implementation.
53 @remarks This function is probably obsolete since the X implementations
54 allow drawing directly on the screen now. However, the fact
55 that this function allows the screen to be refreshed
56 afterwards, may be useful to some applications.
58 bool StartDrawingOnTop(wxWindow
* window
);
60 Use this in conjunction with EndDrawingOnTop() to ensure that drawing
61 to the screen occurs on top of existing windows. Without this, some
62 window systems (such as X) only allow drawing to take place underneath
65 This version of StartDrawingOnTop() is used to specify an area of the
66 screen which is to be drawn on. If @NULL is passed, the whole screen is
67 available. It is recommended that an area of the screen is specified
68 with this function rather than with StartDrawingOnTop(wxWindow*),
69 because with large regions, flickering effects are noticeable when
70 destroying the temporary transparent window used to implement this
73 You might use this function when implementing a drag feature, for
74 example as in the wxSplitterWindow implementation.
76 @remarks This function is probably obsolete since the X implementations
77 allow drawing directly on the screen now. However, the fact
78 that this function allows the screen to be refreshed
79 afterwards, may be useful to some applications.
81 bool StartDrawingOnTop(wxRect
* rect
= NULL
);