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
JKQTMathTextBoxInstructionNode::InstructionProperties Struct Reference

defines the implementation of an instruction represented by JKQTMathTextModifiedTextPropsInstructionNode More...

#include <jkqtmathtextboxinstructionnode.h>

Public Types

typedef std::function< QBrush(JKQTMathTextEnvironment &ev, const QStringList &parameters, JKQTMathText *parent)> GetBoxBrushFunctor
 this functor returns the QBrush to use for the box fill
 
typedef std::function< QPen(JKQTMathTextEnvironment &ev, const QStringList &parameters, JKQTMathText *parent)> GetBoxPenFunctor
 this functor returns the QPen to use for the box outline
 
typedef std::function< void(JKQTMathTextEnvironment &ev, const QStringList &parameters)> 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
 

Detailed Description

defines the implementation of an instruction represented by JKQTMathTextModifiedTextPropsInstructionNode

Member Typedef Documentation

◆ GetBoxBrushFunctor

this functor returns the QBrush to use for the box fill

◆ GetBoxPenFunctor

this functor returns the QPen to use for the box outline

◆ ModifyEnvironmentFunctor

this functor implements the instruction

Constructor & Destructor Documentation

◆ InstructionProperties() [1/3]

JKQTMathTextBoxInstructionNode::InstructionProperties::InstructionProperties ( )

default constructor, creates a NOP-instruction that does nothing

◆ InstructionProperties() [2/3]

JKQTMathTextBoxInstructionNode::InstructionProperties::InstructionProperties ( const ModifyEnvironmentFunctor _modifier,
const GetBoxPenFunctor _pen,
const GetBoxBrushFunctor _brush,
double  _paddingFactor = DefaultPadding,
size_t  _NParams = 0 
)

constructor

◆ InstructionProperties() [3/3]

JKQTMathTextBoxInstructionNode::InstructionProperties::InstructionProperties ( const GetBoxPenFunctor _pen,
const GetBoxBrushFunctor _brush,
double  _paddingFactor = DefaultPadding,
size_t  _NParams = 0 
)

constructor

Member Data Documentation

◆ brush

GetBoxBrushFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::brush

functor that creates a QBrush for the box fill

◆ DefaultPadding

double JKQTMathTextBoxInstructionNode::InstructionProperties::DefaultPadding
static

default padding factor 0.5 xWidth

◆ DefaultPen

GetBoxPenFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::DefaultPen
static

generates a QPen with the lineWidth associated with the QFont of the environment (using QFontMetricsF::lineWidth() )

◆ doubleLine

bool JKQTMathTextBoxInstructionNode::InstructionProperties::doubleLine

draw a double-line

◆ modifier

ModifyEnvironmentFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::modifier

functor that modifies a JKQTMathTextEnvironment

◆ NoBrush

GetBoxBrushFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::NoBrush
static

generates an invisible QBrush

◆ NoModification

ModifyEnvironmentFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::NoModification
static

◆ NoPen

GetBoxPenFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::NoPen
static

generates an invisible pen with 0 width

◆ NParams

size_t JKQTMathTextBoxInstructionNode::InstructionProperties::NParams

number of parameters for this node

◆ paddingFactor

double JKQTMathTextBoxInstructionNode::InstructionProperties::paddingFactor

padding of the box, as a factor to xWidth of the current font

◆ pen

GetBoxPenFunctor JKQTMathTextBoxInstructionNode::InstructionProperties::pen

functor that creates a QPen for the box outline

◆ roundingFactor

double JKQTMathTextBoxInstructionNode::InstructionProperties::roundingFactor

rounding radius (rx=ry) of the box, as a factor to xWidth of the current font


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