| 35 | } |
| 36 | |
| 37 | void 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 | |
| 45 | const sf::String& Entry::GetText() const { |
| 46 | return m_string; |