Numworks Epsilon  1.4.1
Graphing Calculator Operating System
conjugate_layout.h
Go to the documentation of this file.
1 #ifndef POINCARE_CONJUGATE_LAYOUT_H
2 #define POINCARE_CONJUGATE_LAYOUT_H
3 
4 #include <poincare/expression.h>
6 
7 namespace Poincare {
8 
10 public:
11  ConjugateLayout(ExpressionLayout * operandLayout);
13  ConjugateLayout(const ConjugateLayout& other) = delete;
14  ConjugateLayout(ConjugateLayout&& other) = delete;
15  ConjugateLayout& operator=(const ConjugateLayout& other) = delete;
16  ConjugateLayout& operator=(ConjugateLayout&& 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  constexpr static KDCoordinate k_overlineWidth = 1;
24  constexpr static KDCoordinate k_overlineMargin = 3;
25  ExpressionLayout * m_operandLayout;
26 };
27 
28 }
29 
30 #endif
31 
int16_t KDCoordinate
Definition: coordinate.h:6
void render(KDContext *ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override
KDSize computeSize() override
unsigned short uint16_t
Definition: stdint.h:5
Definition: point.h:6
Definition: size.h:6
KDPoint positionOfChild(ExpressionLayout *child) override
Definition: color.h:6
ConjugateLayout & operator=(const ConjugateLayout &other)=delete
ExpressionLayout * child(uint16_t index) override
ConjugateLayout(ExpressionLayout *operandLayout)