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

#include <string_layout.h>

Inheritance diagram for Poincare::StringLayout:
Poincare::ExpressionLayout

Public Member Functions

 StringLayout (const char *string, size_t length, KDText::FontSize fontSize=KDText::FontSize::Large)
 
 ~StringLayout ()
 
 StringLayout (const StringLayout &other)=delete
 
 StringLayout (StringLayout &&other)=delete
 
StringLayoutoperator= (const StringLayout &other)=delete
 
StringLayoutoperator= (StringLayout &&other)=delete
 
char * text ()
 
- 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)
 

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

Constructor & Destructor Documentation

◆ StringLayout() [1/3]

Poincare::StringLayout::StringLayout ( const char *  string,
size_t  length,
KDText::FontSize  fontSize = KDText::FontSize::Large 
)

Definition at line 7 of file string_layout.cpp.

◆ ~StringLayout()

Poincare::StringLayout::~StringLayout ( )

Definition at line 18 of file string_layout.cpp.

◆ StringLayout() [2/3]

Poincare::StringLayout::StringLayout ( const StringLayout other)
delete

◆ StringLayout() [3/3]

Poincare::StringLayout::StringLayout ( StringLayout &&  other)
delete

Member Function Documentation

◆ child()

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

Implements Poincare::ExpressionLayout.

Definition at line 26 of file string_layout.cpp.

◆ computeSize()

KDSize Poincare::StringLayout::computeSize ( )
overrideprotectedvirtual

Implements Poincare::ExpressionLayout.

Definition at line 39 of file string_layout.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ positionOfChild()

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

Implements Poincare::ExpressionLayout.

Definition at line 34 of file string_layout.cpp.

◆ render()

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

Implements Poincare::ExpressionLayout.

Definition at line 30 of file string_layout.cpp.

◆ text()

char * Poincare::StringLayout::text ( )

Definition at line 22 of file string_layout.cpp.


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