mirror of https://github.com/axmolengine/axmol.git
refactor TextField setColor & setOpacity
This commit is contained in:
parent
5ae97da030
commit
282264575b
|
@ -799,21 +799,6 @@ std::string TextField::getDescription() const
|
||||||
{
|
{
|
||||||
return "TextField";
|
return "TextField";
|
||||||
}
|
}
|
||||||
|
|
||||||
void TextField::updateTextureColor()
|
|
||||||
{
|
|
||||||
updateColorToRenderer(_textFieldRenderer);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TextField::updateTextureOpacity()
|
|
||||||
{
|
|
||||||
updateOpacityToRenderer(_textFieldRenderer);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TextField::updateTextureRGBA()
|
|
||||||
{
|
|
||||||
updateRGBAToRenderer(_textFieldRenderer);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TextField::attachWithIME()
|
void TextField::attachWithIME()
|
||||||
{
|
{
|
||||||
|
|
|
@ -197,9 +197,7 @@ protected:
|
||||||
void insertTextEvent();
|
void insertTextEvent();
|
||||||
void deleteBackwardEvent();
|
void deleteBackwardEvent();
|
||||||
virtual void onSizeChanged() override;
|
virtual void onSizeChanged() override;
|
||||||
virtual void updateTextureColor() override;
|
|
||||||
virtual void updateTextureOpacity() override;
|
|
||||||
virtual void updateTextureRGBA() override;
|
|
||||||
void textfieldRendererScaleChangedWithSize();
|
void textfieldRendererScaleChangedWithSize();
|
||||||
|
|
||||||
virtual Widget* createCloneInstance() override;
|
virtual Widget* createCloneInstance() override;
|
||||||
|
|
Loading…
Reference in New Issue