LibreOffice Module cppcanvas (master) 1
Public Member Functions | List of all members
cppcanvas::PolyPolygon Class Referenceabstract

This interface defines a tools::PolyPolygon canvas object. More...

#include <polypolygon.hxx>

Inheritance diagram for cppcanvas::PolyPolygon:
[legend]
Collaboration diagram for cppcanvas::PolyPolygon:
[legend]

Public Member Functions

virtual void setRGBAFillColor (IntSRGBA)=0
 Set polygon fill color. More...
 
virtual void setRGBALineColor (IntSRGBA)=0
 Set polygon line color. More...
 
virtual IntSRGBA getRGBALineColor () const =0
 Get polygon line color. More...
 
virtual void setStrokeWidth (const double &rStrokeWidth)=0
 
virtual double getStrokeWidth () const =0
 
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > getUNOPolyPolygon () const =0
 
- Public Member Functions inherited from cppcanvas::CanvasGraphic
virtual ~CanvasGraphic ()
 
virtual void setTransformation (const ::basegfx::B2DHomMatrix &rMatrix)=0
 Set object transformation matrix. More...
 
virtual void setClip (const ::basegfx::B2DPolyPolygon &rClipPoly)=0
 Set object clipping polygon. More...
 
virtual void setClip ()=0
 Clear object clipping polygon. More...
 
virtual void setCompositeOp (sal_Int8 aOp)=0
 Set object composite mode. More...
 
virtual bool draw () const =0
 Render to parent canvas. More...
 

Detailed Description

This interface defines a tools::PolyPolygon canvas object.

Consider this object part of the view, and not of the model data. Although the given polygon is typically copied and held internally (to facilitate migration to incompatible canvases), basegfx::B2DPolygon et al. are ref-counted copy-on-write classes, i.e. memory shouldn't be wasted. On the other hand, the API polygon created internally does necessarily duplicate the data held, but can be easily flushed away via flush().

Definition at line 50 of file polypolygon.hxx.

Member Function Documentation

◆ getRGBALineColor()

virtual IntSRGBA cppcanvas::PolyPolygon::getRGBALineColor ( ) const
pure virtual

Get polygon line color.

Implemented in cppcanvas::internal::ImplPolyPolygon.

◆ getStrokeWidth()

virtual double cppcanvas::PolyPolygon::getStrokeWidth ( ) const
pure virtual

◆ getUNOPolyPolygon()

virtual css::uno::Reference< css::rendering::XPolyPolygon2D > cppcanvas::PolyPolygon::getUNOPolyPolygon ( ) const
pure virtual

◆ setRGBAFillColor()

virtual void cppcanvas::PolyPolygon::setRGBAFillColor ( IntSRGBA  )
pure virtual

Set polygon fill color.

Implemented in cppcanvas::internal::ImplPolyPolygon.

◆ setRGBALineColor()

virtual void cppcanvas::PolyPolygon::setRGBALineColor ( IntSRGBA  )
pure virtual

Set polygon line color.

Implemented in cppcanvas::internal::ImplPolyPolygon.

◆ setStrokeWidth()

virtual void cppcanvas::PolyPolygon::setStrokeWidth ( const double &  rStrokeWidth)
pure virtual

The documentation for this class was generated from the following file: