Package lib :: Module xcairo :: Class Page
[hide private]
[frames] | no frames]

Class Page

source code

object --+
         |
        Page
Known Subclasses:

class holding Page properties

Instance Methods [hide private]
 
__init__(self, landscape, w, h, b, raster)
initialize Page properties object
source code

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

Instance Variables [hide private]
tuple (top,left,bottom,right) Margins
page margins in pixels
tuple (width,height) Size
page size in dots/pixels
tuple (width,height) Size_mm
page dimensions in mm
tuple (x,y,w,h) Text_rect
text rectangle
bool landscape
landscape mode (for landscape, Size_mm will have swapped elements)
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, landscape, w, h, b, raster)
(Constructor)

source code 

initialize Page properties object

Parameters:
  • landscape (bool) - landscape mode
  • w - page physical width in mm
  • h - page physical height in mm, h>w, even in landscape mode
  • b - page border in mm (uniform)
  • raster (bool) - raster mode (not vector)
Overrides: object.__init__