LibreOffice Module drawinglayer (master) 1
|
BorderLine class Helper class holding the style definition for a single part of a full BorderLine definition. More...
#include <borderlineprimitive2d.hxx>
Public Member Functions | |
BorderLine (const drawinglayer::attribute::LineAttribute &rLineAttribute, double fStartLeft=0.0, double fStartRight=0.0, double fEndLeft=0.0, double fEndRight=0.0) | |
BorderLine (double fWidth) | |
~BorderLine () | |
BorderLine (BorderLine const &)=default | |
BorderLine (BorderLine &&)=default | |
BorderLine & | operator= (BorderLine const &)=default |
BorderLine & | operator= (BorderLine &&)=default |
const drawinglayer::attribute::LineAttribute & | getLineAttribute () const |
double | getStartLeft () const |
double | getStartRight () const |
double | getEndLeft () const |
double | getEndRight () const |
bool | isGap () const |
bool | operator== (const BorderLine &rBorderLine) const |
compare operator More... | |
Private Attributes | |
drawinglayer::attribute::LineAttribute | maLineAttribute |
double | mfStartLeft |
double | mfStartRight |
double | mfEndLeft |
double | mfEndRight |
bool | mbIsGap |
BorderLine class Helper class holding the style definition for a single part of a full BorderLine definition.
Line extends are for start/end and for Left/Right, seen in vector direction. If Left != Right that means the line has a diagonal start/end. Think about it similar to a trapezoid, but not aligned to X-Axis and using the perpendicular vector to the given one in a right-handed coordinate system.
Definition at line 39 of file borderlineprimitive2d.hxx.
drawinglayer::primitive2d::BorderLine::BorderLine | ( | const drawinglayer::attribute::LineAttribute & | rLineAttribute, |
double | fStartLeft = 0.0 , |
||
double | fStartRight = 0.0 , |
||
double | fEndLeft = 0.0 , |
||
double | fEndRight = 0.0 |
||
) |
Definition at line 34 of file borderlineprimitive2d.cxx.
drawinglayer::primitive2d::BorderLine::BorderLine | ( | double | fWidth | ) |
Definition at line 49 of file borderlineprimitive2d.cxx.
drawinglayer::primitive2d::BorderLine::~BorderLine | ( | ) |
Definition at line 60 of file borderlineprimitive2d.cxx.
|
default |
|
default |
|
inline |
Definition at line 76 of file borderlineprimitive2d.hxx.
Referenced by operator==(), and drawinglayer::primitive2d::tryMergeBorderLinePrimitive2D().
|
inline |
Definition at line 77 of file borderlineprimitive2d.hxx.
Referenced by operator==(), and drawinglayer::primitive2d::tryMergeBorderLinePrimitive2D().
|
inline |
Definition at line 70 of file borderlineprimitive2d.hxx.
Referenced by operator==(), and drawinglayer::primitive2d::tryMergeBorderLinePrimitive2D().
|
inline |
Definition at line 74 of file borderlineprimitive2d.hxx.
Referenced by operator==(), and drawinglayer::primitive2d::tryMergeBorderLinePrimitive2D().
|
inline |
Definition at line 75 of file borderlineprimitive2d.hxx.
Referenced by operator==(), and drawinglayer::primitive2d::tryMergeBorderLinePrimitive2D().
|
inline |
Definition at line 78 of file borderlineprimitive2d.hxx.
Referenced by operator==(), and drawinglayer::primitive2d::tryMergeBorderLinePrimitive2D().
|
default |
|
default |
bool drawinglayer::primitive2d::BorderLine::operator== | ( | const BorderLine & | rBorderLine | ) | const |
compare operator
Definition at line 64 of file borderlineprimitive2d.cxx.
References getEndLeft(), getEndRight(), getLineAttribute(), getStartLeft(), getStartRight(), and isGap().
|
private |
Definition at line 43 of file borderlineprimitive2d.hxx.
|
private |
Definition at line 52 of file borderlineprimitive2d.hxx.
|
private |
Definition at line 48 of file borderlineprimitive2d.hxx.
|
private |
Definition at line 49 of file borderlineprimitive2d.hxx.
|
private |
Definition at line 46 of file borderlineprimitive2d.hxx.
|
private |
Definition at line 47 of file borderlineprimitive2d.hxx.