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

Class Size

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

Python Type, wrapping an ObjC NSSize_t.

Instance Methods
 
__init__(self, size)
New Size from another Size, list, tuple or NSSize_t.

Inherited from bases._Type0: __repr__, __str__, type2strepr

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

Properties
  size
Get the width, height (2-tuple) of (float or int).
  height
Get the height (float or int).
  width
Get the width (float or int).

Inherited from bases._Type0: NS

Inherited from object: __class__

Method Details

__init__(self, size)
(Constructor)

 

New Size from another Size, list, tuple or NSSize_t.

Overrides: object.__init__

Property Details

size

Get the width, height (2-tuple) of (float or int).

Get Method:
size(self) - Get the width, height (2-tuple) of (float or int).
Set Method:
size(self, size) - Set the size (Size, list, tuple or NSSize_t).

height

Get the height (float or int).

Get Method:
height(self) - Get the height (float or int).
Set Method:
height(self, height) - Set the height (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).