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 More...

#include <jkqtmathtextsymbolnode.h>

Public Member Functions

 SymbolProps ()
 
 SymbolProps (const QString &_symbol, SymbolFlags _flags=AsOutside, double _fontScalingFactor=1.0, double _yShiftFactor=0.0)
 this constructor sets the given properties and sets html=symbol! replaces whitespaces in _ymbol with for html, iff MakeWhitespaceHalf is set in _flags
 
 SymbolProps (const SymbolProps &other)=default
 
 SymbolProps (SymbolProps &&other)=default
 
QChar getSymbolSingleChar () const
 if symbol is a single character, this returns it, otherwise (empty or multi-character) it returns QChar()
 
SymbolPropsoperator= (const SymbolProps &other)=default
 
SymbolPropsoperator= (SymbolProps &&other)=default
 

Public Attributes

SymbolFlags flags
 flags switching special features
 
double fontScalingFactor
 magnification factor for the font size
 
QString symbol
 the symbol or text used to render the symbol (i.e. not the name, e.g. if the instruction/symbol name \int is used, this would be QChar(0xF2) , for \sin it would be QString("sin") ...)

 
double yShiftFactor
 this corrects the y position of a symbol: draws at y <- y+ height*yfactor)
 

Detailed Description

properties of the symbol

Constructor & Destructor Documentation

◆ SymbolProps() [1/4]

JKQTMathTextSymbolNode::SymbolProps::SymbolProps ( )

◆ SymbolProps() [2/4]

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

this constructor sets the given properties and sets html=symbol! replaces whitespaces in _ymbol with for html, iff MakeWhitespaceHalf is set in _flags

◆ SymbolProps() [3/4]

JKQTMathTextSymbolNode::SymbolProps::SymbolProps ( SymbolProps &&  other)
default

◆ SymbolProps() [4/4]

JKQTMathTextSymbolNode::SymbolProps::SymbolProps ( const SymbolProps other)
default

Member Function Documentation

◆ getSymbolSingleChar()

QChar JKQTMathTextSymbolNode::SymbolProps::getSymbolSingleChar ( ) const
inline

if symbol is a single character, this returns it, otherwise (empty or multi-character) it returns QChar()

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

Member Data Documentation

◆ flags

SymbolFlags JKQTMathTextSymbolNode::SymbolProps::flags

flags switching special features

◆ fontScalingFactor

double JKQTMathTextSymbolNode::SymbolProps::fontScalingFactor

magnification factor for the font size

◆ symbol

QString JKQTMathTextSymbolNode::SymbolProps::symbol

the symbol or text used to render the symbol (i.e. not the name, e.g. if the instruction/symbol name \int is used, this would be QChar(0xF2) , for \sin it would be QString("sin") ...)

◆ yShiftFactor

double JKQTMathTextSymbolNode::SymbolProps::yShiftFactor

this corrects the y position of a symbol: draws at y <- y+ height*yfactor)


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