home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
RiscOS
/
APP
/
DEVS
/
LIB
/
LOADER.ZIP
/
Loader
/
h
/
WimpPoll
< prev
next >
Wrap
Text File
|
1997-12-20
|
2KB
|
90 lines
//-----------------------------------
// WimpPoll.h
//-----------------------------------
#ifndef WimpPoll_H
#define WimpPoll_H
#include "EventData.h"
class WimpPoll
{
protected:
int mask_event;
union
{
int block[128];
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;
};
public:
enum Events
{
ENULL,
EREDRAW,
EOPEN,
ECLOSE,
EPTRLEAVE,
EPTRENTER,
EBUT,
EUSERDRAG,
EKEY,
EMENU,
ESCROLL,
ELOSECARET,
EGAINCARET,
EPOLLNONZERO,
ESEND = 17,
ESENDWANTACK = 18,
EACK = 19
};
WimpPoll();
virtual ~WimpPoll();
void EnableEvent(Events);
void DisableEvent(Events);
virtual bool NullEvent() { return FALSE; }
virtual bool OpenWindow() { return FALSE; }
virtual bool CloseWindow() { return FALSE; }
virtual bool RedrawWindow() { return FALSE; }
virtual bool PointerLeave() { return FALSE; }
virtual bool PointerEnter() { return FALSE; }
virtual bool ButtonPressed() { return FALSE; }
virtual bool UserDrag() { return FALSE; }
virtual bool KeyPressed() { return FALSE; }
virtual bool MenuSelected() { return FALSE; }
virtual bool Scrolled() { return FALSE; }
virtual bool LoseCaret() { return FALSE; }
virtual bool GainCaret() { return FALSE; }
virtual bool PollNonZero() { return FALSE; }
virtual bool SendMsg() { return FALSE; }
virtual bool SendMsgAck() { return FALSE; }
virtual bool Acknowledge() { return FALSE; }
virtual void run();
};
#endif