1 \section{\class{wxScreenDC
}}\label{wxscreendc
}
3 A wxScreenDC can be used to paint on the screen.
4 This should normally be constructed as a temporary stack object; don't store
7 \wxheading{Derived from
}
11 \wxheading{Include files
}
17 \helpref{wxDC
}{wxdc
},
\helpref{wxMemoryDC
}{wxmemorydc
},
\helpref{wxPaintDC
}{wxpaintdc
},
\rtfsp
18 \helpref{wxClientDC
}{wxclientdc
},
\helpref{wxWindowDC
}{wxwindowdc
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
22 \membersection{wxScreenDC::wxScreenDC
}
24 \func{}{wxScreenDC
}{\void}
28 \membersection{wxScreenDC::StartDrawingOnTop
}\label{wxscreendcstartdrawingontop
}
30 \func{bool
}{StartDrawingOnTop
}{\param{wxWindow*
}{ window
}}
32 \func{bool
}{StartDrawingOnTop
}{\param{wxRect*
}{ rect = NULL
}}
34 Use this in conjunction with
\helpref{EndDrawingOnTop
}{wxscreendcenddrawingontop
} to
35 ensure that drawing to the screen occurs on top of existing windows. Without this,
36 some window systems (such as X) only allow drawing to take place underneath
39 By using the first form of this function, an application is specifying that
40 the area that will be drawn on coincides with the given window.
42 By using the second form, an application can specify an area of the screen
43 which is to be drawn on. If NULL is passed, the whole screen is available.
45 It is recommended that an area of the screen is specified because with large regions,
46 flickering effects are noticeable when destroying the temporary transparent window used
47 to implement this feature.
49 You might use this pair of functions when implementing a drag feature, for example
50 as in the
\helpref{wxSplitterWindow
}{wxsplitterwindow
} implementation.
54 This function is probably obsolete since the X implementations
55 allow drawing directly on the screen now. However, the fact that this
56 function allows the screen to be refreshed afterwards, may be useful to
59 \membersection{wxScreenDC::EndDrawingOnTop
}\label{wxscreendcenddrawingontop
}
61 \func{bool
}{EndDrawingOnTop
}{\void}
63 Use this in conjunction with
\helpref{StartDrawingOnTop
}{wxscreendcstartdrawingontop
}.
65 This function destroys the temporary window created to implement on-top drawing (X only).