From: Robin Dunn Date: Mon, 10 Jul 2006 17:00:43 +0000 (+0000) Subject: Overview string tweaks X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/619d593006885e1b99ac77b0c8014871386d4d66 Overview string tweaks git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/demo/PseudoDC.py b/wxPython/demo/PseudoDC.py index 379ac42329..a871b25d01 100644 --- a/wxPython/demo/PseudoDC.py +++ b/wxPython/demo/PseudoDC.py @@ -263,6 +263,8 @@ def runTest(frame, nb, log): overview = """ +

wx.PseudoDC

+ The wx.PseudoDC class provides a way to record operations on a DC and then play them back later. The PseudoDC can be passed to a drawing routine as if it were a real DC. All Drawing methods are supported except Blit but @@ -273,25 +275,25 @@ DrawToDC(dc) The operations can be tagged with an id in order to associated them with a specific object. To do this use:
-SetId(id)
+    SetId(id)
 
Every operation after this will be associated with id until SetId is called again. The PseudoDC also supports object level clipping. To enable this use:
-SetIdBounds(id,rect)
+    SetIdBounds(id,rect)
 
for each object that should be clipped. Then use:
-DrawToDCClipped(dc, clippingRect)
+    DrawToDCClipped(dc, clippingRect)
 
To draw the PseudoDC to a real dc. This is useful for large scrolled windows where many objects are offscreen. Objects can be moved around without re-drawing using:
-TranslateId(id, dx, dy)
+    TranslateId(id, dx, dy)
 
To re-draw an object use:
-ClearId(id)
-SetId(id)
+    ClearId(id)
+    SetId(id)
 
and then re-draw the object.