FDOSTUI
FreeDOS Text User Interface
poll.h
Go to the documentation of this file.
1 /*
2  POLL.H
3 
4  License CC0 PUBLIC DOMAIN
5 
6  To the extent possible under law, Mark J. Olesen has waived all copyright
7  and related or neighboring rights to FDOSTUI Library. This work is published
8  from: United States.
9 */
10 #ifndef __poll_h__
11 
12 #include "event.h"
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
19 {
22 #ifndef __DOS__
24 #endif
25 };
26 
28 {
29  struct event_key m_key;
31 #ifndef __DOS__
33 #endif
34 };
35 
36 struct poll_event
37 {
40 };
41 
42 extern void
44  struct event_key const*const i_event);
45 
46 extern int
48  struct poll_event *const o_event);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #define __poll_h__
55 #endif
Definition: poll.h:21
poll_event_type
indicator of the type of event that occurred
Definition: poll.h:18
struct event_resize m_resize
Definition: poll.h:32
struct event_mouse m_mouse
Definition: poll.h:30
Definition: poll.h:20
union poll_event_record m_record
Definition: poll.h:39
enum poll_event_type m_type
Definition: poll.h:38
Definition: poll.h:23
void poll_keyboard_unget(struct event_key const *const i_event)
put back a key event into queue
Definition: ncurses/poll.c:21
container for a resize event
Definition: event.h:44
Data structures for event handling.
structure to hold event
Definition: poll.h:36
int poll_block(struct poll_event *const o_event)
polls event queue
Definition: ncurses/poll.c:168
continaer to hold an event record
Definition: poll.h:27
container for a mouse event
Definition: event.h:37
container for a keyboard event
Definition: event.h:23
struct event_key m_key
Definition: poll.h:29