$szTitle = "wxscreendc"; include "./_header.inc"; ?>
a wxscreendc can be used to paint on the screen. this should normally be constructed as a temporary stack object; don't store a wxscreendc object.
derived from
include files
<wx/dcscreen.h>
see also
wxdc, wxmemorydc, wxpaintdc, wxclientdc, wxwindowdc
members
wxscreendc::wxscreendc
wxscreendc::startdrawingontop
wxscreendc::enddrawingontop
wxscreendc()
constructor.
bool startdrawingontop(wxwindow* window)
bool startdrawingontop(wxrect* rect = null)
use this in conjunction with enddrawingontop to ensure that drawing to the screen occurs on top of existing windows. without this, some window systems (such as x) only allow drawing to take place underneath other windows.
by using the first form of this function, an application is specifying that the area that will be drawn on coincides with the given window.
by using the second form, an application can specify an area of the screen which is to be drawn on. if null is passed, the whole screen is available.
it is recommended that an area of the screen is specified because with large regions, flickering effects are noticeable when destroying the temporary transparent window used to implement this feature.
you might use this pair of functions when implementing a drag feature, for example as in the wxsplitterwindow implementation.
remarks
this function is probably obsolete since the x implementations allow drawing directly on the screen now. however, the fact that this function allows the screen to be refreshed afterwards, may be useful to some applications.
bool enddrawingontop()
use this in conjunction with startdrawingontop.
this function destroys the temporary window created to implement on-top drawing (x only).
include "./_footer.inc"; ?>