28 #include <QDataStream> 50 BBoxExpand(
double t = -1,
double r = -1,
double b = -1,
double l = -1)
51 : top(t), right(r), bottom(b), left(l) { }
54 inline bool valid()
const {
return top >= 0 && right >= 0 && bottom >= 0 && left >= 0; }
61 { top = other.
top; right = other.
right; bottom = other.
bottom; left = other.
left;
return *
this; }
67 unsigned long bgcol = qRgba(255,255,255,0),
71 : name(nm), fg_color(fgcol), bg_color(bgcol), mathmode(mmode), preamble(pre),
77 : name(), fg_color(input.fg_color), bg_color(input.bg_color), mathmode(input.mathmode),
78 preamble(input.preamble), dpi(input.dpi), overrideBBoxExpand()
83 : name(o.name), fg_color(o.fg_color), bg_color(o.bg_color), mathmode(o.mathmode),
84 preamble(o.preamble), dpi(o.dpi), overrideBBoxExpand(o.overrideBBoxExpand)
BBoxExpand(const BBoxExpand &c)
QString name
this may not always be set, it's only important in saved style list.
bool operator==(const BBoxExpand &x) const
const BBoxExpand & operator=(const BBoxExpand &other)
KLFStyle(QString nm=QString(), unsigned long fgcol=qRgba(0, 0, 0, 255), unsigned long bgcol=qRgba(255, 255, 255, 0), const QString &mmode=QString(), const QString &pre=QString(), int dotsperinch=-1)
const KLFStyle & operator=(const KLFStyle &o)
KLFStyle(const KLFStyle &o)
KLF_EXPORT QDataStream & operator<<(QDataStream &stream, const KLFStyle &style)
BBoxExpand(double t=-1, double r=-1, double b=-1, double l=-1)
a structure memorizing parameters for bbox expansion
A Formula Style (collection of properties)
BBoxExpand overrideBBoxExpand
KLF_EXPORT QDataStream & operator>>(QDataStream &stream, KLFStyle &style)
KLFStyle(const KLFBackend::klfInput &input)
QList< KLFStyle > KLFStyleList
KLF_EXPORT bool operator==(const KLFStyle &a, const KLFStyle &b)