This is the doxygen documentation for gtkboard.

.
Main Page   Data Structures   File List   Data Fields   Globals  

GtkboardEvent Struct Reference

Abstraction of a user event. More...

#include <game.h>


Data Fields

GtkboardEventType type
 Type of event.

int x
 (For mouse events) x coordinate of the *cell* -- ranges from 0 to board_wid.

int y
int pixel_x
 Actual x coordinate.

int pixel_y
 Actual y coordinate.

int key
 The key that was pressed.

byte* move
 The move (when type is GTKBOARD_{HUMAN,MACHINE,HISTORY}_MOVE).


Detailed Description

Abstraction of a user event.

Definition at line 58 of file game.h.


Field Documentation

int GtkboardEvent::key
 

The key that was pressed.

Definition at line 76 of file game.h.

byte * GtkboardEvent::move
 

The move (when type is GTKBOARD_{HUMAN,MACHINE,HISTORY}_MOVE).

Definition at line 79 of file game.h.

int GtkboardEvent::pixel_x
 

Actual x coordinate.

Definition at line 70 of file game.h.

int GtkboardEvent::pixel_y
 

Actual y coordinate.

Definition at line 73 of file game.h.

GtkboardEventType GtkboardEvent::type
 

Type of event.

Definition at line 61 of file game.h.

int GtkboardEvent::x
 

(For mouse events) x coordinate of the *cell* -- ranges from 0 to board_wid.

Definition at line 64 of file game.h.

int GtkboardEvent::y
 

Definition at line 67 of file game.h.


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