mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
22 lines
629 B
C++
22 lines
629 B
C++
#ifndef POINCARE_FRACTION_LAYOUT_H
|
|
#define POINCARE_FRACTION_LAYOUT_H
|
|
|
|
#include <poincare/expression.h>
|
|
#include <poincare/expression_layout.h>
|
|
|
|
class FractionLayout : public ExpressionLayout {
|
|
public:
|
|
FractionLayout(ExpressionLayout * parent, Expression * numerator, Expression * denominator);
|
|
~FractionLayout();
|
|
protected:
|
|
void render(KDPoint origin) override;
|
|
KDSize computeSize() override;
|
|
ExpressionLayout * child(uint16_t index) override;
|
|
KDPoint positionOfChild(ExpressionLayout * child) override;
|
|
private:
|
|
ExpressionLayout * m_numerator;
|
|
ExpressionLayout * m_denominator;
|
|
};
|
|
|
|
#endif
|