Blame view

build1/epsilon-master/poincare/src/layout/square_bracket_layout.h 615 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
  #ifndef POINCARE_SQUARE_BRACKET_LAYOUT_H
  #define POINCARE_SQUARE_BRACKET_LAYOUT_H
  
  #include "bracket_layout.h"
  
  namespace Poincare {
  
  class SquareBracketLayout : public BracketLayout {
  public:
    using BracketLayout::BracketLayout;
  protected:
    constexpr static KDCoordinate k_bracketWidth = 5;
    constexpr static KDCoordinate k_lineThickness = 1;
    constexpr static KDCoordinate k_widthMargin = 5;
    constexpr static KDCoordinate k_externWidthMargin = 2;
    KDSize computeSize() override {
      return KDSize(k_externWidthMargin + k_lineThickness + k_widthMargin, operandHeight() + k_lineThickness);
    }
  };
  }
  
  #endif