mirror of https://github.com/axmolengine/axmol.git
add constness to UIListView
This commit is contained in:
parent
b17de0cdcb
commit
0518e494b1
|
@ -353,7 +353,7 @@ void ListView::removeAllItems()
|
|||
removeAllChildren();
|
||||
}
|
||||
|
||||
Widget* ListView::getItem(ssize_t index)
|
||||
Widget* ListView::getItem(ssize_t index)const
|
||||
{
|
||||
if (index < 0 || index >= _items.size())
|
||||
{
|
||||
|
@ -396,7 +396,7 @@ void ListView::setItemsMargin(float margin)
|
|||
_refreshViewDirty = true;
|
||||
}
|
||||
|
||||
float ListView::getItemsMargin()
|
||||
float ListView::getItemsMargin()const
|
||||
{
|
||||
return _itemsMargin;
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ public:
|
|||
*
|
||||
* @return the item widget.
|
||||
*/
|
||||
Widget* getItem(ssize_t index);
|
||||
Widget* getItem(ssize_t index)const;
|
||||
|
||||
/**
|
||||
* Returns the item container.
|
||||
|
@ -159,7 +159,7 @@ public:
|
|||
*/
|
||||
void setItemsMargin(float margin);
|
||||
|
||||
float getItemsMargin();
|
||||
float getItemsMargin()const;
|
||||
|
||||
virtual void sortAllChildren() override;
|
||||
virtual void addChild(Node * child) override;
|
||||
|
|
Loading…
Reference in New Issue