LibreOffice Module vcl (master) 1
|
Functions | |
static bool | drawLineHQ (VirtualDevice *dev, Point const &orig, Point const &dest, Size const &pSize) |
void | drawLine (VirtualDevice *dev, Point const &orig, Point const &dest, Size const &pSize) |
draws a line from orig to dest knowing penSize More... | |
void | drawRectangle (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &rect, Size const &pSize) |
draws a rectangle knowing penSize More... | |
void | drawEllipse (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &orig, Size const &pSize) |
draws an ellipse knowing penSize More... | |
void | 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 | drawRoundRectangle (VirtualDevice *dev, bool drawFrame, tools::Rectangle const &orig, Size const &ovalS, Size const &pSize) |
draws a rounded rectangle knowing penSize More... | |
void | drawPolygon (VirtualDevice *dev, bool drawFrame, tools::Polygon const &rect, Size const &pSize) |
draws a polygon 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
Definition at line 162 of file shape.cxx.
References basegfx::B2DPolygon::append(), tools::Rectangle::Bottom(), center, PictReaderShapePrivate::contractRectangle(), basegfx::utils::createPolygonFromEllipseSegment(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), Size::Height(), tools::Rectangle::Left(), basegfx::NONE, tools::Rectangle::Right(), tools::Rectangle::Top(), Size::Width(), X, and Y.
void PictReaderShape::drawEllipse | ( | VirtualDevice * | dev, |
bool | drawFrame, | ||
tools::Rectangle const & | orig, | ||
Size const & | pSize | ||
) |
draws an ellipse knowing penSize
Definition at line 147 of file shape.cxx.
References tools::Rectangle::Bottom(), center, PictReaderShapePrivate::contractRectangle(), basegfx::utils::createPolygonFromEllipse(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), Size::Height(), tools::Rectangle::Left(), basegfx::NONE, tools::Rectangle::Right(), tools::Rectangle::Top(), Size::Width(), X, and Y.
void PictReaderShape::drawLine | ( | VirtualDevice * | dev, |
Point const & | orig, | ||
Point const & | dest, | ||
Size const & | pSize | ||
) |
draws a line from orig to dest knowing penSize
Attention: in order to draw horizontal/vertical/small lines, this function can instead draw a rectangle or a polygon. In this case, we retrieve the line information from VirtualDev ( GetLineColor ) and we use them as fill information ( SetFillColor ). We restore after the VirtualDev state.
This implies also that this function must be modified if we use real pattern to draw these primitives.
Definition at line 111 of file shape.cxx.
References basegfx::B2DPolygon::append(), drawLineHQ(), OutputDevice::DrawPolyLine(), Size::Height(), basegfx::NONE, Size::Width(), Point::X(), and Point::Y().
|
static |
Definition at line 54 of file shape.cxx.
References basegfx::B2DPolygon::append(), COL_TRANSPARENT(), OutputDevice::DrawPolygon(), OutputDevice::GetFillColor(), OutputDevice::GetLineColor(), Size::Height(), OutputDevice::SetFillColor(), OutputDevice::SetLineColor(), w, Size::Width(), X, Point::X(), Y, and Point::Y().
Referenced by drawLine().
void PictReaderShape::drawPolygon | ( | VirtualDevice * | dev, |
bool | drawFrame, | ||
tools::Polygon const & | orig, | ||
Size const & | pSize | ||
) |
draws a polygon knowing penSize
Definition at line 218 of file shape.cxx.
References basegfx::B2DPolygon::append(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), tools::Polygon::GetPoint(), tools::Polygon::GetSize(), Size::Height(), i, basegfx::NONE, pt, basegfx::B2DPolygon::reserve(), Size::Width(), x, and y.
void PictReaderShape::drawRectangle | ( | VirtualDevice * | dev, |
bool | drawFrame, | ||
tools::Rectangle const & | orig, | ||
Size const & | pSize | ||
) |
draws a rectangle knowing penSize
Definition at line 128 of file shape.cxx.
References basegfx::B2DPolygon::append(), tools::Rectangle::Bottom(), PictReaderShapePrivate::contractRectangle(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), Size::Height(), tools::Rectangle::Left(), basegfx::NONE, tools::Rectangle::Right(), tools::Rectangle::Top(), Size::Width(), X, and Y.
void PictReaderShape::drawRoundRectangle | ( | VirtualDevice * | dev, |
bool | drawFrame, | ||
tools::Rectangle const & | orig, | ||
Size const & | ovalS, | ||
Size const & | pSize | ||
) |
draws a rounded rectangle knowing penSize
Definition at line 196 of file shape.cxx.
References tools::Rectangle::Bottom(), PictReaderShapePrivate::contractRectangle(), basegfx::utils::createPolygonFromRect(), OutputDevice::DrawPolygon(), OutputDevice::DrawPolyLine(), Size::Height(), tools::Rectangle::Left(), basegfx::NONE, tools::Rectangle::Right(), tools::Rectangle::Top(), Size::Width(), X, and Y.