MCPcopy Create free account
hub / github.com/TankOs/SFGUI / SetLineWrap

Method SetLineWrap

src/SFGUI/Label.cpp:39–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void Label::SetLineWrap( bool wrap ) {
40 if( wrap == m_wrap ) {
41 return;
42 }
43
44 m_wrap = wrap;
45
46 RequestResize();
47
48 if( wrap ) {
49 WrapText();
50 }
51 else {
52 m_wrapped_text = L"";
53 }
54
55 Invalidate();
56}
57
58bool Label::GetLineWrap() const {
59 return m_wrap;

Callers 1

RunMethod · 0.80

Calls

no outgoing calls

Tested by 1

RunMethod · 0.64