#include <fontstyle.h>
Graphe d'héritage de Artwork:
Fonctions membres publiques | |
Artwork (SymbolType type=EmptyBracket) | |
virtual | ~Artwork () |
virtual void | calcSizes (const ContextStyle &style, ContextStyle::TextStyle tstyle, double factor, luPt parentSize) |
virtual void | calcSizes (const ContextStyle &style, ContextStyle::TextStyle tstyle, double factor) |
virtual void | draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, StyleAttributes &style, luPt parentSize, const LuPixelPoint &origin) |
virtual void | draw (QPainter &painter, const LuPixelRect &r, const ContextStyle &context, ContextStyle::TextStyle tstyle, StyleAttributes &style, const LuPixelPoint &parentOrigin) |
luPixel | getWidth () const |
luPixel | getHeight () const |
void | setWidth (luPixel width) |
void | setHeight (luPixel height) |
luPixel | getBaseline () const |
void | setBaseline (luPixel line) |
luPixel | getX () const |
luPixel | getY () const |
void | setX (luPixel x) |
void | setY (luPixel y) |
SymbolType | getType () const |
void | setType (SymbolType t) |
virtual bool | isNormalChar () const |
virtual double | slant () const |
Fonctions membres protégées | |
void | calcCharSize (const ContextStyle &style, luPt height, QChar ch) |
void | drawCharacter (QPainter &painter, const ContextStyle &style, luPixel x, luPixel y, luPt height, QChar ch) |
void | calcCharSize (const ContextStyle &style, QFont f, QChar c) |
void | drawCharacter (QPainter &painter, const ContextStyle &style, QFont f, luPixel x, luPixel y, luPt height, uchar c) |
void | calcRoundBracket (const ContextStyle &style, const QChar chars[], luPt height, luPt charHeight) |
void | calcCurlyBracket (const ContextStyle &style, const QChar chars[], luPt height, luPt charHeight) |
void | drawBigRoundBracket (QPainter &p, const ContextStyle &style, const QChar chars[], luPixel x, luPixel y, luPt charHeight) |
void | drawBigCurlyBracket (QPainter &p, const ContextStyle &style, const QChar chars[], luPixel x, luPixel y, luPt charHeight) |
Fonctions membres privées | |
bool | calcCMDelimiterSize (const ContextStyle &context, uchar c, luPt fontSize, luPt parentSize) |
void | calcLargest (const ContextStyle &context, uchar c, luPt fontSize) |
void | drawCMDelimiter (QPainter &painter, const ContextStyle &style, luPixel x, luPixel y, luPt height) |
Attributs privés | |
LuPixelSize | size |
LuPixelPoint | point |
luPixel | baseline |
SymbolType | type |
short | cmChar |
Définition à la ligne 105 du fichier fontstyle.h.
Artwork::Artwork | ( | SymbolType | type = EmptyBracket |
) |
Définition à la ligne 130 du fichier fontstyle.cc.
virtual Artwork::~Artwork | ( | ) | [inline, virtual] |
Définition à la ligne 109 du fichier fontstyle.h.
virtual void Artwork::calcSizes | ( | const ContextStyle & | style, | |
ContextStyle::TextStyle | tstyle, | |||
double | factor, | |||
luPt | parentSize | |||
) | [virtual] |
virtual void Artwork::calcSizes | ( | const ContextStyle & | style, | |
ContextStyle::TextStyle | tstyle, | |||
double | factor | |||
) | [virtual] |
Réimplémentée dans CMArtwork, EsstixArtwork, et SymbolArtwork.
virtual void Artwork::draw | ( | QPainter & | painter, | |
const LuPixelRect & | r, | |||
const ContextStyle & | context, | |||
ContextStyle::TextStyle | tstyle, | |||
StyleAttributes & | style, | |||
luPt | parentSize, | |||
const LuPixelPoint & | origin | |||
) | [virtual] |
virtual void Artwork::draw | ( | QPainter & | painter, | |
const LuPixelRect & | r, | |||
const ContextStyle & | context, | |||
ContextStyle::TextStyle | tstyle, | |||
StyleAttributes & | style, | |||
const LuPixelPoint & | parentOrigin | |||
) | [virtual] |
luPixel Artwork::getWidth | ( | ) | const [inline] |
Définition à la ligne 130 du fichier fontstyle.h.
Références size.
Référencé par CMArtwork::calcSizes(), CMArtwork::draw(), et KFormula::BracketElement::draw().
Voici le graphe d'appel pour cette fonction :
luPixel Artwork::getHeight | ( | ) | const [inline] |
Définition à la ligne 131 du fichier fontstyle.h.
Références size.
Référencé par KFormula::BracketElement::draw(), drawBigCurlyBracket(), et drawBigRoundBracket().
Voici le graphe d'appel pour cette fonction :
void Artwork::setWidth | ( | luPixel | width | ) | [inline] |
Définition à la ligne 133 du fichier fontstyle.h.
Références size.
Référencé par CMArtwork::calcCMDelimiterSize(), calcCurlyBracket(), EsstixArtwork::calcEsstixDelimiterSize(), CMArtwork::calcLargest(), calcRoundBracket(), SymbolArtwork::calcSizes(), EsstixArtwork::calcSizes(), et CMArtwork::calcSizes().
Voici le graphe d'appel pour cette fonction :
void Artwork::setHeight | ( | luPixel | height | ) | [inline] |
Définition à la ligne 134 du fichier fontstyle.h.
Références size.
Référencé par CMArtwork::calcCMDelimiterSize(), calcCurlyBracket(), EsstixArtwork::calcEsstixDelimiterSize(), CMArtwork::calcLargest(), calcRoundBracket(), SymbolArtwork::calcSizes(), EsstixArtwork::calcSizes(), et CMArtwork::calcSizes().
Voici le graphe d'appel pour cette fonction :
luPixel Artwork::getBaseline | ( | ) | const [inline] |
Définition à la ligne 136 du fichier fontstyle.h.
Références baseline.
Référencé par CMArtwork::drawCMDelimiter(), EsstixArtwork::drawEsstixDelimiter(), et isNormalChar().
Voici le graphe d'appel pour cette fonction :
void Artwork::setBaseline | ( | luPixel | line | ) | [inline] |
Définition à la ligne 137 du fichier fontstyle.h.
Références baseline.
Référencé par CMArtwork::calcCMDelimiterSize(), EsstixArtwork::calcEsstixDelimiterSize(), CMArtwork::calcLargest(), SymbolArtwork::calcSizes(), EsstixArtwork::calcSizes(), et CMArtwork::calcSizes().
Voici le graphe d'appel pour cette fonction :
luPixel Artwork::getX | ( | ) | const [inline] |
Définition à la ligne 139 du fichier fontstyle.h.
Références point.
Référencé par SymbolArtwork::draw(), EsstixArtwork::draw(), CMArtwork::draw(), et KFormula::BracketElement::draw().
Voici le graphe d'appel pour cette fonction :
luPixel Artwork::getY | ( | ) | const [inline] |
Définition à la ligne 140 du fichier fontstyle.h.
Références point.
Référencé par SymbolArtwork::draw(), EsstixArtwork::draw(), CMArtwork::draw(), et KFormula::BracketElement::draw().
Voici le graphe d'appel pour cette fonction :
void Artwork::setX | ( | luPixel | x | ) | [inline] |
void Artwork::setY | ( | luPixel | y | ) | [inline] |
SymbolType Artwork::getType | ( | ) | const [inline] |
Définition à la ligne 145 du fichier fontstyle.h.
Références type.
Référencé par SymbolArtwork::calcSizes(), EsstixArtwork::calcSizes(), CMArtwork::calcSizes(), SymbolArtwork::draw(), EsstixArtwork::draw(), CMArtwork::draw(), et CMArtwork::slant().
Voici le graphe d'appel pour cette fonction :
void Artwork::setType | ( | SymbolType | t | ) | [inline] |
virtual bool Artwork::isNormalChar | ( | ) | const [inline, virtual] |
Réimplémentée dans CMArtwork, et EsstixArtwork.
Définition à la ligne 148 du fichier fontstyle.h.
Références cmChar, et getBaseline().
Référencé par EsstixArtwork::isNormalChar(), et CMArtwork::isNormalChar().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
virtual double Artwork::slant | ( | ) | const [inline, virtual] |
void Artwork::calcCharSize | ( | const ContextStyle & | style, | |
luPt | height, | |||
QChar | ch | |||
) | [protected] |
Définition à la ligne 248 du fichier fontstyle.cc.
Références gensymbolfontmap::f, et ContextStyle::symbolTable().
Référencé par SymbolArtwork::calcSizes(), EsstixArtwork::calcSizes(), et CMArtwork::calcSizes().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void Artwork::drawCharacter | ( | QPainter & | painter, | |
const ContextStyle & | style, | |||
luPixel | x, | |||
luPixel | y, | |||
luPt | height, | |||
QChar | ch | |||
) | [protected] |
Définition à la ligne 257 du fichier fontstyle.cc.
Références gensymbolfontmap::f, et ContextStyle::symbolTable().
Référencé par SymbolArtwork::draw(), EsstixArtwork::draw(), et CMArtwork::draw().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void Artwork::calcCharSize | ( | const ContextStyle & | style, | |
QFont | f, | |||
QChar | c | |||
) | [protected] |
void Artwork::drawCharacter | ( | QPainter & | painter, | |
const ContextStyle & | style, | |||
QFont | f, | |||
luPixel | x, | |||
luPixel | y, | |||
luPt | height, | |||
uchar | c | |||
) | [protected] |
void Artwork::calcRoundBracket | ( | const ContextStyle & | style, | |
const QChar | chars[], | |||
luPt | height, | |||
luPt | charHeight | |||
) | [protected] |
Définition à la ligne 292 du fichier fontstyle.cc.
Références ContextStyle::layoutUnitPtToPt(), ContextStyle::ptToLayoutUnitPt(), setHeight(), setWidth(), et ContextStyle::symbolTable().
Référencé par SymbolArtwork::calcSizes(), EsstixArtwork::calcSizes(), et CMArtwork::calcSizes().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void Artwork::calcCurlyBracket | ( | const ContextStyle & | style, | |
const QChar | chars[], | |||
luPt | height, | |||
luPt | charHeight | |||
) | [protected] |
Définition à la ligne 362 du fichier fontstyle.cc.
Références ContextStyle::layoutUnitPtToPt(), ContextStyle::ptToLayoutUnitPt(), setHeight(), setWidth(), et ContextStyle::symbolTable().
Référencé par SymbolArtwork::calcSizes(), EsstixArtwork::calcSizes(), et CMArtwork::calcSizes().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void Artwork::drawBigRoundBracket | ( | QPainter & | p, | |
const ContextStyle & | style, | |||
const QChar | chars[], | |||
luPixel | x, | |||
luPixel | y, | |||
luPt | charHeight | |||
) | [protected] |
Définition à la ligne 314 du fichier fontstyle.cc.
Références getHeight(), ContextStyle::layoutUnitToFontSize(), ContextStyle::layoutUnitToPixelX(), ContextStyle::layoutUnitToPixelY(), et ContextStyle::symbolTable().
Référencé par SymbolArtwork::draw(), EsstixArtwork::draw(), et CMArtwork::draw().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
void Artwork::drawBigCurlyBracket | ( | QPainter & | p, | |
const ContextStyle & | style, | |||
const QChar | chars[], | |||
luPixel | x, | |||
luPixel | y, | |||
luPt | charHeight | |||
) | [protected] |
Définition à la ligne 388 du fichier fontstyle.cc.
Références getHeight(), ContextStyle::layoutUnitToFontSize(), ContextStyle::layoutUnitToPixelX(), ContextStyle::layoutUnitToPixelY(), et ContextStyle::symbolTable().
Référencé par SymbolArtwork::draw(), EsstixArtwork::draw(), et CMArtwork::draw().
Voici le graphe d'appel pour cette fonction :
Voici le graphe d'appel pour cette fonction :
bool Artwork::calcCMDelimiterSize | ( | const ContextStyle & | context, | |
uchar | c, | |||
luPt | fontSize, | |||
luPt | parentSize | |||
) | [private] |
Réimplémentée dans CMArtwork.
void Artwork::calcLargest | ( | const ContextStyle & | context, | |
uchar | c, | |||
luPt | fontSize | |||
) | [private] |
Réimplémentée dans CMArtwork.
void Artwork::drawCMDelimiter | ( | QPainter & | painter, | |
const ContextStyle & | style, | |||
luPixel | x, | |||
luPixel | y, | |||
luPt | height | |||
) | [private] |
Réimplémentée dans CMArtwork.
LuPixelSize Artwork::size [private] |
Définition à la ligne 171 du fichier fontstyle.h.
Référencé par getHeight(), getWidth(), setHeight(), et setWidth().
LuPixelPoint Artwork::point [private] |
luPixel Artwork::baseline [private] |
Used if we are a character.
Définition à la ligne 177 du fichier fontstyle.h.
Référencé par CMArtwork::calcCMDelimiterSize(), EsstixArtwork::calcEsstixDelimiterSize(), CMArtwork::calcLargest(), getBaseline(), et setBaseline().
SymbolType Artwork::type [private] |
short Artwork::cmChar [private] |
Réimplémentée dans CMArtwork.
Définition à la ligne 187 du fichier fontstyle.h.
Référencé par isNormalChar().