Overview string tweaks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-07-10 17:00:43 +00:00
parent d04fcda14c
commit 619d593006

View File

@@ -263,6 +263,8 @@ def runTest(frame, nb, log):
overview = """ overview = """
<html> <html>
<body> <body>
<h2>wx.PseudoDC</h2>
The wx.PseudoDC class provides a way to record operations on a DC and then 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 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 if it were a real DC. All Drawing methods are supported except Blit but
@@ -273,25 +275,25 @@ DrawToDC(dc)
</pre> </pre>
The operations can be tagged with an id in order to associated them with a The operations can be tagged with an id in order to associated them with a
specific object. To do this use:<pre> specific object. To do this use:<pre>
SetId(id) SetId(id)
</pre> </pre>
Every operation after this will be associated with id until SetId is called 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:<pre> again. The PseudoDC also supports object level clipping. To enable this use:<pre>
SetIdBounds(id,rect) SetIdBounds(id,rect)
</pre> </pre>
for each object that should be clipped. Then use:<pre> for each object that should be clipped. Then use:<pre>
DrawToDCClipped(dc, clippingRect) DrawToDCClipped(dc, clippingRect)
</pre> </pre>
To draw the PseudoDC to a real dc. This is useful for large scrolled windows To draw the PseudoDC to a real dc. This is useful for large scrolled windows
where many objects are offscreen. where many objects are offscreen.
Objects can be moved around without re-drawing using:<pre> Objects can be moved around without re-drawing using:<pre>
TranslateId(id, dx, dy) TranslateId(id, dx, dy)
</pre> </pre>
To re-draw an object use:<pre> To re-draw an object use:<pre>
ClearId(id) ClearId(id)
SetId(id) SetId(id)
</pre> </pre>
and then re-draw the object. and then re-draw the object.
</body> </body>