Class for a generic scrollable list of items like the level list in GD
Class ListView
#include <Geode/ui/ListView.hpp>
classListView:publicCustomListView{ ... }
Examples0
Public static methods1
staticgeode::ListView*create(cocos2d::CCArray*items,floatitemHeight,floatwidth,floatheight)
Create a generic scrollable list of items
items
Nodes to add as children
itemHeight
Height of each child
width
Width of the list
height
Height of the list
The created ListView, or nullptr on error
Public member functions4
voidsetPrimaryCellColor(cocos2d::ccColor3Bcolor)
No description provided
voidsetSecondaryCellColor(cocos2d::ccColor3Bcolor)
No description provided
voidsetCellBorderColor(cocos2d::ccColor4Bcolor)
No description provided
Fields0
Protected member functions4
virtualTableViewCell*getListCell(charconst*key)
No description provided
virtualvoidloadCell(TableViewCell*cell,intindex)
No description provided
voidupdateAllCells()
No description provided
Protected fields4
cocos2d::ccColor3Bm_primaryCellColor;
No description provided
cocos2d::ccColor3Bm_secondaryCellColor;
No description provided
GLubytem_cellOpacity;
No description provided
cocos2d::ccColor4Bm_cellBorderColor;
No description provided