Package pyjsdl :: Module rect :: Class RectPool

Class RectPool

object --+
         |
        RectPool

pyjsdl.rect.rectPool

Rect pool accessed by rectPool instance through append method to add Rect, extend method to add Rect list, get method to return Rect set with x,y,width,height attributes, and copy method to return copy of a given Rect. If pool is empty, return is a new Rect.

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
append(self, item)
 
extend(self, lst)
 
get(self, x, y, width, height)
Return a Rect with x,y,width,height attributes.
 
copy(self, r)
Return a Rect with x,y,width,height attributes of the Rect argument.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)