Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Poincare::ParenthesisLayout Class Reference

#include <parenthesis_layout.h>

Inheritance diagram for Poincare::ParenthesisLayout:
Poincare::ExpressionLayout

Public Member Functions

 ParenthesisLayout (ExpressionLayout *operandLayout)
 
 ~ParenthesisLayout ()
 
 ParenthesisLayout (const ParenthesisLayout &other)=delete
 
 ParenthesisLayout (ParenthesisLayout &&other)=delete
 
ParenthesisLayoutoperator= (const ParenthesisLayout &other)=delete
 
ParenthesisLayoutoperator= (ParenthesisLayout &&other)=delete
 
- Public Member Functions inherited from Poincare::ExpressionLayout
 ExpressionLayout ()
 
virtual ~ExpressionLayout ()=default
 
void draw (KDContext *ctx, KDPoint p, KDColor expressionColor=KDColorBlack, KDColor backgroundColor=KDColorWhite)
 
KDPoint origin ()
 
KDSize size ()
 
KDCoordinate baseline ()
 
void setParent (ExpressionLayout *parent)
 

Static Public Attributes

static constexpr KDCoordinate k_parenthesisCurveWidth = 5
 
static constexpr KDCoordinate k_parenthesisCurveHeight = 7
 

Protected Member Functions

void render (KDContext *ctx, KDPoint p, KDColor expressionColor, KDColor backgroundColor) override
 
KDSize computeSize () override
 
ExpressionLayoutchild (uint16_t index) override
 
KDPoint positionOfChild (ExpressionLayout *child) override
 

Additional Inherited Members

- Protected Attributes inherited from Poincare::ExpressionLayout
KDCoordinate m_baseline
 

Detailed Description

Definition at line 9 of file parenthesis_layout.h.

Constructor & Destructor Documentation

◆ ParenthesisLayout() [1/3]

Poincare::ParenthesisLayout::ParenthesisLayout ( ExpressionLayout operandLayout)

Definition at line 52 of file parenthesis_layout.cpp.

◆ ~ParenthesisLayout()

Poincare::ParenthesisLayout::~ParenthesisLayout ( )

Definition at line 64 of file parenthesis_layout.cpp.

◆ ParenthesisLayout() [2/3]

Poincare::ParenthesisLayout::ParenthesisLayout ( const ParenthesisLayout other)
delete

◆ ParenthesisLayout() [3/3]

Poincare::ParenthesisLayout::ParenthesisLayout ( ParenthesisLayout &&  other)
delete

Member Function Documentation

◆ child()

ExpressionLayout * Poincare::ParenthesisLayout::child ( uint16_t  index)
overrideprotectedvirtual

Implements Poincare::ExpressionLayout.

Definition at line 93 of file parenthesis_layout.cpp.

◆ computeSize()

KDSize Poincare::ParenthesisLayout::computeSize ( )
overrideprotectedvirtual

Implements Poincare::ExpressionLayout.

Definition at line 89 of file parenthesis_layout.cpp.

◆ operator=() [1/2]

ParenthesisLayout& Poincare::ParenthesisLayout::operator= ( const ParenthesisLayout other)
delete

◆ operator=() [2/2]

ParenthesisLayout& Poincare::ParenthesisLayout::operator= ( ParenthesisLayout &&  other)
delete

◆ positionOfChild()

KDPoint Poincare::ParenthesisLayout::positionOfChild ( ExpressionLayout child)
overrideprotectedvirtual

Implements Poincare::ExpressionLayout.

Definition at line 100 of file parenthesis_layout.cpp.

◆ render()

void Poincare::ParenthesisLayout::render ( KDContext ctx,
KDPoint  p,
KDColor  expressionColor,
KDColor  backgroundColor 
)
overrideprotectedvirtual

Implements Poincare::ExpressionLayout.

Definition at line 72 of file parenthesis_layout.cpp.

Member Data Documentation

◆ k_parenthesisCurveHeight

constexpr KDCoordinate Poincare::ParenthesisLayout::k_parenthesisCurveHeight = 7
static

Definition at line 18 of file parenthesis_layout.h.

◆ k_parenthesisCurveWidth

constexpr KDCoordinate Poincare::ParenthesisLayout::k_parenthesisCurveWidth = 5
static

Definition at line 17 of file parenthesis_layout.h.


The documentation for this class was generated from the following files: