mirror of https://github.com/axmolengine/axmol.git
add constness to UIImageView
This commit is contained in:
parent
eb91aed3f2
commit
3cda4e76a0
|
@ -230,7 +230,7 @@ void ImageView::setScale9Enabled(bool able)
|
|||
setCapInsets(_capInsets);
|
||||
}
|
||||
|
||||
bool ImageView::isScale9Enabled()
|
||||
bool ImageView::isScale9Enabled()const
|
||||
{
|
||||
return _scale9Enabled;
|
||||
}
|
||||
|
@ -254,7 +254,7 @@ void ImageView::setCapInsets(const Rect &capInsets)
|
|||
STATIC_CAST_SCALE9SPRITE->setCapInsets(capInsets);
|
||||
}
|
||||
|
||||
const Rect& ImageView::getCapInsets()
|
||||
const Rect& ImageView::getCapInsets()const
|
||||
{
|
||||
return _capInsets;
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ public:
|
|||
*/
|
||||
void setScale9Enabled(bool able);
|
||||
|
||||
bool isScale9Enabled();
|
||||
bool isScale9Enabled()const;
|
||||
|
||||
/**
|
||||
* Sets capinsets for imageview, if imageview is using scale9 renderer.
|
||||
|
@ -97,7 +97,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