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

Method SetText

src/SFGUI/Entry.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void Entry::SetText( const sf::String& text ) {
38 m_string = text;
39 m_visible_offset = 0;
40 m_cursor_position = 0;
41 RecalculateVisibleString();
42 GetSignals().Emit( OnTextChanged );
43}
44
45const sf::String& Entry::GetText() const {
46 return m_string;

Callers 1

CreateMethod · 0.45

Calls 1

EmitMethod · 0.80

Tested by

no test coverage detected