mirror of https://github.com/axmolengine/axmol.git
add constness to UILoadingBar
This commit is contained in:
parent
0518e494b1
commit
78ac4b4d86
|
@ -217,7 +217,7 @@ void LoadingBar::setScale9Enabled(bool enabled)
|
|||
setPercent(_percent);
|
||||
}
|
||||
|
||||
bool LoadingBar::isScale9Enabled()
|
||||
bool LoadingBar::isScale9Enabled()const
|
||||
{
|
||||
return _scale9Enabled;
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ void LoadingBar::setCapInsets(const Rect &capInsets)
|
|||
static_cast<extension::Scale9Sprite*>(_barRenderer)->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& LoadingBar::getCapInsets()
|
||||
const Rect& LoadingBar::getCapInsets()const
|
||||
{
|
||||
return _capInsets;
|
||||
}
|
||||
|
|
|
@ -114,7 +114,7 @@ public:
|
|||
*/
|
||||
void setScale9Enabled(bool enabled);
|
||||
|
||||
bool isScale9Enabled();
|
||||
bool isScale9Enabled()const;
|
||||
|
||||
/**
|
||||
* Sets capinsets for loadingbar, if loadingbar is using scale9 renderer.
|
||||
|
@ -123,7 +123,7 @@ public:
|
|||
*/
|
||||
void setCapInsets(const Rect &capInsets);
|
||||
|
||||
const Rect& getCapInsets();
|
||||
const Rect& getCapInsets()const;
|
||||
|
||||
//override "ignoreContentAdaptWithSize" method of widget.
|
||||
virtual void ignoreContentAdaptWithSize(bool ignore) override;
|
||||
|
|
Loading…
Reference in New Issue