diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-11-26 19:50:53 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-11-26 19:50:53 +0000 |
commit | 8c24f67b4644099cb307094206405729b1b8c557 (patch) | |
tree | 44cd897ce058121e7bbf43ed07a7bece4e7d30af /cppcanvas/inc | |
parent | 24efe39f2bba7249f0383984edaea76b82f1f028 (diff) |
INTEGRATION: CWS presentationengine01 (1.2.2); FILE MERGED
2004/09/29 19:07:54 thb 1.2.2.4: #110496# Added magic constant for bounding box enlargement on anti-aliasing canvases
2004/07/20 19:08:42 thb 1.2.2.3: #110496# Unified include statements; removed external prefix from boost includes
2004/06/25 10:30:18 thb 1.2.2.2: #110496# Some header cleanups (missing forward declarations), changed Canvas and derived to emulate covariant return types on clone() (not directly possible with shared_ptr)
2004/04/05 15:58:42 thb 1.2.2.1: Resync with canvas01 changes
Diffstat (limited to 'cppcanvas/inc')
-rw-r--r-- | cppcanvas/inc/cppcanvas/canvas.hxx | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/cppcanvas/inc/cppcanvas/canvas.hxx b/cppcanvas/inc/cppcanvas/canvas.hxx index 103092b4facc..3ae96d2dba6f 100644 --- a/cppcanvas/inc/cppcanvas/canvas.hxx +++ b/cppcanvas/inc/cppcanvas/canvas.hxx @@ -2,9 +2,9 @@ * * $RCSfile: canvas.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: rt $ $Date: 2004-09-08 16:56:53 $ + * last change: $Author: rt $ $Date: 2004-11-26 20:50:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -113,6 +113,19 @@ namespace cppcanvas class Canvas { public: + enum + { + /** Extra pixel used when canvas anti-aliases. + + Enlarge the bounding box of drawing primitives by this + amount in both dimensions, and on both sides of the + bounds, to account for extra pixel touched outside the + actual primitive bounding box, when the canvas + performs anti-aliasing. + */ + ANTIALIASING_EXTRA_SIZE=2 + }; + virtual ~Canvas() {} virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) = 0; @@ -125,7 +138,7 @@ namespace cppcanvas virtual ColorSharedPtr createColor() const = 0; - virtual CanvasSharedPtr cloneCanvas() const = 0; + virtual CanvasSharedPtr clone() const = 0; // this should be considered private. if RTTI gets enabled // someday, remove that to a separate interface |