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

Function SetNodeTextLayout

engine/gui/src/gui.cpp:3783–3796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3781 }
3782
3783 void SetNodeTextLayout(HScene scene, HNode node, const TextLayout& text_layout)
3784 {
3785 InternalNode* n = GetNode(scene, node);
3786 TextLayout& current_text_layout = n->m_Node.m_TextLayout;
3787 if (text_layout.m_Handle && current_text_layout.m_Handle != text_layout.m_Handle)
3788 {
3789 TextLayoutAcquire(text_layout.m_Handle);
3790 }
3791 if (current_text_layout.m_Handle && current_text_layout.m_Handle != text_layout.m_Handle)
3792 {
3793 TextLayoutRelease(current_text_layout.m_Handle);
3794 }
3795 current_text_layout = text_layout;
3796 }
3797
3798 BlendMode GetNodeBlendMode(HScene scene, HNode node)
3799 {

Callers 3

RenderTextNodesFunction · 0.50
TEST_FFunction · 0.50

Calls 3

TextLayoutAcquireFunction · 0.85
TextLayoutReleaseFunction · 0.85
GetNodeFunction · 0.70

Tested by 1

TEST_FFunction · 0.40