]> git.saurik.com Git - wxWidgets.git/blame - interface/wx/dcscreen.h
remove ancient defines left over from GTK1
[wxWidgets.git] / interface / wx / dcscreen.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcscreen.h
e54c96f1 3// Purpose: interface of wxScreenDC
23324ae1 4// Author: wxWidgets team
526954c5 5// Licence: wxWindows licence
23324ae1
FM
6/////////////////////////////////////////////////////////////////////////////
7
8/**
9 @class wxScreenDC
7c913512 10
3a7fb603
BP
11 A wxScreenDC can be used to paint on the screen. This should normally be
12 constructed as a temporary stack object; don't store a wxScreenDC object.
7c913512 13
23324ae1
FM
14 @library{wxcore}
15 @category{dc}
7c913512 16
e54c96f1 17 @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxWindowDC
23324ae1
FM
18*/
19class wxScreenDC : public wxDC
20{
21public:
22 /**
23 Constructor.
24 */
25 wxScreenDC();
26
27 /**
28 Use this in conjunction with StartDrawingOnTop().
3a7fb603
BP
29
30 This function destroys the temporary window created to implement on-top
31 drawing (X only).
23324ae1 32 */
adaaa686 33 static bool EndDrawingOnTop();
23324ae1 34
23324ae1 35 /**
3a7fb603
BP
36 Use this in conjunction with EndDrawingOnTop() to ensure that drawing
37 to the screen occurs on top of existing windows. Without this, some
38 window systems (such as X) only allow drawing to take place underneath
23324ae1 39 other windows.
3a7fb603
BP
40
41 This version of StartDrawingOnTop() is used to specify that the area
42 that will be drawn on coincides with the given window. It is
43 recommended that an area of the screen is specified with
44 StartDrawingOnTop(wxRect*) because with large regions, flickering
45 effects are noticeable when destroying the temporary transparent window
46 used to implement this feature.
47
48 You might use this function when implementing a drag feature, for
49 example as in the wxSplitterWindow implementation.
3c4f71cc 50
23324ae1 51 @remarks This function is probably obsolete since the X implementations
3a7fb603
BP
52 allow drawing directly on the screen now. However, the fact
53 that this function allows the screen to be refreshed
54 afterwards, may be useful to some applications.
23324ae1 55 */
adaaa686 56 static bool StartDrawingOnTop(wxWindow* window);
3a7fb603
BP
57 /**
58 Use this in conjunction with EndDrawingOnTop() to ensure that drawing
59 to the screen occurs on top of existing windows. Without this, some
60 window systems (such as X) only allow drawing to take place underneath
61 other windows.
62
63 This version of StartDrawingOnTop() is used to specify an area of the
64 screen which is to be drawn on. If @NULL is passed, the whole screen is
65 available. It is recommended that an area of the screen is specified
66 with this function rather than with StartDrawingOnTop(wxWindow*),
67 because with large regions, flickering effects are noticeable when
68 destroying the temporary transparent window used to implement this
69 feature.
70
71 You might use this function when implementing a drag feature, for
72 example as in the wxSplitterWindow implementation.
73
74 @remarks This function is probably obsolete since the X implementations
75 allow drawing directly on the screen now. However, the fact
76 that this function allows the screen to be refreshed
77 afterwards, may be useful to some applications.
78 */
adaaa686 79 static bool StartDrawingOnTop(wxRect* rect = NULL);
23324ae1 80};
e54c96f1 81