mirror of https://github.com/axmolengine/axmol.git
Add "override"
This commit is contained in:
parent
7d8d645c70
commit
9c0e669e09
|
@ -122,7 +122,7 @@ public:
|
||||||
void setCapInsetsDisabledRenderer(const Rect &capInsets);
|
void setCapInsetsDisabledRenderer(const Rect &capInsets);
|
||||||
|
|
||||||
//override "setAnchorPoint" of widget.
|
//override "setAnchorPoint" of widget.
|
||||||
virtual void setAnchorPoint(const Point &pt);
|
virtual void setAnchorPoint(const Point &pt) override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets if button is using scale9 renderer.
|
* Sets if button is using scale9 renderer.
|
||||||
|
@ -132,16 +132,16 @@ public:
|
||||||
virtual void setScale9Enabled(bool able);
|
virtual void setScale9Enabled(bool able);
|
||||||
|
|
||||||
//override "setFlipX" of widget.
|
//override "setFlipX" of widget.
|
||||||
virtual void setFlipX(bool flipX);
|
virtual void setFlipX(bool flipX) override;
|
||||||
|
|
||||||
//override "setFlipY" of widget.
|
//override "setFlipY" of widget.
|
||||||
virtual void setFlipY(bool flipY);
|
virtual void setFlipY(bool flipY) override;
|
||||||
|
|
||||||
//override "isFlipX" of widget.
|
//override "isFlipX" of widget.
|
||||||
virtual bool isFlipX();
|
virtual bool isFlipX() override;
|
||||||
|
|
||||||
//override "isFlipY" of widget.
|
//override "isFlipY" of widget.
|
||||||
virtual bool isFlipY();
|
virtual bool isFlipY() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Changes if button can be clicked zoom effect.
|
* Changes if button can be clicked zoom effect.
|
||||||
|
@ -151,13 +151,13 @@ public:
|
||||||
void setPressedActionEnabled(bool enabled);
|
void setPressedActionEnabled(bool enabled);
|
||||||
|
|
||||||
//override "ignoreContentAdaptWithSize" method of widget.
|
//override "ignoreContentAdaptWithSize" method of widget.
|
||||||
virtual void ignoreContentAdaptWithSize(bool ignore);
|
virtual void ignoreContentAdaptWithSize(bool ignore) override;
|
||||||
|
|
||||||
//override "getContentSize" method of widget.
|
//override "getContentSize" method of widget.
|
||||||
virtual const Size& getContentSize() const;
|
virtual const Size& getContentSize() const override;
|
||||||
|
|
||||||
//override "getVirtualRenderer" method of widget.
|
//override "getVirtualRenderer" method of widget.
|
||||||
virtual Node* getVirtualRenderer();
|
virtual Node* getVirtualRenderer() override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets color to widget
|
* Sets color to widget
|
||||||
|
@ -166,12 +166,12 @@ public:
|
||||||
*
|
*
|
||||||
* @param color
|
* @param color
|
||||||
*/
|
*/
|
||||||
virtual void setColor(const Color3B &color);
|
virtual void setColor(const Color3B &color) override;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the "class name" of widget.
|
* Returns the "class name" of widget.
|
||||||
*/
|
*/
|
||||||
virtual std::string getDescription() const;
|
virtual std::string getDescription() const override;
|
||||||
|
|
||||||
void setTitleText(const std::string& text);
|
void setTitleText(const std::string& text);
|
||||||
const std::string& getTitleText() const;
|
const std::string& getTitleText() const;
|
||||||
|
@ -183,18 +183,18 @@ public:
|
||||||
const char* getTitleFontName() const;
|
const char* getTitleFontName() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool init();
|
virtual bool init() override;
|
||||||
virtual void initRenderer();
|
virtual void initRenderer() override;
|
||||||
virtual void onPressStateChangedToNormal();
|
virtual void onPressStateChangedToNormal() override;
|
||||||
virtual void onPressStateChangedToPressed();
|
virtual void onPressStateChangedToPressed() override;
|
||||||
virtual void onPressStateChangedToDisabled();
|
virtual void onPressStateChangedToDisabled() override;
|
||||||
virtual void onSizeChanged();
|
virtual void onSizeChanged() override;
|
||||||
|
|
||||||
void normalTextureScaleChangedWithSize();
|
void normalTextureScaleChangedWithSize();
|
||||||
void pressedTextureScaleChangedWithSize();
|
void pressedTextureScaleChangedWithSize();
|
||||||
void disabledTextureScaleChangedWithSize();
|
void disabledTextureScaleChangedWithSize();
|
||||||
virtual Widget* createCloneInstance();
|
virtual Widget* createCloneInstance() override;
|
||||||
virtual void copySpecialProperties(Widget* model);
|
virtual void copySpecialProperties(Widget* model) override;
|
||||||
protected:
|
protected:
|
||||||
Node* _buttonNormalRenderer;
|
Node* _buttonNormalRenderer;
|
||||||
Node* _buttonClickedRenderer;
|
Node* _buttonClickedRenderer;
|
||||||
|
|
Loading…
Reference in New Issue