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
|
defines the implementation of an instruction represented by JKQTMathTextModifiedTextPropsInstructionNode More...
#include <jkqtmathtextboxinstructionnode.h>
Public Types | |
typedef std::function< QBrush(JKQTMathTextEnvironment &ev, const QStringList ¶meters, JKQTMathText *parent)> | GetBoxBrushFunctor |
this functor returns the QBrush to use for the box fill | |
typedef std::function< QPen(JKQTMathTextEnvironment &ev, const QStringList ¶meters, JKQTMathText *parent)> | GetBoxPenFunctor |
this functor returns the QPen to use for the box outline | |
typedef std::function< void(JKQTMathTextEnvironment &ev, const QStringList ¶meters)> | ModifyEnvironmentFunctor |
this functor implements the instruction | |
Public Member Functions | |
InstructionProperties () | |
default constructor, creates a NOP-instruction that does nothing | |
InstructionProperties (const GetBoxPenFunctor &_pen, const GetBoxBrushFunctor &_brush, double _paddingFactor=DefaultPadding, size_t _NParams=0) | |
constructor | |
InstructionProperties (const ModifyEnvironmentFunctor &_modifier, const GetBoxPenFunctor &_pen, const GetBoxBrushFunctor &_brush, double _paddingFactor=DefaultPadding, size_t _NParams=0) | |
constructor | |
Public Attributes | |
GetBoxBrushFunctor | brush |
functor that creates a QBrush for the box fill | |
bool | doubleLine |
draw a double-line | |
ModifyEnvironmentFunctor | modifier |
functor that modifies a JKQTMathTextEnvironment | |
size_t | NParams |
number of parameters for this node | |
double | paddingFactor |
padding of the box, as a factor to xWidth of the current font | |
GetBoxPenFunctor | pen |
functor that creates a QPen for the box outline | |
double | roundingFactor |
rounding radius (rx=ry) of the box, as a factor to xWidth of the current font | |
Static Public Attributes | |
static double | DefaultPadding |
default padding factor 0.5 xWidth | |
static GetBoxPenFunctor | DefaultPen |
generates a QPen with the lineWidth associated with the QFont of the environment (using QFontMetricsF::lineWidth() ) | |
static GetBoxBrushFunctor | NoBrush |
generates an invisible QBrush | |
static ModifyEnvironmentFunctor | NoModification |
static GetBoxPenFunctor | NoPen |
generates an invisible pen with 0 width | |
defines the implementation of an instruction represented by JKQTMathTextModifiedTextPropsInstructionNode
typedef std::function<QBrush(JKQTMathTextEnvironment& ev, const QStringList& parameters, JKQTMathText* parent)> JKQTMathTextBoxInstructionNode::InstructionProperties::GetBoxBrushFunctor |
this functor returns the QBrush to use for the box fill
typedef std::function<QPen(JKQTMathTextEnvironment& ev, const QStringList& parameters, JKQTMathText* parent)> JKQTMathTextBoxInstructionNode::InstructionProperties::GetBoxPenFunctor |
this functor returns the QPen to use for the box outline
typedef std::function<void(JKQTMathTextEnvironment& ev, const QStringList& parameters)> JKQTMathTextBoxInstructionNode::InstructionProperties::ModifyEnvironmentFunctor |
this functor implements the instruction
JKQTMathTextBoxInstructionNode::InstructionProperties::InstructionProperties | ( | ) |
default constructor, creates a NOP-instruction that does nothing
JKQTMathTextBoxInstructionNode::InstructionProperties::InstructionProperties | ( | const ModifyEnvironmentFunctor & | _modifier, |
const GetBoxPenFunctor & | _pen, | ||
const GetBoxBrushFunctor & | _brush, | ||
double | _paddingFactor = DefaultPadding , |
||
size_t | _NParams = 0 |
||
) |
constructor
JKQTMathTextBoxInstructionNode::InstructionProperties::InstructionProperties | ( | const GetBoxPenFunctor & | _pen, |
const GetBoxBrushFunctor & | _brush, | ||
double | _paddingFactor = DefaultPadding , |
||
size_t | _NParams = 0 |
||
) |
constructor
GetBoxBrushFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::brush |
functor that creates a QBrush for the box fill
|
static |
default padding factor 0.5 xWidth
|
static |
generates a QPen with the lineWidth associated with the QFont of the environment (using QFontMetricsF::lineWidth() )
bool JKQTMathTextBoxInstructionNode::InstructionProperties::doubleLine |
draw a double-line
ModifyEnvironmentFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::modifier |
functor that modifies a JKQTMathTextEnvironment
|
static |
generates an invisible QBrush
|
static |
|
static |
generates an invisible pen with 0 width
size_t JKQTMathTextBoxInstructionNode::InstructionProperties::NParams |
number of parameters for this node
double JKQTMathTextBoxInstructionNode::InstructionProperties::paddingFactor |
padding of the box, as a factor to xWidth of the current font
GetBoxPenFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::pen |
functor that creates a QPen for the box outline
double JKQTMathTextBoxInstructionNode::InstructionProperties::roundingFactor |
rounding radius (rx=ry) of the box, as a factor to xWidth of the current font