24#ifndef JKQTMATHTEXTSQRTNODE_H
25#define JKQTMATHTEXTSQRTNODE_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 a node in the syntax tree, that has two children
Definition jkqtmathtextnode.h:202
subclass representing one node in the syntax tree
Definition jkqtmathtextnode.h:37
subclass representing a sqrt node
Definition jkqtmathtextsqrtnode.h:43
virtual const JKQTMathTextNode * getChild(int i) const override
returns the i-th child node
virtual QString getTypeName() const override
return the name of this class as a string
virtual bool toHtml(QString &html, JKQTMathTextEnvironment currentEv, JKQTMathTextEnvironment defaultEv) const override
convert node to HTML and returns true on success
JKQTMathTextNode * getChildDegree()
second child node for the degree of the root (or nullptr if nothing)
JKQTMathTextSqrtNode(JKQTMathText *parent, JKQTMathTextNode *child__, JKQTMathTextNode *childDegree__=nullptr)
JKQTMathTextNode * child
child node for the part under the root
Definition jkqtmathtextsqrtnode.h:80
const JKQTMathTextNode * getChild() const
child node for the part under the root
virtual void clearChildren(bool deleteChildren=true) override
returns the i-th child node
virtual double draw(QPainter &painter, double x, double y, JKQTMathTextEnvironment currentEv) const override
draw the contents at the designated position
virtual JKQTMathTextNode * getChild(int i) override
returns the i-th child node
virtual JKQTMathTextNode * replaceChild(int i, JKQTMathTextNode *newChild) override
returns the i-th child node
JKQTMathTextNode * childDegree
second child node for the degree of the root (or nullptr if nothing)
Definition jkqtmathtextsqrtnode.h:82
virtual JKQTMathTextNodeSize getSizeInternal(QPainter &painter, JKQTMathTextEnvironment currentEv) const override
determine the size of the node, overwrite this function in derived classes
const JKQTMathTextNode * getChildDegree() const
second child node for the degree of the root (or nullptr if nothing)
virtual ~JKQTMathTextSqrtNode() override
virtual void deleteChild(int i) override
delete the i-th child
JKQTMathTextNode * getChild()
child node for the part under the root
virtual int childCount() const override
returns the i-th child node
#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