MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / setColor

Method setColor

src/Abyss/UI/Label.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void Label::setColor(const SDL_Color color) {
39 if (color.r == _color.r && color.g == _color.g && color.b == _color.b && color.a == _color.a)
40 return;
41 _color = color;
42 setTextureColor();
43}
44
45std::string_view Label::getText() const { return _text; }
46

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected