## wxIdleEvent

This class is used for idle events, which are generated when the system is idle.

Derived from

wxEvent
wxObject

Include files

<wx/event.h>

Event table macros

To process an idle event, use this event handler macro to direct input to a member function that takes a wxIdleEvent argument.

EVT_IDLE(func) | Process a wxEVT_IDLE event.

Remarks

Idle events can be caught by the wxApp class, or by top-level window classes.

See also

Event handling overview

Members

wxIdleEvent::wxIdleEvent
wxIdleEvent::RequestMore
wxIdleEvent::MoreRequested

### wxIdleEvent::wxIdleEvent

wxIdleEvent()

Constructor.

### wxIdleEvent::RequestMore

void RequestMore(bool needMore = TRUE)

Tells wxWindows that more processing is required. This function can be called by an OnIdle handler for a window or window event handler to indicate that wxApp::OnIdle should forward the OnIdle event once more to the application windows. If no window calls this function during OnIdle, then the application will remain in a passive event loop (not calling OnIdle) until a new event is posted to the application by the windowing system.

See also

wxIdleEvent::MoreRequested

### wxIdleEvent::MoreRequested

bool MoreRequested() const

Returns TRUE if the OnIdle function processing this event requested more processing time.

See also

wxIdleEvent::RequestMore