-cvar = _gdi_.cvar
-NullGraphicsPen = cvar.NullGraphicsPen
-NullGraphicsBrush = cvar.NullGraphicsBrush
-NullGraphicsFont = cvar.NullGraphicsFont
-
-class GraphicsMatrix(GraphicsObject):
- """Proxy of C++ GraphicsMatrix class"""
- thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
- def __init__(self): raise AttributeError, "No constructor defined"
- __repr__ = _swig_repr
- __swig_destroy__ = _gdi_.delete_GraphicsMatrix
- __del__ = lambda self : None;
- def Clone(*args, **kwargs):
- """Clone(self) -> GraphicsMatrix"""
- return _gdi_.GraphicsMatrix_Clone(*args, **kwargs)
-
- def Concat(*args, **kwargs):
- """
- Concat(self, GraphicsMatrix t)
-
- concatenates the matrix
- """
- return _gdi_.GraphicsMatrix_Concat(*args, **kwargs)
-
- def Copy(*args, **kwargs):
- """
- Copy(self, GraphicsMatrix t)
-
- copies the passed in matrix
- """
- return _gdi_.GraphicsMatrix_Copy(*args, **kwargs)
-
- def Set(*args, **kwargs):
- """
- Set(self, Double a=1.0, Double b=0.0, Double c=0.0, Double d=1.0,
- Double tx=0.0, Double ty=0.0)
-
- sets the matrix to the respective values
- """
- return _gdi_.GraphicsMatrix_Set(*args, **kwargs)
-
- def Invert(*args, **kwargs):
- """
- Invert(self)
-
- makes this the inverse matrix
- """
- return _gdi_.GraphicsMatrix_Invert(*args, **kwargs)
-
- def IsEqual(*args, **kwargs):
- """
- IsEqual(self, GraphicsMatrix t) -> bool
-
- returns true if the elements of the transformation matrix are equal
- """
- return _gdi_.GraphicsMatrix_IsEqual(*args, **kwargs)
-
- def IsIdentity(*args, **kwargs):
- """
- IsIdentity(self) -> bool
-
- return true if this is the identity matrix
- """
- return _gdi_.GraphicsMatrix_IsIdentity(*args, **kwargs)
-
- def Translate(*args, **kwargs):
- """
- Translate(self, Double dx, Double dy)
-
- add the translation to this matrix
- """
- return _gdi_.GraphicsMatrix_Translate(*args, **kwargs)
-
- def Scale(*args, **kwargs):
- """
- Scale(self, Double xScale, Double yScale)
-
- add the scale to this matrix
- """
- return _gdi_.GraphicsMatrix_Scale(*args, **kwargs)
-
- def Rotate(*args, **kwargs):
- """
- Rotate(self, Double angle)
-
- add the rotation to this matrix (radians)
- """
- return _gdi_.GraphicsMatrix_Rotate(*args, **kwargs)
-
- def TransformPoint(*args, **kwargs):
- """
- TransformPoint(self, x, y) --> (x, y)
-
- applies that matrix to the point
- """
- return _gdi_.GraphicsMatrix_TransformPoint(*args, **kwargs)
-
- def TransformDistance(*args, **kwargs):
- """
- TransformDistance(self, dx, dy) --> (dx, dy)
-
- applies the matrix except for translations
- """
- return _gdi_.GraphicsMatrix_TransformDistance(*args, **kwargs)
-
- def GetNativeMatrix(*args, **kwargs):
- """
- GetNativeMatrix(self) -> void
-
- returns the native representation
- """
- return _gdi_.GraphicsMatrix_GetNativeMatrix(*args, **kwargs)
-
-_gdi_.GraphicsMatrix_swigregister(GraphicsMatrix)