mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-04 20:46:29 +03:00
Optimize UITableView and UITreeView by only allocating as many cells as needed to cover the viewport.
This commit is contained in:
@@ -108,6 +108,8 @@ class EE_API Node : public Transformable {
|
||||
|
||||
Node* setVisible( const bool& visible );
|
||||
|
||||
Node* setChildsVisibility( bool visible, bool emitEventNotification = true );
|
||||
|
||||
bool isVisible() const;
|
||||
|
||||
bool isHided() const;
|
||||
|
||||
@@ -183,7 +183,7 @@ class EE_API UIAbstractTableView : public UIAbstractView {
|
||||
virtual UITableRow* updateRow( const int& rowIndex, const ModelIndex& index,
|
||||
const Float& yOffset );
|
||||
|
||||
virtual UIWidget* updateCell( const int& rowIndex, const ModelIndex& index,
|
||||
virtual UIWidget* updateCell( const Vector2<Int64>& posIndex, const ModelIndex& index,
|
||||
const size_t& indentLevel, const Float& yOffset );
|
||||
|
||||
virtual UIWidget* createCell( UIWidget* rowWidget, const ModelIndex& index );
|
||||
|
||||
@@ -144,7 +144,7 @@ class EE_API UITreeView : public UIAbstractTableView {
|
||||
|
||||
virtual void onColumnSizeChange( const size_t& colIndex, bool fromUserInteraction = false );
|
||||
|
||||
virtual UIWidget* updateCell( const int& rowIndex, const ModelIndex& index,
|
||||
virtual UIWidget* updateCell( const Vector2<Int64>& posIndex, const ModelIndex& index,
|
||||
const size_t& indentLevel, const Float& yOffset );
|
||||
|
||||
virtual UIWidget* createCell( UIWidget* rowWidget, const ModelIndex& index );
|
||||
|
||||
Reference in New Issue
Block a user