diff docs/ref/surface.html @ 1137:ec3ced33488f

Reworked locking code to be more strict about locking. Added Surface.get_locks() method.
author marcus
date Mon, 16 Jun 2008 18:46:56 +0000
parents 2fab82895a31
children 25886fe3a0e8
line wrap: on
line diff
--- a/docs/ref/surface.html	Mon Jun 16 13:40:05 2008 +0000
+++ b/docs/ref/surface.html	Mon Jun 16 18:46:56 2008 +0000
@@ -63,6 +63,7 @@
   <tr><td><a href="surface.html#Surface.unlock">Surface.unlock</a> - <font size=-1>unlock the Surface memory from pixel access</font></td><td>unlock the Surface memory from pixel access</td></tr>
   <tr><td><a href="surface.html#Surface.mustlock">Surface.mustlock</a> - <font size=-1>test if the Surface requires locking</font></td><td>test if the Surface requires locking</td></tr>
   <tr><td><a href="surface.html#Surface.get_locked">Surface.get_locked</a> - <font size=-1>test if the Surface is current locked</font></td><td>test if the Surface is current locked</td></tr>
+  <tr><td><a href="surface.html#Surface.get_locks">Surface.get_locks</a> - <font size=-1>Gets the locks for the Surface</font></td><td>Gets the locks for the Surface</td></tr>
   <tr><td><a href="surface.html#Surface.get_at">Surface.get_at</a> - <font size=-1>get the color value at a single pixel</font></td><td>get the color value at a single pixel</td></tr>
   <tr><td><a href="surface.html#Surface.set_at">Surface.set_at</a> - <font size=-1>set the color value for a single pixel</font></td><td>set the color value for a single pixel</td></tr>
   <tr><td><a href="surface.html#Surface.get_palette">Surface.get_palette</a> - <font size=-1>get the color index palette for an 8bit Surface</font></td><td>get the color index palette for an 8bit Surface</td></tr>
@@ -251,11 +252,20 @@
 <big><b>Surface.get_locked</big></b><br><ul>
   <i>test if the Surface is current locked</i><br>
   <tt>Surface.get_locked(): return bool</tt><br>
-<p>Returns True when the Surface is locked. It doesn't matter how many times the Surface is locked. Surfaces that do not need locking (see mustlock()) will always return True. </p>
+<p>Returns True when the Surface is locked. It doesn't matter how many times the Surface is locked. </p>
 <!--COMMENTS:Surface.get_locked--> &nbsp;<br> 
 <br></ul>
 
 
+<a name="Surface.get_locks">
+<big><b>Surface.get_locks</big></b><br><ul>
+  <i>Gets the locks for the Surface</i><br>
+  <tt>Surface.get_locks(): return tuple</tt><br>
+<p>Returns the currently existing locks for the Surface. </p>
+<!--COMMENTS:Surface.get_locks--> &nbsp;<br> 
+<br></ul>
+
+
 <a name="Surface.get_at">
 <big><b>Surface.get_at</big></b><br><ul>
   <i>get the color value at a single pixel</i><br>