Numworks Epsilon  1.4.1
Graphing Calculator Operating System
condensed_sum_layout.h
Go to the documentation of this file.
1 #ifndef POINCARE_CONDENSED_SUM_LAYOUT_H
2 #define POINCARE_CONDENSED_SUM_LAYOUT_H
3 
4 #include <poincare/expression.h>
6 
7 namespace Poincare {
8 
10 public:
11  CondensedSumLayout(ExpressionLayout * baseLayout, ExpressionLayout * subscriptLayout, ExpressionLayout * superscriptLayout = nullptr);
13  CondensedSumLayout(const CondensedSumLayout& other) = delete;
14  CondensedSumLayout(CondensedSumLayout&& other) = delete;
15  CondensedSumLayout& operator=(const CondensedSumLayout& other) = delete;
17 protected:
18  void render(KDContext * ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override;
19  KDSize computeSize() override;
20  ExpressionLayout * child(uint16_t index) override;
22 private:
23  ExpressionLayout * m_baseLayout;
24  ExpressionLayout * m_subscriptLayout;
25  ExpressionLayout * m_superscriptLayout;
26 };
27 
28 }
29 
30 #endif
31 
void render(KDContext *ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override
KDPoint positionOfChild(ExpressionLayout *child) override
unsigned short uint16_t
Definition: stdint.h:5
Definition: point.h:6
Definition: size.h:6
CondensedSumLayout(ExpressionLayout *baseLayout, ExpressionLayout *subscriptLayout, ExpressionLayout *superscriptLayout=nullptr)
Definition: color.h:6
CondensedSumLayout & operator=(const CondensedSumLayout &other)=delete
ExpressionLayout * child(uint16_t index) override