LibreOffice Module vcl (master) 1
Namespaces | Functions
shape.cxx File Reference
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
#include "shape.hxx"
Include dependency graph for shape.cxx:

Go to the source code of this file.

Namespaces

namespace  PictReaderShapePrivate
 Osnola: IMPORTANT NOTE: some Quickdraw lines/frames can not be "quickly" drawn exactly: for instance, when PenSize=(1,1), the line from (0,0) to (8,0) corresponds to the rectangle (0,0)(0,1)(9,1)(9,0), which can only be drawn by drawing a rectangle.
 
namespace  PictReaderShape
 

Functions

static tools::Rectangle PictReaderShapePrivate::contractRectangle (bool drawFrame, tools::Rectangle const &rect, Size const &pSize)
 returns an inside rectangle knowing the penSize in order to obtain the `‘correct’' position when we draw a frame in wide length More...
 
static bool PictReaderShape::drawLineHQ (VirtualDevice *dev, Point const &orig, Point const &dest, Size const &pSize)
 
void PictReaderShape::drawLine (VirtualDevice *dev, Point const &orig, Point const &dest, Size const &pSize)
 draws a line from orig to dest knowing penSize More...
 
void PictReaderShape::drawRectangle (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &rect, Size const &pSize)
 draws a rectangle knowing penSize More...
 
void PictReaderShape::drawEllipse (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &orig, Size const &pSize)
 draws an ellipse knowing penSize More...
 
void PictReaderShape::drawArc (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &orig, const double &angle1, const double &angle2, Size const &pSize)
 draws an arc in a b2dpolygon knowing penSize More...
 
void PictReaderShape::drawRoundRectangle (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &orig, Size const &ovalS, Size const &pSize)
 draws a rounded rectangle knowing penSize More...
 
void PictReaderShape::drawPolygon (VirtualDevice *dev, bool drawFrame, tools::Polygon const &rect, Size const &pSize)
 draws a polygon knowing penSize More...