home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
RiscOS
/
APP
/
DEVS
/
LIB
/
LOADER.ZIP
/
Loader
/
h
/
EventData
next >
Wrap
Text File
|
1997-12-15
|
1KB
|
113 lines
//-----------------------------------
// EventData.h
//-----------------------------------
#ifndef EventData_H
#define EventData_H
enum bool {FALSE,TRUE};
struct Message_Info
{
int size;
int task_sender;
int my_ref;
int your_ref;
int code;
union
{
int data[123];
struct
{
int dest_window;
int icon;
int x;
int y;
int size;
int type;
char pathname[468];
} data_load_ack;
};
};
struct Box
{
int xmin;
int ymin;
int xmax;
int ymax;
};
struct Window_Info
{
int handle;
int xmin;
int ymin;
int xmax;
int ymax;
int scrollx;
int scrolly;
union
{
struct
{
int window_behind;
int scrolldx;
int scrolldy;
} win;
struct
{
Xmin;
Ymin;
Xmax;
Ymax;
} box;
};
};
struct Mouse_Info
{
int x;
int y;
int buttons;
int window;
int icon;
};
struct Key_Info
{
int window;
int icon;
int xoffset;
int yoffset;
int caret_flag;
int caret_index;
int code;
};
struct Menu_Info
{
int item[128];
};
union EventData
{
Window_Info Window_Request;
Mouse_Info Mouse_Click;
Box Drag_Box;
Key_Info Key_Pressed;
Menu_Info Menu_Selection;
struct
{
int address;
int contents;
} Non_Zero;
Message_Info User_Message;
};
#endif