JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

properties of the symbol, extends SymbolProps with font... More...

#include <jkqtmathtextsymbolnode.h>

Collaboration diagram for JKQTMathTextSymbolNode::SymbolFullProps:
[legend]

Public Member Functions

 SymbolFullProps ()
 default constructor
 
 SymbolFullProps (const QString &font, const QString &symbol, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 typesets the symbol from the specified font, props is stored with encoding MTFEStandard, an optional HTML-string _html can be given
 
 SymbolFullProps (const QString &font, const SymbolProps &props, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 typesets the symbol (described in props ) from the specified font, props is stored with encoding MTFEStandard, an optional HTML-string _html can be given
 
 SymbolFullProps (const SymbolFullProps &other)=default
 
 SymbolFullProps (const SymbolProps &props, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 props is stored with encoding MTFEStandard, an optional HTML-string _html can be given
 
 SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, const QString &symbol, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 takes a symbol from the specified _fontType assuming MTFEStandard encoding, an optional HTML-string _html can be given
 
 SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, const SymbolProps &props, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 props is stored with encoding MTFEStandard, uses the specified _fontType for drawing, an optional HTML-string _html can be given
 
 SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, JKQTMathTextFontEncoding enc0, const SymbolProps &props0, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 single-alternative symbol for encoding enc0 and using symbol description props0 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided
 
 SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, JKQTMathTextFontEncoding enc0, const SymbolProps &props0, JKQTMathTextFontEncoding enc1, const SymbolProps &props1, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 double-alternative symbol for encoding enc0 + enc1 and using symbol descriptions props0 + props1 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided
 
 SymbolFullProps (JKQTMathTextEnvironmentFont _fontType, JKQTMathTextFontEncoding enc0, const SymbolProps &props0, JKQTMathTextFontEncoding enc1, const SymbolProps &props1, JKQTMathTextFontEncoding enc2, const SymbolProps &props2, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 triple-alternative symbol for encoding enc0 + enc1 + enc2 and using symbol descriptions props0 + props1 + props2 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided
 
 SymbolFullProps (JKQTMathTextFontEncoding enc0, const SymbolProps &props0, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 single-alternative symbol for encoding enc0 and using symbol description props0 for it. An optional HTML-string _html can be provided
 
 SymbolFullProps (JKQTMathTextFontEncoding enc0, const SymbolProps &props0, JKQTMathTextFontEncoding enc1, const SymbolProps &props1, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 double-alternative symbol for encoding enc0 + enc1 and using symbol descriptions props0 + props1 for it. An optional HTML-string _html can be provided
 
 SymbolFullProps (JKQTMathTextFontEncoding enc0, const SymbolProps &props0, JKQTMathTextFontEncoding enc1, const SymbolProps &props1, JKQTMathTextFontEncoding enc2, const SymbolProps &props2, const QString &_html=QString(), SymbolFlags _htmlflags=AsOutside, double _htmlfontScalingFactor=1.0, double _htmlyShiftFactor=0.0)
 triple-alternative symbol for encoding enc0 + enc1 + enc2 and using symbol descriptions props0 + props1 + props2 for it. An optional HTML-string _html can be provided
 
 SymbolFullProps (SymbolFullProps &&other)=default
 
SymbolFullPropsadd (JKQTMathTextFontEncoding enc, const SymbolProps &props)
 
SymbolFullPropsaddGlobalFlags (GlobalSymbolFlags addglobalFlags)
 
SymbolFullPropsaddHtml (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddMathOperatorHtml (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddMathOperatorStd (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddMathOperatorUnicode (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddMathOperatorWinSymbol (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddStd (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddUnicode (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddUprightHtml (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddUprightStd (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddUprightUnicode (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddUprightWinSymbol (const QString &_symbol, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
SymbolFullPropsaddWinSymbol (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 
QPair< QFont, SymbolPropsgetDrawingData (JKQTMathTextEnvironment currentEv, JKQTMathText *parent, QPainter &painter) const
 returns the QFont to use for drawing and the QString to draw with it
 
SymbolProps getProps (JKQTMathTextFontEncoding key, const SymbolProps &defaultValue=SymbolProps(), JKQTMathTextFontEncoding *foundEncodingOut=nullptr) const
 accesses entries in props for a given key. This also looks for fallback options (e.g. MTFEStandard when MTFEUnicode is not available). Returns defaultValue when nothing is found
 
SymbolFullPropsoperator= (const SymbolFullProps &other)=default
 
SymbolFullPropsoperator= (SymbolFullProps &&other)=default
 
SymbolFullPropssetGlobalFlags (GlobalSymbolFlags addglobalFlags)
 

Public Attributes

QString customFontFamily
 font to use for output when fontType==MTcustomFont
 
JKQTMathTextEnvironmentFont fontType
 font type to use for typesetting the symbol (default is MTcurrentFont, which just takes the font set in the surrounding environment)
 
GlobalSymbolFlags globalFlags
 specifies global symbol flags
 
SymbolProps html
 HTML entity/text to represent the symbol (empty html.symbol not available)
 
QHash< JKQTMathTextFontEncoding, SymbolPropsprops
 here the actual symbol properties for each JKQTMathTextFontEncoding are stored
 

Detailed Description

properties of the symbol, extends SymbolProps with font...

Constructor & Destructor Documentation

◆ SymbolFullProps() [1/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( )

default constructor

◆ SymbolFullProps() [2/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( SymbolFullProps &&  other)
default

◆ SymbolFullProps() [3/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( const SymbolFullProps other)
default

◆ SymbolFullProps() [4/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( const QString &  font,
const SymbolProps props,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

typesets the symbol (described in props ) from the specified font, props is stored with encoding MTFEStandard, an optional HTML-string _html can be given

◆ SymbolFullProps() [5/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( const QString &  font,
const QString &  symbol,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

typesets the symbol from the specified font, props is stored with encoding MTFEStandard, an optional HTML-string _html can be given

◆ SymbolFullProps() [6/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( const SymbolProps props,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

props is stored with encoding MTFEStandard, an optional HTML-string _html can be given

◆ SymbolFullProps() [7/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( JKQTMathTextEnvironmentFont  _fontType,
const SymbolProps props,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

props is stored with encoding MTFEStandard, uses the specified _fontType for drawing, an optional HTML-string _html can be given

◆ SymbolFullProps() [8/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( JKQTMathTextEnvironmentFont  _fontType,
const QString &  symbol,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

takes a symbol from the specified _fontType assuming MTFEStandard encoding, an optional HTML-string _html can be given

◆ SymbolFullProps() [9/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( JKQTMathTextFontEncoding  enc0,
const SymbolProps props0,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

single-alternative symbol for encoding enc0 and using symbol description props0 for it. An optional HTML-string _html can be provided

◆ SymbolFullProps() [10/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( JKQTMathTextEnvironmentFont  _fontType,
JKQTMathTextFontEncoding  enc0,
const SymbolProps props0,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

single-alternative symbol for encoding enc0 and using symbol description props0 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided

◆ SymbolFullProps() [11/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( JKQTMathTextFontEncoding  enc0,
const SymbolProps props0,
JKQTMathTextFontEncoding  enc1,
const SymbolProps props1,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

double-alternative symbol for encoding enc0 + enc1 and using symbol descriptions props0 + props1 for it. An optional HTML-string _html can be provided

◆ SymbolFullProps() [12/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( JKQTMathTextEnvironmentFont  _fontType,
JKQTMathTextFontEncoding  enc0,
const SymbolProps props0,
JKQTMathTextFontEncoding  enc1,
const SymbolProps props1,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

double-alternative symbol for encoding enc0 + enc1 and using symbol descriptions props0 + props1 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided

◆ SymbolFullProps() [13/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( JKQTMathTextFontEncoding  enc0,
const SymbolProps props0,
JKQTMathTextFontEncoding  enc1,
const SymbolProps props1,
JKQTMathTextFontEncoding  enc2,
const SymbolProps props2,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

triple-alternative symbol for encoding enc0 + enc1 + enc2 and using symbol descriptions props0 + props1 + props2 for it. An optional HTML-string _html can be provided

◆ SymbolFullProps() [14/14]

JKQTMathTextSymbolNode::SymbolFullProps::SymbolFullProps ( JKQTMathTextEnvironmentFont  _fontType,
JKQTMathTextFontEncoding  enc0,
const SymbolProps props0,
JKQTMathTextFontEncoding  enc1,
const SymbolProps props1,
JKQTMathTextFontEncoding  enc2,
const SymbolProps props2,
const QString &  _html = QString(),
SymbolFlags  _htmlflags = AsOutside,
double  _htmlfontScalingFactor = 1.0,
double  _htmlyShiftFactor = 0.0 
)

triple-alternative symbol for encoding enc0 + enc1 + enc2 and using symbol descriptions props0 + props1 + props2 for it, uses the specified _fontType for drawing. An optional HTML-string _html can be provided

Member Function Documentation

◆ add()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::add ( JKQTMathTextFontEncoding  enc,
const SymbolProps props 
)

◆ addGlobalFlags()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addGlobalFlags ( GlobalSymbolFlags  addglobalFlags)

◆ addHtml()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addHtml ( const QString &  _symbol,
SymbolFlags  _flags = AsOutside,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addMathOperatorHtml()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addMathOperatorHtml ( const QString &  _symbol,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addMathOperatorStd()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addMathOperatorStd ( const QString &  _symbol,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addMathOperatorUnicode()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addMathOperatorUnicode ( const QString &  _symbol,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addMathOperatorWinSymbol()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addMathOperatorWinSymbol ( const QString &  _symbol,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addStd()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addStd ( const QString &  _symbol,
SymbolFlags  _flags = AsOutside,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addUnicode()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUnicode ( const QString &  _symbol,
SymbolFlags  _flags = AsOutside,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addUprightHtml()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUprightHtml ( const QString &  _symbol,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addUprightStd()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUprightStd ( const QString &  _symbol,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addUprightUnicode()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUprightUnicode ( const QString &  _symbol,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addUprightWinSymbol()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addUprightWinSymbol ( const QString &  _symbol,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ addWinSymbol()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::addWinSymbol ( const QString &  _symbol,
SymbolFlags  _flags = AsOutside,
double  _fontScalingFactor = 1.0,
double  _yShiftFactor = 0.0 
)

◆ getDrawingData()

QPair< QFont, SymbolProps > JKQTMathTextSymbolNode::SymbolFullProps::getDrawingData ( JKQTMathTextEnvironment  currentEv,
JKQTMathText parent,
QPainter &  painter 
) const

returns the QFont to use for drawing and the QString to draw with it

◆ getProps()

SymbolProps JKQTMathTextSymbolNode::SymbolFullProps::getProps ( JKQTMathTextFontEncoding  key,
const SymbolProps defaultValue = SymbolProps(),
JKQTMathTextFontEncoding foundEncodingOut = nullptr 
) const

accesses entries in props for a given key. This also looks for fallback options (e.g. MTFEStandard when MTFEUnicode is not available). Returns defaultValue when nothing is found

◆ operator=() [1/2]

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::operator= ( const SymbolFullProps other)
default

◆ operator=() [2/2]

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::operator= ( SymbolFullProps &&  other)
default

◆ setGlobalFlags()

SymbolFullProps & JKQTMathTextSymbolNode::SymbolFullProps::setGlobalFlags ( GlobalSymbolFlags  addglobalFlags)

Member Data Documentation

◆ customFontFamily

QString JKQTMathTextSymbolNode::SymbolFullProps::customFontFamily

font to use for output when fontType==MTcustomFont

◆ fontType

JKQTMathTextEnvironmentFont JKQTMathTextSymbolNode::SymbolFullProps::fontType

font type to use for typesetting the symbol (default is MTcurrentFont, which just takes the font set in the surrounding environment)

◆ globalFlags

GlobalSymbolFlags JKQTMathTextSymbolNode::SymbolFullProps::globalFlags

specifies global symbol flags

◆ html

SymbolProps JKQTMathTextSymbolNode::SymbolFullProps::html

HTML entity/text to represent the symbol (empty html.symbol not available)

◆ props

QHash<JKQTMathTextFontEncoding, SymbolProps> JKQTMathTextSymbolNode::SymbolFullProps::props

here the actual symbol properties for each JKQTMathTextFontEncoding are stored


The documentation for this struct was generated from the following file: