Atmel Software Framework

win_event_queue Struct Reference

Event queue control struct.

This struct contains the control data for the circular event queue. The event queue is used to store all input events and command events. Other events, like DRAW and DESTROY, are sent directly to the window.

Data Fields

struct win_eventback
 Pointer to last inserted element. More...
 
struct win_event buffer [WIN_EVENT_QUEUE_SIZE]
 Workqueue task for handling event queue. More...
 
struct win_eventend
 Pointer to last slot in memory buffer. More...
 
win_event_queue_size_t free
 Number of free slots. More...
 
struct win_eventfront
 Pointer to next element to be removed. More...
 
struct win_eventstart
 Pointer to first slot in memory buffer. More...
 
win_event_queue_size_t used
 Number of used slots. More...
 

struct win_event* win_event_queue::back

Pointer to last inserted element.

Referenced by win_init(), and win_queue_event().

struct win_event win_event_queue::buffer[WIN_EVENT_QUEUE_SIZE]

Workqueue task for handling event queue.

struct win_event* win_event_queue::end

Pointer to last slot in memory buffer.

Referenced by win_init(), win_pop_front_event(), and win_queue_event().

win_event_queue_size_t win_event_queue::free

Number of free slots.

Referenced by win_init(), win_pop_front_event(), and win_queue_event().

struct win_event* win_event_queue::front

Pointer to next element to be removed.

Referenced by win_init(), win_pop_front_event(), and win_process_events().

struct win_event* win_event_queue::start

Pointer to first slot in memory buffer.

Referenced by win_init(), win_pop_front_event(), and win_queue_event().

win_event_queue_size_t win_event_queue::used

Number of used slots.

Referenced by win_are_events_pending(), win_pop_front_event(), and win_queue_event().