Blame view

build3/poincare/src/layout/horizontal_layout.h 932 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  #ifndef POINCARE_HORIZONTAL_LAYOUT_H
  #define POINCARE_HORIZONTAL_LAYOUT_H
  
  #include <poincare/expression.h>
  #include <poincare/expression_layout.h>
  
  namespace Poincare {
  
  class HorizontalLayout : public ExpressionLayout {
  public:
    HorizontalLayout(ExpressionLayout ** layouts, int number_of_children);
    ~HorizontalLayout();
    HorizontalLayout(const HorizontalLayout& other) = delete;
    HorizontalLayout(HorizontalLayout&& other) = delete;
    HorizontalLayout& operator=(const HorizontalLayout& other) = delete;
    HorizontalLayout& operator=(HorizontalLayout&& other) = delete;
  protected:
    void render(KDContext * ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override;
    KDSize computeSize() override;
    ExpressionLayout * child(uint16_t index) override;
    KDPoint positionOfChild(ExpressionLayout * child) override;
  private:
    int m_number_of_children;
    ExpressionLayout ** m_children_layouts;
  };
  
  }
  
  #endif