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

defines the size of the node (JKQTMathTextNodeSize) and additional information
More...

#include <jkqtmathtextbracenode.h>

Inheritance diagram for JKQTMathTextBraceNode::NodeSize:
[legend]
Collaboration diagram for JKQTMathTextBraceNode::NodeSize:
[legend]

Public Member Functions

 NodeSize ()
 
 NodeSize (const JKQTMathTextNodeSize &other)
 
 NodeSize (const NodeSize &other)
 
NodeSizeoperator= (const JKQTMathTextNodeSize &other)
 
NodeSizeoperator= (const NodeSize &other)
 
- Public Member Functions inherited from JKQTMathTextNodeSize
 JKQTMathTextNodeSize (double width=0, double baselineHeight=0, double overallHeight=0, double strikeoutPos=0, double baselineXCorrection=0, double topXCorrection=0)
 
double getAscent () const
 calculate the ascent (=baselineHeight), for convenience and naming
 
double getDescent () const
 calculate the descent (overallHeight-baselineHeight)
 
double getHeight () const
 calculate the height (=baselineHeight), for convenience and naming
 
QSize getIntSize () const
 calculate the overall size in floating-point precision
 
QSizeF getSize () const
 calculate the overall size in floating-point precision
 
JKQTMathTextNodeSize sliceToNodeSize () const
 helper function, which generates a copy of this object, used to suppress slicing warning due to GSL E.63: https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-slice
 

Public Attributes

double closeBraceHeight
 height of the closing brace
 
double closeBraceWidth
 width of the closing brace
 
double openBraceHeight
 height of the opening brace
 
double openBraceWidth
 width of the opening brace
 
- Public Attributes inherited from JKQTMathTextNodeSize
double baselineHeight
 baselineHeight of whole block, i.e. the ascent
 
double baselineXCorrection
 x-correction (<0 = move to the left) for subscripts, i.e. approximately at the height of the baseline
 
double overallHeight
 overallHeight of whole block
 
double strikeoutPos
 strikeoutPos of whole block, i.e. distance of the strikeout position from the baseline
 
double topXCorrection
 x-correction (>0 = move to the right) for superscripts, i.e. approximately at the top of the box
 
double width
 width of whole block
 

Detailed Description

defines the size of the node (JKQTMathTextNodeSize) and additional information

Constructor & Destructor Documentation

◆ NodeSize() [1/3]

JKQTMathTextBraceNode::NodeSize::NodeSize ( )

◆ NodeSize() [2/3]

JKQTMathTextBraceNode::NodeSize::NodeSize ( const NodeSize other)

◆ NodeSize() [3/3]

JKQTMathTextBraceNode::NodeSize::NodeSize ( const JKQTMathTextNodeSize other)

Member Function Documentation

◆ operator=() [1/2]

NodeSize & JKQTMathTextBraceNode::NodeSize::operator= ( const JKQTMathTextNodeSize other)

◆ operator=() [2/2]

NodeSize & JKQTMathTextBraceNode::NodeSize::operator= ( const NodeSize other)

Member Data Documentation

◆ closeBraceHeight

double JKQTMathTextBraceNode::NodeSize::closeBraceHeight

height of the closing brace

◆ closeBraceWidth

double JKQTMathTextBraceNode::NodeSize::closeBraceWidth

width of the closing brace

◆ openBraceHeight

double JKQTMathTextBraceNode::NodeSize::openBraceHeight

height of the opening brace

◆ openBraceWidth

double JKQTMathTextBraceNode::NodeSize::openBraceWidth

width of the opening brace


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