Numworks Epsilon  1.4.1
Graphing Calculator Operating System
TableView Class Reference

#include <table_view.h>

Inheritance diagram for TableView:
ScrollView View SelectableTableView Calculation::CalculationSelectableTableView

Classes

class  ContentView
 

Public Member Functions

 TableView (TableViewDataSource *dataSource, ScrollViewDataSource *scrollDataSource)
 
void setHorizontalCellOverlap (KDCoordinate o)
 
void setVerticalCellOverlap (KDCoordinate o)
 
virtual void scrollToCell (int i, int j)
 
HighlightCellcellAtLocation (int i, int j)
 
void reloadCellAtLocation (int i, int j)
 
KDSize minimalSizeForOptimalDisplay () const override
 
- Public Member Functions inherited from ScrollView
 ScrollView (View *contentView, ScrollViewDataSource *dataSource)
 
void drawRect (KDContext *ctx, KDRect rect) const override
 
void setTopMargin (KDCoordinate m)
 
KDCoordinate topMargin () const
 
void setRightMargin (KDCoordinate m)
 
KDCoordinate rightMargin () const
 
void setBottomMargin (KDCoordinate m)
 
KDCoordinate bottomMargin () const
 
void setLeftMargin (KDCoordinate m)
 
KDCoordinate leftMargin () const
 
void setMargins (KDCoordinate top, KDCoordinate right, KDCoordinate bottom, KDCoordinate left)
 
void setMargins (KDCoordinate m)
 
void setCommonMargins ()
 
void setShowsIndicators (bool s)
 
bool showsIndicators () const
 
void setColorsBackground (bool c)
 
bool colorsBackground () const
 
void setBackgroundColor (KDColor c)
 
KDColor backgroundColor () const
 
ScrollViewIndicatorverticalScrollIndicator ()
 
ScrollViewIndicatorhorizontalScrollIndicator ()
 
void setIndicatorThickness (KDCoordinate t)
 
KDCoordinate indicatorThickness () const
 
void setContentOffset (KDPoint offset, bool forceRelayout=false)
 
KDPoint contentOffset () const
 
void scrollToContentPoint (KDPoint p, bool allowOverscroll=false)
 
void scrollToContentRect (KDRect rect, bool allowOverscroll=false)
 
- 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)
 

Protected Member Functions

TableViewDataSourcedataSource ()
 
void layoutSubviews () override
 
- Protected Member Functions inherited from ScrollView
KDCoordinate maxContentWidthDisplayableWithoutScrolling ()
 
KDCoordinate maxContentHeightDisplayableWithoutScrolling ()
 
KDRect visibleContentRect ()
 
void updateScrollIndicator ()
 
KDSize contentSize ()
 
- Protected Member Functions inherited from View
void markRectAsDirty (KDRect rect)
 

Protected Attributes

ContentView m_contentView
 
- Protected Attributes inherited from ScrollView
Viewm_contentView
 
- Protected Attributes inherited from View
KDRect m_frame
 

Detailed Description

Definition at line 9 of file table_view.h.

Constructor & Destructor Documentation

◆ TableView()

TableView::TableView ( TableViewDataSource dataSource,
ScrollViewDataSource scrollDataSource 
)

Definition at line 10 of file table_view.cpp.

Member Function Documentation

◆ cellAtLocation()

HighlightCell * TableView::cellAtLocation ( int  i,
int  j 
)

Definition at line 30 of file table_view.cpp.

◆ dataSource()

TableViewDataSource * TableView::dataSource ( )
protected

Definition at line 20 of file table_view.cpp.

◆ layoutSubviews()

void TableView::layoutSubviews ( )
overrideprotectedvirtual

Reimplemented from ScrollView.

Definition at line 40 of file table_view.cpp.

◆ minimalSizeForOptimalDisplay()

KDSize TableView::minimalSizeForOptimalDisplay ( ) const
overridevirtual

Reimplemented from View.

Definition at line 16 of file table_view.cpp.

◆ reloadCellAtLocation()

void TableView::reloadCellAtLocation ( int  i,
int  j 
)

Definition at line 49 of file table_view.cpp.

◆ scrollToCell()

void TableView::scrollToCell ( int  i,
int  j 
)
virtual

Reimplemented in Calculation::CalculationSelectableTableView.

Definition at line 26 of file table_view.cpp.

◆ setHorizontalCellOverlap()

void TableView::setHorizontalCellOverlap ( KDCoordinate  o)
inline

Definition at line 13 of file table_view.h.

◆ setVerticalCellOverlap()

void TableView::setVerticalCellOverlap ( KDCoordinate  o)
inline

Definition at line 14 of file table_view.h.

Member Data Documentation

◆ m_contentView

ContentView TableView::m_contentView
protected

Definition at line 73 of file table_view.h.


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