X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7e664d85e6512d807ce2eb186ed9e0bbd60d6e8b..e81b607b4322af54190484aa7ee34112337a344e:/wxPython/demo/PseudoDC.py 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.