libcaca  0.99.beta19
About: libcaca is a graphics library that outputs text instead of pixels, so that it can work on older video cards or text terminals (something like an advanced AAlib library).
  Fossies Dox: libcaca-0.99.beta19.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

caca_event Struct Reference

Handling of user events. More...

#include <caca.h>

Public Attributes

enum caca_event_type type
 
union {
   struct {
      int   x
 
      int   y
 
      int   button
 
   }   mouse
 
   struct {
      int   w
 
      int   h
 
   }   resize
 
   struct {
      int   ch
 
      uint32_t   utf32
 
      char   utf8 [8]
 
   }   key
 
data
 
uint8_t padding [16]
 

Detailed Description

Handling of user events.

This structure is filled by caca_get_event() when an event is received. It is an opaque structure that should only be accessed through caca_event_get_type() and similar functions. The struct members may no longer be directly accessible in future versions.

Definition at line 129 of file caca.h.

Member Data Documentation

◆ button

int caca_event::button

Definition at line 134 of file caca.h.

◆ ch

int caca_event::ch

Definition at line 136 of file caca.h.

◆ data

union { ... } caca_event::data

The event information data

◆ h

int caca_event::h

Definition at line 135 of file caca.h.

◆ key

struct { ... } caca_event::key

◆ mouse

struct { ... } caca_event::mouse

◆ padding

uint8_t caca_event::padding[16]

Definition at line 139 of file caca.h.

◆ resize

struct { ... } caca_event::resize

◆ type

enum caca_event_type caca_event::type

The event type.

Definition at line 131 of file caca.h.

◆ utf32

uint32_t caca_event::utf32

Definition at line 136 of file caca.h.

◆ utf8

char caca_event::utf8[8]

Definition at line 136 of file caca.h.

◆ w

int caca_event::w

Definition at line 135 of file caca.h.

◆ x

int caca_event::x

Definition at line 134 of file caca.h.

◆ y

int caca_event::y

Definition at line 134 of file caca.h.


The documentation for this struct was generated from the following file: