mirror of https://github.com/axmolengine/axmol.git
change return const value to value
This commit is contained in:
parent
c81cfc1ecf
commit
294271682b
|
@ -465,7 +465,7 @@ void Button::adaptRenderers()
|
|||
}
|
||||
}
|
||||
|
||||
const Size Button::getVirtualRendererSize() const
|
||||
Size Button::getVirtualRendererSize() const
|
||||
{
|
||||
Size titleSize = _titleRenderer->getContentSize();
|
||||
if (!_normalTextureLoaded && _titleRenderer->getString().size() > 0) {
|
||||
|
|
|
@ -170,7 +170,7 @@ public:
|
|||
virtual void ignoreContentAdaptWithSize(bool ignore) override;
|
||||
|
||||
//override "getVirtualRendererSize" method of widget.
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
|
||||
//override "getVirtualRenderer" method of widget.
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
|
|
|
@ -450,7 +450,7 @@ void CheckBox::adaptRenderers()
|
|||
}
|
||||
}
|
||||
|
||||
const Size CheckBox::getVirtualRendererSize() const
|
||||
Size CheckBox::getVirtualRendererSize() const
|
||||
{
|
||||
return _backGroundBoxRenderer->getContentSize();
|
||||
}
|
||||
|
|
|
@ -184,7 +184,7 @@ public:
|
|||
|
||||
|
||||
//override "getVirtualRendererSize" method of widget.
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
|
||||
//override "getVirtualRenderer" method of widget.
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
|
|
|
@ -238,7 +238,7 @@ void ImageView::adaptRenderers()
|
|||
}
|
||||
}
|
||||
|
||||
const Size ImageView::getVirtualRendererSize() const
|
||||
Size ImageView::getVirtualRendererSize() const
|
||||
{
|
||||
return _imageTextureSize;
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@ public:
|
|||
*/
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
|
||||
CC_CONSTRUCTOR_ACCESS:
|
||||
|
|
|
@ -265,7 +265,7 @@ void LoadingBar::ignoreContentAdaptWithSize(bool ignore)
|
|||
}
|
||||
}
|
||||
|
||||
const Size LoadingBar::getVirtualRendererSize() const
|
||||
Size LoadingBar::getVirtualRendererSize() const
|
||||
{
|
||||
return _barRendererTextureSize;
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ public:
|
|||
virtual void ignoreContentAdaptWithSize(bool ignore) override;
|
||||
|
||||
//override "getVirtualRendererSize" method of widget.
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
|
||||
//override "getVirtualRenderer" method of widget.
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
|
|
|
@ -451,7 +451,7 @@ void RichText::setAnchorPoint(const Vec2 &pt)
|
|||
_elementRenderersContainer->setAnchorPoint(pt);
|
||||
}
|
||||
|
||||
const Size RichText::getVirtualRendererSize() const
|
||||
Size RichText::getVirtualRendererSize() const
|
||||
{
|
||||
return _elementRenderersContainer->getContentSize();
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ public:
|
|||
|
||||
void setVerticalSpace(float space);
|
||||
virtual void setAnchorPoint(const Vec2 &pt);
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
void formatText();
|
||||
virtual void ignoreContentAdaptWithSize(bool ignore);
|
||||
virtual std::string getDescription() const override;
|
||||
|
|
|
@ -449,7 +449,7 @@ void Slider::adaptRenderers()
|
|||
}
|
||||
}
|
||||
|
||||
const Size Slider::getVirtualRendererSize() const
|
||||
Size Slider::getVirtualRendererSize() const
|
||||
{
|
||||
return _barRenderer->getContentSize();
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ public:
|
|||
virtual void onTouchCancelled(Touch *touch, Event *unusedEvent) override;
|
||||
|
||||
//override "getVirtualRendererSize" method of widget.
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
|
||||
//override "getVirtualRenderer" method of widget.
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
|
|
|
@ -292,7 +292,7 @@ void Text::adaptRenderers()
|
|||
}
|
||||
}
|
||||
|
||||
const Size Text::getVirtualRendererSize() const
|
||||
Size Text::getVirtualRendererSize() const
|
||||
{
|
||||
return _labelRenderer->getContentSize();
|
||||
}
|
||||
|
|
|
@ -139,7 +139,7 @@ public:
|
|||
bool isTouchScaleChangeEnabled()const;
|
||||
|
||||
//override "getVirtualRendererSize" method of widget.
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
|
||||
//override "getVirtualRenderer" method of widget.
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
|
|
|
@ -135,7 +135,7 @@ void TextAtlas::adaptRenderers()
|
|||
}
|
||||
}
|
||||
|
||||
const Size TextAtlas::getVirtualRendererSize() const
|
||||
Size TextAtlas::getVirtualRendererSize() const
|
||||
{
|
||||
return _labelAtlasRenderer->getContentSize();
|
||||
}
|
||||
|
|
|
@ -93,7 +93,7 @@ public:
|
|||
ssize_t getStringLength()const;
|
||||
|
||||
//override "getVirtualRendererSize" method of widget.
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
|
||||
//override "getVirtualRenderer" method of widget.
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
|
|
|
@ -129,7 +129,7 @@ void TextBMFont::adaptRenderers()
|
|||
}
|
||||
}
|
||||
|
||||
const Size TextBMFont::getVirtualRendererSize() const
|
||||
Size TextBMFont::getVirtualRendererSize() const
|
||||
{
|
||||
return _labelBMFontRenderer->getContentSize();
|
||||
}
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
*/
|
||||
ssize_t getStringLength()const;
|
||||
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
/**
|
||||
* Returns the "class name" of widget.
|
||||
|
|
|
@ -737,7 +737,7 @@ void TextField::textfieldRendererScaleChangedWithSize()
|
|||
_textFieldRenderer->setPosition(_contentSize.width / 2.0f, _contentSize.height / 2.0f);
|
||||
}
|
||||
|
||||
const Size TextField::getVirtualRendererSize() const
|
||||
Size TextField::getVirtualRendererSize() const
|
||||
{
|
||||
return _textFieldRenderer->getContentSize();
|
||||
}
|
||||
|
|
|
@ -187,7 +187,7 @@ public:
|
|||
*/
|
||||
virtual std::string getDescription() const override;
|
||||
|
||||
virtual const Size getVirtualRendererSize() const override;
|
||||
virtual Size getVirtualRendererSize() const override;
|
||||
virtual Node* getVirtualRenderer() override;
|
||||
void attachWithIME();
|
||||
virtual void onEnter() override;
|
||||
|
|
|
@ -468,7 +468,7 @@ void Widget::onSizeChanged()
|
|||
}
|
||||
}
|
||||
|
||||
const Size Widget::getVirtualRendererSize() const
|
||||
Size Widget::getVirtualRendererSize() const
|
||||
{
|
||||
return _contentSize;
|
||||
}
|
||||
|
|
|
@ -489,7 +489,7 @@ public:
|
|||
virtual Node* getVirtualRenderer();
|
||||
|
||||
|
||||
virtual const Size getVirtualRendererSize() const;
|
||||
virtual Size getVirtualRendererSize() const;
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue