Numworks Epsilon  1.4.1
Graphing Calculator Operating System
horizontal_layout.h
Go to the documentation of this file.
1 #ifndef POINCARE_HORIZONTAL_LAYOUT_H
2 #define POINCARE_HORIZONTAL_LAYOUT_H
3 
4 #include <poincare/expression.h>
6 
7 namespace Poincare {
8 
10 public:
11  HorizontalLayout(ExpressionLayout ** layouts, int number_of_children);
13  HorizontalLayout(const HorizontalLayout& other) = delete;
14  HorizontalLayout(HorizontalLayout&& other) = delete;
15  HorizontalLayout& operator=(const HorizontalLayout& other) = delete;
16  HorizontalLayout& operator=(HorizontalLayout&& 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  int m_number_of_children;
24  ExpressionLayout ** m_children_layouts;
25 };
26 
27 }
28 
29 #endif
unsigned short uint16_t
Definition: stdint.h:5
Definition: point.h:6
Definition: size.h:6
HorizontalLayout(ExpressionLayout **layouts, int number_of_children)
void render(KDContext *ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override
HorizontalLayout & operator=(const HorizontalLayout &other)=delete
Definition: color.h:6
ExpressionLayout * child(uint16_t index) override
KDPoint positionOfChild(ExpressionLayout *child) override