Blame view

Modif/epsilon-master/poincare/src/layout/bracket_layout.h 740 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
  #ifndef POINCARE_BRACKET_LAYOUT_H
  #define POINCARE_BRACKET_LAYOUT_H
  
  #include <poincare/static_layout_hierarchy.h>
  
  namespace Poincare {
  
  class BracketLayout : public StaticLayoutHierarchy<0> {
  public:
    BracketLayout();
    void invalidAllSizesPositionsAndBaselines() override;
    ExpressionLayoutCursor cursorLeftOf(ExpressionLayoutCursor cursor, bool * shouldRecomputeLayout) override;
    ExpressionLayoutCursor cursorRightOf(ExpressionLayoutCursor cursor, bool * shouldRecomputeLayout) override;
  protected:
    void computeBaseline() override;
    KDCoordinate operandHeight();
    void computeOperandHeight();
    KDPoint positionOfChild(ExpressionLayout * child) override;
    bool m_operandHeightComputed;
    uint16_t m_operandHeight;
  };
  }
  
  #endif