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

describes the layout of the whole node More...

#include <jkqtmathtextmatrixnode.h>

Inheritance diagram for JKQTMathTextMatrixNode::LayoutInfo:
[legend]
Collaboration diagram for JKQTMathTextMatrixNode::LayoutInfo:
[legend]

Public Member Functions

 LayoutInfo ()
double & getCellwidth (int line, int col)
const double & getCellwidth (int line, int col) const
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 bottomPadding
QVector< QVector< double > > cellwidth
 widths of the cells
QVector< double > colwidth
 widths of the columns
double leftPadding
double rightPadding
QVector< double > rowascent
 ascents of the rows
QVector< double > rowheight
 heights of the rows
double topPadding
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

describes the layout of the whole node

Constructor & Destructor Documentation

◆ LayoutInfo()

JKQTMathTextMatrixNode::LayoutInfo::LayoutInfo ( )

Member Function Documentation

◆ getCellwidth() [1/2]

double & JKQTMathTextMatrixNode::LayoutInfo::getCellwidth ( int line,
int col )
inline

◆ getCellwidth() [2/2]

const double & JKQTMathTextMatrixNode::LayoutInfo::getCellwidth ( int line,
int col ) const
inline

Member Data Documentation

◆ bottomPadding

double JKQTMathTextMatrixNode::LayoutInfo::bottomPadding

◆ cellwidth

QVector<QVector<double> > JKQTMathTextMatrixNode::LayoutInfo::cellwidth

widths of the cells

◆ colwidth

QVector<double> JKQTMathTextMatrixNode::LayoutInfo::colwidth

widths of the columns

◆ leftPadding

double JKQTMathTextMatrixNode::LayoutInfo::leftPadding

◆ rightPadding

double JKQTMathTextMatrixNode::LayoutInfo::rightPadding

◆ rowascent

QVector<double> JKQTMathTextMatrixNode::LayoutInfo::rowascent

ascents of the rows

◆ rowheight

QVector<double> JKQTMathTextMatrixNode::LayoutInfo::rowheight

heights of the rows

◆ topPadding

double JKQTMathTextMatrixNode::LayoutInfo::topPadding

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