MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / SetBackgroundColor

Method SetBackgroundColor

SDK/src/NDK/BaseWidget.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 void BaseWidget::SetBackgroundColor(const Nz::Color& color)
94 {
95 m_backgroundColor = color;
96
97 if (m_backgroundSprite)
98 {
99 m_backgroundSprite->SetColor(color);
100 m_backgroundSprite->GetMaterial()->Configure((color.IsOpaque()) ? "Basic2D" : "Translucent2D"); //< Our sprite has its own material (see EnableBackground)
101 }
102 }
103
104 void BaseWidget::SetCursor(Nz::SystemCursor systemCursor)
105 {

Callers

nothing calls this directly

Calls 1

SetColorMethod · 0.45

Tested by

no test coverage detected