Package pajammin :: Package util :: Module leveleditor :: Class RectMarker
[show private | hide private]
[frames | no frames]

Type RectMarker

 object --+    
          |    
WorldWidget --+
              |
             RectMarker

Known Subclasses:
BodyMarker, EntityMarker, NewRectValueMarker, NodeMarker, RectValueMarker, SelectionMarker

Method Summary
  __init__(self, rect, text)
  draw(self, screen, duration, dx, dy)
Draw this widget to the screen.
  get_rect(self)
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
Return hash(x)...
  __new__(T, S, ...)
Return a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
Return repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
Return str(x)...

Instance Variable Summary
  layer: An integer indicating the order in which the widget should be drawn to the screen, relative to other widgets.
    Inherited from WorldWidget
  movement_callback: A callback method that should be called whenever the sprite is moved.
NoneType rect: A pygame Rect describing the extent of this widget, in world coordinates.

Class Variable Summary
NoneType border_color = None                                                                  
int border_width = 1                                                                     
int fill_alpha = 40                                                                    
NoneType fill_color = None                                                                  
int font_size = 14                                                                    
NoneType image = None                                                                  
tuple margin = (10, 10)
NoneType text = None                                                                  
tuple text_color = (0, 0, 0)

Method Details

__init__(self, rect, text=None)
(Constructor)

Overrides:
__builtin__.object.__init__

draw(self, screen, duration, dx, dy)

Draw this widget to the screen.
Parameters:
screen - The screen surface.
duration - The amount of time that has elapsed since the last call to draw, in msec.
dx, dy - An offset that should be added to world coordinates to give screen coordinates.
Returns:
A pygame Rect indicating what area of the screen has been modified by this draw operation.
Overrides:
pajammin.display.engine.WorldWidget.draw (inherited documentation)

get_rect(self)


Instance Variable Details

layer

An integer indicating the order in which the widget should be drawn to the screen, relative to other widgets. Widgets with higher layer numbers will be drawn later.
Value:
200                                                                   

Class Variable Details

border_color

Type:
NoneType
Value:
None                                                                  

border_width

Type:
int
Value:
1                                                                     

fill_alpha

Type:
int
Value:
40                                                                    

fill_color

Type:
NoneType
Value:
None                                                                  

font_size

Type:
int
Value:
14                                                                    

image

Type:
NoneType
Value:
None                                                                  

margin

Type:
tuple
Value:
(10, 10)                                                               

text

Type:
NoneType
Value:
None                                                                  

text_color

Type:
tuple
Value:
(0, 0, 0)