| 273 | } |
| 274 | |
| 275 | void 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 | |
| 290 | void Entry::HandleFocusChange( Widget::Ptr focused_widget ) { |
| 291 | if( HasFocus() ) { |
nothing calls this directly
no outgoing calls
no test coverage detected