mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 16:20:49 +01:00
16 lines
609 B
C++
16 lines
609 B
C++
#include "left_bracket_layout.h"
|
|
|
|
namespace Poincare {
|
|
|
|
ExpressionLayout * LeftBracketLayout::clone() const {
|
|
return new LeftBracketLayout();
|
|
}
|
|
|
|
void LeftBracketLayout::render(KDContext * ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) {
|
|
ctx->fillRect(KDRect(p.x()+k_externWidthMargin, p.y(), k_lineThickness, operandHeight()), expressionColor);
|
|
ctx->fillRect(KDRect(p.x()+k_externWidthMargin, p.y(), k_bracketWidth, k_lineThickness), expressionColor);
|
|
ctx->fillRect(KDRect(p.x()+k_externWidthMargin, p.y() + operandHeight(), k_bracketWidth, k_lineThickness), expressionColor);
|
|
}
|
|
|
|
}
|