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

Method SetCursorPosition

src/SFGUI/Entry.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void Entry::SetCursorPosition( int new_position ) {
58 if( new_position == m_cursor_position ) {
59 return;
60 }
61
62 auto delta = static_cast<int>( new_position ) - static_cast<int>( m_cursor_position );
63 MoveCursor( delta );
64}
65
66void Entry::HideText( std::uint32_t c ) {
67 if( c == 0x00 || ( c > 0x1f && c != 0x7f ) ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected