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

#include <nth_root_layout.h>

Inheritance diagram for Poincare::NthRootLayout:
Poincare::ExpressionLayout

Public Member Functions

 NthRootLayout (ExpressionLayout *radicandLayout, ExpressionLayout *indexLayout)
 
 ~NthRootLayout ()
 
 NthRootLayout (const NthRootLayout &other)=delete
 
 NthRootLayout (NthRootLayout &&other)=delete
 
NthRootLayoutoperator= (const NthRootLayout &other)=delete
 
NthRootLayoutoperator= (NthRootLayout &&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_leftRadixHeight = 8
 
static constexpr KDCoordinate k_leftRadixWidth = 5
 

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 nth_root_layout.h.

Constructor & Destructor Documentation

◆ NthRootLayout() [1/3]

Poincare::NthRootLayout::NthRootLayout ( ExpressionLayout radicandLayout,
ExpressionLayout indexLayout 
)

Definition at line 18 of file nth_root_layout.cpp.

◆ ~NthRootLayout()

Poincare::NthRootLayout::~NthRootLayout ( )

Definition at line 33 of file nth_root_layout.cpp.

◆ NthRootLayout() [2/3]

Poincare::NthRootLayout::NthRootLayout ( const NthRootLayout other)
delete

◆ NthRootLayout() [3/3]

Poincare::NthRootLayout::NthRootLayout ( NthRootLayout &&  other)
delete

Member Function Documentation

◆ child()

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

Implements Poincare::ExpressionLayout.

Definition at line 87 of file nth_root_layout.cpp.

◆ computeSize()

KDSize Poincare::NthRootLayout::computeSize ( )
overrideprotectedvirtual

Implements Poincare::ExpressionLayout.

Definition at line 78 of file nth_root_layout.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ positionOfChild()

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

Implements Poincare::ExpressionLayout.

Definition at line 98 of file nth_root_layout.cpp.

◆ render()

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

Implements Poincare::ExpressionLayout.

Definition at line 40 of file nth_root_layout.cpp.

Member Data Documentation

◆ k_leftRadixHeight

constexpr KDCoordinate Poincare::NthRootLayout::k_leftRadixHeight = 8
static

Definition at line 17 of file nth_root_layout.h.

◆ k_leftRadixWidth

constexpr KDCoordinate Poincare::NthRootLayout::k_leftRadixWidth = 5
static

Definition at line 18 of file nth_root_layout.h.


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