git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
		
			
				
	
	
		
			56 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			TeX
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			TeX
		
	
	
	
	
	
| \section{\class{wxScreenDC}}\label{wxscreendc}
 | |
| 
 | |
| 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.
 | |
| 
 | |
| \wxheading{Derived from}
 | |
| 
 | |
| \helpref{wxDC}{wxdc}
 | |
| 
 | |
| \wxheading{See also}
 | |
| 
 | |
| \helpref{wxDC}{wxdc}, \helpref{wxMemoryDC}{wxmemorydc}, \helpref{wxPaintDC}{wxpaintdc},\rtfsp
 | |
| \helpref{wxClientDC}{wxclientdc}, \helpref{wxWindowDC}{wxwindowdc}
 | |
| 
 | |
| \latexignore{\rtfignore{\wxheading{Members}}}
 | |
| 
 | |
| \membersection{wxScreenDC::wxScreenDC}
 | |
| 
 | |
| \func{}{wxScreenDC}{\void}
 | |
| 
 | |
| Constructor.
 | |
| 
 | |
| \membersection{wxScreenDC::StartDrawingOnTop}\label{wxscreendcstartdrawingontop}
 | |
| 
 | |
| \func{bool}{StartDrawingOnTop}{\param{wxWindow*}{ window}}
 | |
| 
 | |
| \func{bool}{StartDrawingOnTop}{\param{wxRect*}{ rect = NULL}}
 | |
| 
 | |
| Use this in conjunction with \helpref{EndDrawingOnTop}{wxscreendcenddrawingontop} 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 \helpref{wxSplitterWindow}{wxsplitterwindow} implementation.
 | |
| 
 | |
| \membersection{wxScreenDC::EndDrawingOnTop}\label{wxscreendcenddrawingontop}
 | |
| 
 | |
| \func{bool}{EndDrawingOnTop}{\void}
 | |
| 
 | |
| Use this in conjunction with \helpref{StartDrawingOnTop}{wxscreendcstartdrawingontop}.
 | |
| 
 | |
| This function destroys the temporary window created to implement on-top drawing (X only).
 | |
| 
 |