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
}
13 \helpref{wxDC
}{wxdc
},
\helpref{wxMemoryDC
}{wxmemorydc
},
\helpref{wxPaintDC
}{wxpaintdc
},
\rtfsp
14 \helpref{wxClientDC
}{wxclientdc
},
\helpref{wxWindowDC
}{wxwindowdc
}
16 \latexignore{\rtfignore{\wxheading{Members
}}}
18 \membersection{wxScreenDC::wxScreenDC
}
20 \func{}{wxScreenDC
}{\void}
24 \membersection{wxScreenDC::StartDrawingOnTop
}\label{wxscreendcstartdrawingontop
}
26 \func{bool
}{StartDrawingOnTop
}{\param{wxWindow*
}{ window
}}
28 \func{bool
}{StartDrawingOnTop
}{\param{wxRect*
}{ rect = NULL
}}
30 Use this in conjunction with
\helpref{EndDrawingOnTop
}{wxscreendcenddrawingontop
} to
31 ensure that drawing to the screen occurs on top of existing windows. Without this,
32 some window systems (such as X) only allow drawing to take place underneath
35 By using the first form of this function, an application is specifying that
36 the area that will be drawn on coincides with the given window.
38 By using the second form, an application can specify an area of the screen
39 which is to be drawn on. If NULL is passed, the whole screen is available.
41 It is recommended that an area of the screen is specified because with large regions,
42 flickering effects are noticeable when destroying the temporary transparent window used
43 to implement this feature.
45 You might use this pair of functions when implementing a drag feature, for example
46 as in the
\helpref{wxSplitterWindow
}{wxsplitterwindow
} implementation.
48 \membersection{wxScreenDC::EndDrawingOnTop
}\label{wxscreendcenddrawingontop
}
50 \func{bool
}{EndDrawingOnTop
}{\void}
52 Use this in conjunction with
\helpref{StartDrawingOnTop
}{wxscreendcstartdrawingontop
}.
54 This function destroys the temporary window created to implement on-top drawing (X only).