Numworks Epsilon  1.4.1
Graphing Calculator Operating System
TableCell Class Reference

#include <table_cell.h>

Inheritance diagram for TableCell:
HighlightCell View Code::ScriptNodeCell ExpressionTableCell MessageTableCell ExpressionTableCellWithPointer MessageTableCellWithBuffer MessageTableCellWithChevron MessageTableCellWithEditableText MessageTableCellWithGauge MessageTableCellWithMessage MessageTableCellWithSwitch MessageTableCellWithChevronAndExpression MessageTableCellWithChevronAndMessage

Public Types

enum  Layout { Layout::Vertical, Layout::Horizontal }
 

Public Member Functions

 TableCell (Layout layout=Layout::Horizontal)
 
virtual ViewlabelView () const
 
virtual ViewaccessoryView () const
 
virtual ViewsubAccessoryView () const
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
- Public Member Functions inherited from HighlightCell
 HighlightCell ()
 
virtual void setHighlighted (bool highlight)
 
bool isHighlighted () const
 
virtual void reloadCell ()
 
virtual Responderresponder ()
 
- 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)
 
virtual KDSize minimalSizeForOptimalDisplay () const
 

Protected Member Functions

int numberOfSubviews () const override
 
ViewsubviewAtIndex (int index) override
 
void layoutSubviews () override
 
- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 

Static Protected Attributes

static constexpr KDCoordinate k_separatorThickness = 1
 
static constexpr KDCoordinate k_labelMargin = 10
 
static constexpr KDCoordinate k_accessoryMargin = 10
 

Additional Inherited Members

- Protected Attributes inherited from HighlightCell
bool m_highlighted
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 6 of file table_cell.h.

Member Enumeration Documentation

◆ Layout

enum TableCell::Layout
strong
Enumerator
Vertical 
Horizontal 

Definition at line 8 of file table_cell.h.

Constructor & Destructor Documentation

◆ TableCell()

TableCell::TableCell ( Layout  layout = Layout::Horizontal)

Definition at line 5 of file table_cell.cpp.

Member Function Documentation

◆ accessoryView()

◆ drawRect()

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

Reimplemented from View.

Definition at line 75 of file table_cell.cpp.

◆ labelView()

View * TableCell::labelView ( ) const
virtual

Reimplemented in Code::ScriptNodeCell, MessageTableCell, and ExpressionTableCell.

Definition at line 11 of file table_cell.cpp.

◆ layoutSubviews()

void TableCell::layoutSubviews ( )
overrideprotectedvirtual

Reimplemented from View.

Definition at line 37 of file table_cell.cpp.

◆ numberOfSubviews()

int TableCell::numberOfSubviews ( ) const
overrideprotectedvirtual

Reimplemented from View.

Definition at line 23 of file table_cell.cpp.

◆ subAccessoryView()

View * TableCell::subAccessoryView ( ) const
virtual

◆ subviewAtIndex()

View * TableCell::subviewAtIndex ( int  index)
overrideprotectedvirtual

Reimplemented from View.

Definition at line 27 of file table_cell.cpp.

Member Data Documentation

◆ k_accessoryMargin

constexpr KDCoordinate TableCell::k_accessoryMargin = 10
staticprotected

Definition at line 23 of file table_cell.h.

◆ k_labelMargin

constexpr KDCoordinate TableCell::k_labelMargin = 10
staticprotected

Definition at line 22 of file table_cell.h.

◆ k_separatorThickness

constexpr KDCoordinate TableCell::k_separatorThickness = 1
staticprotected

Definition at line 21 of file table_cell.h.


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