]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/dcscreen.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     interface of wxScreenDC 
   4 // Author:      wxWidgets team 
   6 // Licence:     wxWindows license 
   7 ///////////////////////////////////////////////////////////////////////////// 
  12     A wxScreenDC can be used to paint on the screen. This should normally be 
  13     constructed as a temporary stack object; don't store a wxScreenDC object. 
  18     @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxWindowDC 
  20 class wxScreenDC 
: public wxDC
 
  29         Use this in conjunction with StartDrawingOnTop(). 
  31         This function destroys the temporary window created to implement on-top 
  34     static bool EndDrawingOnTop(); 
  37         Use this in conjunction with EndDrawingOnTop() to ensure that drawing 
  38         to the screen occurs on top of existing windows. Without this, some 
  39         window systems (such as X) only allow drawing to take place underneath 
  42         This version of StartDrawingOnTop() is used to specify that the area 
  43         that will be drawn on coincides with the given window. It is 
  44         recommended that an area of the screen is specified with 
  45         StartDrawingOnTop(wxRect*) because with large regions, flickering 
  46         effects are noticeable when destroying the temporary transparent window 
  47         used to implement this feature. 
  49         You might use this function when implementing a drag feature, for 
  50         example as in the wxSplitterWindow implementation. 
  52         @remarks This function is probably obsolete since the X implementations 
  53                  allow drawing directly on the screen now. However, the fact 
  54                  that this function allows the screen to be refreshed 
  55                  afterwards, may be useful to some applications. 
  57     static bool StartDrawingOnTop(wxWindow
* window
); 
  59         Use this in conjunction with EndDrawingOnTop() to ensure that drawing 
  60         to the screen occurs on top of existing windows. Without this, some 
  61         window systems (such as X) only allow drawing to take place underneath 
  64         This version of StartDrawingOnTop() is used to specify an area of the 
  65         screen which is to be drawn on. If @NULL is passed, the whole screen is 
  66         available. It is recommended that an area of the screen is specified 
  67         with this function rather than with StartDrawingOnTop(wxWindow*), 
  68         because with large regions, flickering effects are noticeable when 
  69         destroying the temporary transparent window used to implement this 
  72         You might use this function when implementing a drag feature, for 
  73         example as in the wxSplitterWindow implementation. 
  75         @remarks This function is probably obsolete since the X implementations 
  76                  allow drawing directly on the screen now. However, the fact 
  77                  that this function allows the screen to be refreshed 
  78                  afterwards, may be useful to some applications. 
  80     static bool StartDrawingOnTop(wxRect
* rect 
= NULL
);