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

Method HandleUpdate

src/SFGUI/Entry.cpp:275–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void Entry::HandleUpdate( float seconds ) {
276 if( !HasFocus() ) {
277 return;
278 }
279
280 m_elapsed_time += seconds;
281
282 // Toggle cursor state every 0.5 seconds
283 if( m_elapsed_time > .5f ) {
284 m_elapsed_time = 0.f;
285 m_cursor_status = !m_cursor_status;
286 Invalidate();
287 }
288}
289
290void Entry::HandleFocusChange( Widget::Ptr focused_widget ) {
291 if( HasFocus() ) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected