Home | Trees | Index | Help |
|
---|
Package pyscript :: Package lib :: Module presentation :: Class BasicBox |
|
object
--+ |PsObj
--+ |AffineObj
--+ |Area
--+ |Rectangle
--+ | BasicBox
Method Summary | |
---|---|
__init__(self)
| |
Set the anchor location (c, n, ne, e, se, s, sw, w, nw) | |
Set the background colour | |
Set the width of the border around the box | |
Set the foreground colour | |
Set the height of the box | |
Set the padding around the box | |
Set the radius of the corners of the box, if they are rounded | |
Set the width of the box | |
Inherited from Rectangle | |
Returns the object's postscript body | |
Inherited from Area | |
Return the bounding box of the object | |
Inherited from AffineObj | |
self |
concat matrix t to tranformation matrix |
P |
convert external to internal co-ords |
P |
convert internal to external co-ords |
self |
translate object by a certain amount |
string |
undo coordinate system transformation |
string |
set up transformation of coordinate system |
self |
reflect object in mirror |
self |
rotate object, the rotation is around p when supplied otherwise it's the objects origin |
self |
scale object size (towards objects origin or p) |
self |
shear object |
Inherited from PsObj | |
self |
Set a whole lot of attributes in one go |
string |
Return a representation of this object |
string |
return actual postscript string to generate object |
self |
return a copy of this object with listed attributes modified |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Property Summary | |
---|---|
Inherited from Area | |
c | |
e | |
n | |
ne | |
nw | |
s | |
se | |
sw | |
w |
Class Variable Summary | |
---|---|
Inherited from Rectangle | |
Color object |
bg : fill color or None for empty |
Dash object |
dash : a Dash() object giving the dash pattern to use |
Color object |
fg : line color |
float | height : height of rectangle |
float | linewidth : the line thickness in points |
float | r : radius of corners |
float | width : width of rectangle |
Inherited from Area | |
c = pyscript.objects.Area.c | |
P |
isw = <class 'pyscript.vectors.P'>
|
Inherited from AffineObj | |
P |
o = <class 'pyscript.vectors.P'>
|
Matrix |
T = <pyscript.vectors.Matrix instance at 0x40449cec>
|
Method Details |
---|
set_anchor(self, anchor, location)Set the anchor location (c, n, ne, e, se, s, sw, w, nw) |
set_bg(self, bg)Set the background colour |
set_border(self, border)Set the width of the border around the box |
set_fg(self, fg)Set the foreground colour |
set_height(self, height)Set the height of the box |
set_pad(self, pad)Set the padding around the box |
set_radius(self, radius)Set the radius of the corners of the box, if they are rounded |
set_width(self, width)Set the width of the box |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Apr 24 17:02:35 2006 | http://epydoc.sf.net |