add constness to UIVideoPlayer

This commit is contained in:
andyque 2014-05-27 11:17:13 +08:00
parent 3cda4e76a0
commit 070abfdb44
3 changed files with 4 additions and 4 deletions

View File

@ -66,10 +66,10 @@ namespace experimental{
virtual void setVisible(bool visible) override;
virtual void setKeepAspectRatioEnabled(bool enable);
virtual bool isKeepAspectRatioEnabled() { return _keepAspectRatioEnabled;}
virtual bool isKeepAspectRatioEnabled()const { return _keepAspectRatioEnabled;}
virtual void setFullScreenEnabled(bool enabled);
virtual bool isFullScreenEnabled();
virtual bool isFullScreenEnabled()const;
virtual void addEventListener(const VideoPlayer::ccVideoPlayerCallback& callback);

View File

@ -242,7 +242,7 @@ void VideoPlayer::setFullScreenEnabled(bool enabled)
}
}
bool VideoPlayer::isFullScreenEnabled()
bool VideoPlayer::isFullScreenEnabled()const
{
return _fullScreenEnabled;
}

View File

@ -343,7 +343,7 @@ void VideoPlayer::draw(Renderer* renderer, const Mat4 &transform, bool transform
#endif
}
bool VideoPlayer::isFullScreenEnabled()
bool VideoPlayer::isFullScreenEnabled()const
{
return [((UIVideoViewWrapperIos*)_videoView) isFullScreenEnabled];
}