mirror of https://github.com/axmolengine/axmol.git
add constness to UICheckBox
This commit is contained in:
parent
f87e4243ee
commit
eb91aed3f2
|
@ -343,7 +343,7 @@ void CheckBox::setSelectedState(bool selected)
|
||||||
_frontCrossRenderer->setVisible(_isSelected);
|
_frontCrossRenderer->setVisible(_isSelected);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CheckBox::getSelectedState()
|
bool CheckBox::getSelectedState()const
|
||||||
{
|
{
|
||||||
return _isSelected;
|
return _isSelected;
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,7 +170,7 @@ public:
|
||||||
*
|
*
|
||||||
* @return selected true that checkbox is selected, false otherwise.
|
* @return selected true that checkbox is selected, false otherwise.
|
||||||
*/
|
*/
|
||||||
bool getSelectedState();
|
bool getSelectedState()const;
|
||||||
|
|
||||||
//add a call back function would called when checkbox is selected or unselected.
|
//add a call back function would called when checkbox is selected or unselected.
|
||||||
CC_DEPRECATED_ATTRIBUTE void addEventListenerCheckBox(Ref* target,SEL_SelectedStateEvent selector);
|
CC_DEPRECATED_ATTRIBUTE void addEventListenerCheckBox(Ref* target,SEL_SelectedStateEvent selector);
|
||||||
|
|
Loading…
Reference in New Issue