libGLV  0.4.0
Data Fields
GLViewEvent Struct Reference

The GLViewEvent struct is passed to the event handler callback. More...

#include <glv.h>

Data Fields

int type
 
int code
 
int state
 
int x
 
int y
 

Detailed Description

The GLViewEvent struct is passed to the event handler callback.

See also
GLViewEvent_f
glv_setEventHandler()

Field Documentation

◆ code

int GLViewEvent::code

Key code for GLV_EVENT_KEY_DOWN/GLV_EVENT_KEY_UP events.

◆ state

int GLViewEvent::state

Bit mask of key & button modifiers.

◆ type

int GLViewEvent::type

Type of event.

GLV_EVENT_RESIZE
GLV_EVENT_CLOSE
GLV_EVENT_BUTTON_DOWN
GLV_EVENT_BUTTON_UP
GLV_EVENT_MOTION
GLV_EVENT_WHEEL
GLV_EVENT_KEY_DOWN
GLV_EVENT_KEY_UP
GLV_EVENT_FOCUS_IN
GLV_EVENT_FOCUS_OUT
GLV_EVENT_EXPOSE
GLV_EVENT_USER

Referenced by glv_changeMode(), and glv_handleEvents().

◆ x

int GLViewEvent::x

Mouse pointer X position. Width for GLV_EVENT_RESIZE events.

◆ y

int GLViewEvent::y

Mouse pointer Y position. Height for GLV_EVENT_RESIZE events.


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