kformula/flake
SquareRootElement Class Reference
Implementation of the MathML msqrt element. More...
#include <SquareRootElement.h>

Public Member Functions | |
| SquareRootElement (BasicElement *parent=0) | |
| ~SquareRootElement () | |
| ElementType | elementType () const |
| void | layout (const AttributeManager *am) |
| void | paint (QPainter &painter, AttributeManager *am) |
Detailed Description
Implementation of the MathML msqrt element.
The msqrt element is not implemented along with mroot element in a single class as it is an inferred row element. That means that it takes any number of child elements whereas mroot only accepts exactly 2 child elements. From a painting and layouting perspective both are very similar except for the lack of a exponent in square root.
Definition at line 37 of file SquareRootElement.h.
Constructor & Destructor Documentation
| SquareRootElement::SquareRootElement | ( | BasicElement * | parent = 0 |
) |
The standard constructor.
Definition at line 26 of file SquareRootElement.cpp.
| SquareRootElement::~SquareRootElement | ( | ) |
The standard destructor.
Definition at line 30 of file SquareRootElement.cpp.
Member Function Documentation
| ElementType SquareRootElement::elementType | ( | ) | const [virtual] |
- Returns:
- The element's ElementType
Reimplemented from RowElement.
Definition at line 80 of file SquareRootElement.cpp.
| void SquareRootElement::layout | ( | const AttributeManager * | am | ) | [virtual] |
Calculate the size of the element and the positions of its children.
- Parameters:
-
am The AttributeManager providing information about attributes values
Reimplemented from RowElement.
Definition at line 44 of file SquareRootElement.cpp.
| void SquareRootElement::paint | ( | QPainter & | painter, | |
| AttributeManager * | am | |||
| ) | [virtual] |
Render the element to the given QPainter.
- Parameters:
-
painter The QPainter to paint the element to
Reimplemented from RowElement.
Definition at line 34 of file SquareRootElement.cpp.
The documentation for this class was generated from the following files:
