24#ifndef JKQTMATHTEXTSUBSUPERSCRIPTNODE_H
25#define JKQTMATHTEXTSUBSUPERSCRIPTNODE_H
26#include "jkqtmathtext/jkqtmathtext_imexport.h"
27#include "jkqtmathtext/jkqtmathtexttools.h"
28#include "jkqtmathtext/nodes/jkqtmathtextnode.h"
this class parses a mathematical markup string and can then draw the contained text/equation onto a Q...
Definition jkqtmathtext.h:192
subclass representing one node in the syntax tree
Definition jkqtmathtextnode.h:37
subclass representing a node in the syntax tree, that has one child
Definition jkqtmathtextnode.h:174
subclass representing an subscript node with exactly one argument in the syntax tree
Definition jkqtmathtextsubsupernode.h:40
virtual bool toHtml(QString &html, JKQTMathTextEnvironment currentEv, JKQTMathTextEnvironment defaultEv) const override
returns the child node
virtual QString getTypeName() const override
return the name of this class as a string
virtual double draw(QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv) const override
draw the contents at the designated position
JKQTMathTextSubscriptNode(JKQTMathText *parent, JKQTMathTextNode *child)
virtual JKQTMathTextNodeSize getSizeInternal(QPainter &painter, JKQTMathTextEnvironment currentEv) const override
determine the size of the node, overwrite this function in derived classes
JKQTMathTextNodeSize getSizeWithSpecialPlacement(QPainter &painter, JKQTMathTextEnvironment currentEv, const JKQTMathTextNodeSize *prevNodeSizeForSpecialPlacement) const
like getSize(), i.e. determine the size of the node, but cares for subscript with special placement r...
double drawWithSpecialPlacement(QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv, const JKQTMathTextNodeSize *prevNodeSizeForSpecialPlacement) const
like draw(), i.e. draws the node, but allows to draw the subscript with special placement rules after...
virtual ~JKQTMathTextSubscriptNode() override
subclass representing an superscript node with exactly one argument in the syntax tree
Definition jkqtmathtextsubsupernode.h:85
JKQTMathTextSuperscriptNode(JKQTMathText *parent, JKQTMathTextNode *child)
virtual JKQTMathTextNodeSize getSizeInternal(QPainter &painter, JKQTMathTextEnvironment currentEv) const override
determine the size of the node, overwrite this function in derived classes
double drawWithSpecialPlacement(QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv, const JKQTMathTextNodeSize *prevNodeSizeForSpecialPlacement) const
like draw(), but allows to draw the superscript with special placement rules after large blocks (e....
virtual bool toHtml(QString &html, JKQTMathTextEnvironment currentEv, JKQTMathTextEnvironment defaultEv) const override
convert node to HTML and returns true on success
virtual QString getTypeName() const override
return the name of this class as a string
virtual ~JKQTMathTextSuperscriptNode() override
virtual double draw(QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv) const override
draw the contents at the designated position
JKQTMathTextNodeSize getSizeWithSpecialPlacement(QPainter &painter, JKQTMathTextEnvironment currentEv, const JKQTMathTextNodeSize *prevNodeSizeForSpecialPlacement) const
like getSize(), i.e. determine the size of the node, but cares for superscript with special placement...
#define JKQTMATHTEXT_LIB_EXPORT
Definition jkqtmathtext_imexport.h:108
describes the current drawing environment (base fontname ...)
Definition jkqtmathtexttools.h:304
beschreibt die Größe(n) eines Knotens
Definition jkqtmathtexttools.h:393