Numworks Epsilon  1.4.1
Graphing Calculator Operating System
nth_root_layout.h
Go to the documentation of this file.
1 #ifndef POINCARE_NTH_ROOT_LAYOUT_H
2 #define POINCARE_NTH_ROOT_LAYOUT_H
3 
4 #include <poincare/expression.h>
6 
7 namespace Poincare {
8 
10 public:
11  NthRootLayout(ExpressionLayout * radicandLayout, ExpressionLayout * indexLayout);
13  NthRootLayout(const NthRootLayout& other) = delete;
14  NthRootLayout(NthRootLayout&& other) = delete;
15  NthRootLayout& operator=(const NthRootLayout& other) = delete;
16  NthRootLayout& operator=(NthRootLayout&& other) = delete;
17  constexpr static KDCoordinate k_leftRadixHeight = 8;
18  constexpr static KDCoordinate k_leftRadixWidth = 5;
19 protected:
20  void render(KDContext * ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override;
21  KDSize computeSize() override;
22  ExpressionLayout * child(uint16_t index) override;
24 private:
25  constexpr static KDCoordinate k_rightRadixHeight = 2;
26  constexpr static KDCoordinate k_indexHeight = 5;
27  constexpr static KDCoordinate k_heightMargin = 2;
28  constexpr static KDCoordinate k_widthMargin = 1;
29  constexpr static KDCoordinate k_radixLineThickness = 1;
30  ExpressionLayout * m_radicandLayout;
31  ExpressionLayout * m_indexLayout;
32 };
33 
34 }
35 
36 #endif
NthRootLayout & operator=(const NthRootLayout &other)=delete
void render(KDContext *ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override
ExpressionLayout * child(uint16_t index) override
NthRootLayout(ExpressionLayout *radicandLayout, ExpressionLayout *indexLayout)
int16_t KDCoordinate
Definition: coordinate.h:6
unsigned short uint16_t
Definition: stdint.h:5
Definition: point.h:6
Definition: size.h:6
static constexpr KDCoordinate k_leftRadixWidth
KDPoint positionOfChild(ExpressionLayout *child) override
Definition: color.h:6
static constexpr KDCoordinate k_leftRadixHeight
KDSize computeSize() override