Changeset 2188
- Timestamp:
- Jan 11, 2008, 12:42:29 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/caca.h
r2139 r2188 46 46 /** \e libcaca event structure */ 47 47 typedef struct caca_event caca_event_t; 48 49 /** \brief Handling of user events.50 *51 * This structure is filled by caca_get_event() when an event is received.52 * It is an opaque structure that should only be accessed through53 * caca_event_get_type() and similar functions.54 */55 struct caca_event56 {57 unsigned char opaque_structure[32];58 };59 48 60 49 /** \brief User event type enumeration. … … 77 66 78 67 CACA_EVENT_ANY = 0xffff /**< Bitmask for any event. */ 68 }; 69 70 /** \brief Handling of user events. 71 * 72 * This structure is filled by caca_get_event() when an event is received. 73 * It is an opaque structure that should only be accessed through 74 * caca_event_get_type() and similar functions. The struct members may no 75 * longer be directly accessible in future versions. 76 */ 77 struct caca_event 78 { 79 enum caca_event_type type; 80 union 81 { 82 struct { unsigned int x, y, button; } mouse; 83 struct { unsigned int w, h; } resize; 84 struct { unsigned int ch; unsigned long int utf32; char utf8[8]; } key; 85 } data; 86 unsigned char padding[16]; 79 87 }; 80 88
Note: See TracChangeset
for help on using the changeset viewer.