Package pycocoa :: Module geometry :: Class Rect
[frames] | no frames]

Class Rect

  object --+    
           |    
bases._Type0 --+
               |
              Rect
Known Subclasses:

Python Type, wrapping an ObjC NSRect_t.

Instance Methods
 
__init__(self, rect)
New Rect from another Rect, list, tuple or NSRect[4]_t.

Inherited from bases._Type0: __repr__, __str__, type2strepr

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

Properties
  bottom
Get the lower y coordinate (float or int).
  height
Get the height (float).
  left
Get the lower x coordinate (float or int).
  origin
Get the origin (Point, list, tuple or NSPoint_t).
  rect
Get x, y, width, height (4-tuple).
  right
Get the upper x coordinate (float or int).
  size
Get the size (Size).
  top
Get the upper y coordinate (float or int).
  width
Get the width (float or int).
  x
Get the x coordinate (float or int).
  y
Get the y coordinate (float or int).

Inherited from bases._Type0: NS

Inherited from object: __class__

Method Details

__init__(self, rect)
(Constructor)

 

New Rect from another Rect, list, tuple or NSRect[4]_t.

Overrides: object.__init__

Property Details

bottom

Get the lower y coordinate (float or int).

Get Method:
bottom(self) - Get the lower y coordinate (float or int).

height

Get the height (float).

Get Method:
height(self) - Get the height (float).
Set Method:
height(self, height) - Set the height (float).

left

Get the lower x coordinate (float or int).

Get Method:
left(self) - Get the lower x coordinate (float or int).

origin

Get the origin (Point, list, tuple or NSPoint_t).

Get Method:
origin(self) - Get the origin (Point, list, tuple or NSPoint_t).
Set Method:
origin(self, origin) - Set the origin (Point).

rect

Get x, y, width, height (4-tuple).

Get Method:
rect(self) - Get x, y, width, height (4-tuple).
Set Method:
rect(self, rect) - Set the rect (Rect, list, tuple or NSRect[4]_t).

right

Get the upper x coordinate (float or int).

Get Method:
right(self) - Get the upper x coordinate (float or int).

size

Get the size (Size).

Get Method:
size(self) - Get the size (Size).
Set Method:
size(self, size) - Set the size (Size, list, tuple or NSSize_t).

top

Get the upper y coordinate (float or int).

Get Method:
top(self) - Get the upper y coordinate (float or int).

width

Get the width (float or int).

Get Method:
width(self) - Get the width (float or int).
Set Method:
width(self, width) - Set the width (float or int).

x

Get the x coordinate (float or int).

Get Method:
x(self) - Get the x coordinate (float or int).
Set Method:
x(self, x) - Set the x coordinate (float or int).

y

Get the y coordinate (float or int).

Get Method:
y(self) - Get the y coordinate (float or int).
Set Method:
y(self, y) - Set the y coordinate (float or int).