MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / Text

Class Text

Source/Falcor/Utils/UI/PythonUI.cpp:167–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165};
166
167class Text : public Widget
168{
169 FALCOR_OBJECT(Text)
170public:
171 Text(Widget* parent, std::string_view text = "") : Widget(parent), m_text(text) {}
172
173 const std::string& get_text() const { return m_text; }
174 void set_text(std::string_view text) { m_text = text; }
175
176 virtual void render() override
177 {
178 ScopedID id(this);
179 if (!m_visible)
180 return;
181 ScopedDisable disable(!m_enabled);
182 ImGui::TextUnformatted(m_text.c_str());
183 }
184
185private:
186 std::string m_text;
187};
188
189class ProgressBar : public Widget
190{

Callers 5

renderMethod · 0.85
renderGraphMethod · 0.85
renderUIMethod · 0.85
renderMethod · 0.85
renderMethod · 0.85

Calls

no outgoing calls

Tested by 1

renderUIMethod · 0.68