refactor TextField setColor & setOpacity

This commit is contained in:
andyque 2014-06-06 16:10:33 +08:00
parent 5ae97da030
commit 282264575b
2 changed files with 1 additions and 18 deletions

View File

@ -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()
{ {

View File

@ -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;