MCPcopy Create free account
hub / github.com/defold/defold / SetNodeText

Function SetNodeText

engine/gui/src/gui.cpp:3292–3302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3290 }
3291
3292 void SetNodeText(HScene scene, HNode node, const char* text)
3293 {
3294 InternalNode* n = GetNode(scene, node);
3295 if (n->m_Node.m_Text)
3296 free((void*) n->m_Node.m_Text);
3297
3298 if (text)
3299 n->m_Node.m_Text = strdup(text);
3300 else
3301 n->m_Node.m_Text = 0;
3302 }
3303
3304 void SetNodeLineBreak(HScene scene, HNode node, bool line_break)
3305 {

Callers 4

LuaDoNewNodeFunction · 0.70
TEST_FFunction · 0.50
SetNodeFunction · 0.50
TEST_FFunction · 0.50

Calls 2

freeFunction · 0.85
GetNodeFunction · 0.70

Tested by 2

TEST_FFunction · 0.40
TEST_FFunction · 0.40