add constness to UIImageView

This commit is contained in:
andyque 2014-05-27 11:09:55 +08:00
parent eb91aed3f2
commit 3cda4e76a0
2 changed files with 4 additions and 4 deletions

View File

@ -230,7 +230,7 @@ void ImageView::setScale9Enabled(bool able)
setCapInsets(_capInsets); setCapInsets(_capInsets);
} }
bool ImageView::isScale9Enabled() bool ImageView::isScale9Enabled()const
{ {
return _scale9Enabled; return _scale9Enabled;
} }
@ -254,7 +254,7 @@ void ImageView::setCapInsets(const Rect &capInsets)
STATIC_CAST_SCALE9SPRITE->setCapInsets(capInsets); STATIC_CAST_SCALE9SPRITE->setCapInsets(capInsets);
} }
const Rect& ImageView::getCapInsets() const Rect& ImageView::getCapInsets()const
{ {
return _capInsets; return _capInsets;
} }

View File

@ -88,7 +88,7 @@ public:
*/ */
void setScale9Enabled(bool able); void setScale9Enabled(bool able);
bool isScale9Enabled(); bool isScale9Enabled()const;
/** /**
* Sets capinsets for imageview, if imageview is using scale9 renderer. * Sets capinsets for imageview, if imageview is using scale9 renderer.
@ -97,7 +97,7 @@ public:
*/ */
void setCapInsets(const Rect &capInsets); void setCapInsets(const Rect &capInsets);
const Rect& getCapInsets(); const Rect& getCapInsets()const;
//override "ignoreContentAdaptWithSize" method of widget. //override "ignoreContentAdaptWithSize" method of widget.
virtual void ignoreContentAdaptWithSize(bool ignore) override; virtual void ignoreContentAdaptWithSize(bool ignore) override;