diff options
author | Oliver Bolte <obo@openoffice.org> | 2007-07-17 14:23:23 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2007-07-17 14:23:23 +0000 |
commit | e36d17ae50bfdc975ced4004fa3b7f217e482de8 (patch) | |
tree | ad410286c30010148c8d6405628ad4b654782fef /cppcanvas/inc/cppcanvas | |
parent | cf6a48e7c6d82a6b8242b28f4fd82a0d44d973ef (diff) |
INTEGRATION: CWS presfixes12 (1.5.50); FILE MERGED
2007/03/08 21:37:18 thb 1.5.50.1: #i37778# Added extra setClip() method to be able to set no clip - setting a clip with zero polygons by definition clips everything
Diffstat (limited to 'cppcanvas/inc/cppcanvas')
-rw-r--r-- | cppcanvas/inc/cppcanvas/canvasgraphic.hxx | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/cppcanvas/inc/cppcanvas/canvasgraphic.hxx b/cppcanvas/inc/cppcanvas/canvasgraphic.hxx index 3e4c032a4beb..e64e44cb200b 100644 --- a/cppcanvas/inc/cppcanvas/canvasgraphic.hxx +++ b/cppcanvas/inc/cppcanvas/canvasgraphic.hxx @@ -4,9 +4,9 @@ * * $RCSfile: canvasgraphic.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: kz $ $Date: 2005-11-02 13:38:39 $ + * last change: $Author: obo $ $Date: 2007-07-17 15:23:23 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -139,31 +139,36 @@ namespace cppcanvas /** Set object transformation matrix */ - virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0; + virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0; /** Get object transformation matrix */ - virtual ::basegfx::B2DHomMatrix getTransformation() const = 0; + virtual ::basegfx::B2DHomMatrix getTransformation() const = 0; /** Set object clipping polygon */ - virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) = 0; + virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) = 0; + /** Clear object clipping polygon + */ + virtual void setClip() = 0; /** Get object clipping polygon + + @return NULL, if no clip is set; otherwise, the current clip poly-polygon is returned */ - virtual ::basegfx::B2DPolyPolygon getClip() const = 0; + virtual ::basegfx::B2DPolyPolygon const* getClip() const = 0; /** Set object color */ - virtual void setRGBAColor( Color::IntSRGBA ) = 0; + virtual void setRGBAColor( Color::IntSRGBA ) = 0; /** Get object color */ - virtual Color::IntSRGBA getRGBAColor() const = 0; + virtual Color::IntSRGBA getRGBAColor() const = 0; /** Set object composite mode */ - virtual void setCompositeOp( CompositeOp aOp ) = 0; + virtual void setCompositeOp( CompositeOp aOp ) = 0; /** Get object composite mode */ - virtual CompositeOp getCompositeOp() const = 0; + virtual CompositeOp getCompositeOp() const = 0; /** Render to parent canvas |