mirror of https://github.com/axmolengine/axmol.git
add constness to UIVideoPlayer
This commit is contained in:
parent
3cda4e76a0
commit
070abfdb44
|
@ -66,10 +66,10 @@ namespace experimental{
|
||||||
virtual void setVisible(bool visible) override;
|
virtual void setVisible(bool visible) override;
|
||||||
|
|
||||||
virtual void setKeepAspectRatioEnabled(bool enable);
|
virtual void setKeepAspectRatioEnabled(bool enable);
|
||||||
virtual bool isKeepAspectRatioEnabled() { return _keepAspectRatioEnabled;}
|
virtual bool isKeepAspectRatioEnabled()const { return _keepAspectRatioEnabled;}
|
||||||
|
|
||||||
virtual void setFullScreenEnabled(bool enabled);
|
virtual void setFullScreenEnabled(bool enabled);
|
||||||
virtual bool isFullScreenEnabled();
|
virtual bool isFullScreenEnabled()const;
|
||||||
|
|
||||||
virtual void addEventListener(const VideoPlayer::ccVideoPlayerCallback& callback);
|
virtual void addEventListener(const VideoPlayer::ccVideoPlayerCallback& callback);
|
||||||
|
|
||||||
|
|
|
@ -242,7 +242,7 @@ void VideoPlayer::setFullScreenEnabled(bool enabled)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VideoPlayer::isFullScreenEnabled()
|
bool VideoPlayer::isFullScreenEnabled()const
|
||||||
{
|
{
|
||||||
return _fullScreenEnabled;
|
return _fullScreenEnabled;
|
||||||
}
|
}
|
||||||
|
|
|
@ -343,7 +343,7 @@ void VideoPlayer::draw(Renderer* renderer, const Mat4 &transform, bool transform
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VideoPlayer::isFullScreenEnabled()
|
bool VideoPlayer::isFullScreenEnabled()const
|
||||||
{
|
{
|
||||||
return [((UIVideoViewWrapperIos*)_videoView) isFullScreenEnabled];
|
return [((UIVideoViewWrapperIos*)_videoView) isFullScreenEnabled];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue