Numworks Epsilon  1.4.1
Graphing Calculator Operating System
ExpressionView Class Reference

#include <expression_view.h>

Inheritance diagram for ExpressionView:
View

Public Member Functions

 ExpressionView (float horizontalAlignment=0.0f, float verticalAlignment=0.5f, KDColor textColor=KDColorBlack, KDColor backgroundColor=KDColorWhite)
 
Poincare::ExpressionLayoutexpressionLayout () const
 
void setExpression (Poincare::ExpressionLayout *expressionLayout)
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
void setBackgroundColor (KDColor backgroundColor)
 
void setTextColor (KDColor textColor)
 
void setAlignment (float horizontalAlignment, float verticalAlignment)
 
KDSize minimalSizeForOptimalDisplay () const override
 
- Public Member Functions inherited from View
 View ()
 
virtual ~View ()
 
 View (const View &other)=delete
 
 View (View &&other)=delete
 
Viewoperator= (const View &other)=delete
 
Viewoperator= (View &&other)=delete
 
void resetSuperview ()
 
void setSize (KDSize size)
 
void setFrame (KDRect frame)
 
KDPoint pointFromPointInView (View *view, KDPoint point)
 
KDRect bounds () const
 
Viewsubview (int index)
 

Additional Inherited Members

- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 14 of file expression_view.h.

Constructor & Destructor Documentation

◆ ExpressionView()

ExpressionView::ExpressionView ( float  horizontalAlignment = 0.0f,
float  verticalAlignment = 0.5f,
KDColor  textColor = KDColorBlack,
KDColor  backgroundColor = KDColorWhite 
)

Definition at line 4 of file expression_view.cpp.

Member Function Documentation

◆ drawRect()

void ExpressionView::drawRect ( KDContext ctx,
KDRect  rect 
) const
overridevirtual

Reimplemented from View.

Definition at line 50 of file expression_view.cpp.

◆ expressionLayout()

ExpressionLayout * ExpressionView::expressionLayout ( ) const

Definition at line 14 of file expression_view.cpp.

◆ minimalSizeForOptimalDisplay()

KDSize ExpressionView::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 43 of file expression_view.cpp.

◆ setAlignment()

void ExpressionView::setAlignment ( float  horizontalAlignment,
float  verticalAlignment 
)

Definition at line 37 of file expression_view.cpp.

◆ setBackgroundColor()

void ExpressionView::setBackgroundColor ( KDColor  backgroundColor)

Definition at line 23 of file expression_view.cpp.

◆ setExpression()

void ExpressionView::setExpression ( Poincare::ExpressionLayout expressionLayout)

Definition at line 18 of file expression_view.cpp.

◆ setTextColor()

void ExpressionView::setTextColor ( KDColor  textColor)

Definition at line 30 of file expression_view.cpp.


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