\slide{class-event}{The event class}{
  interface event  {  
\fbox{event}
int type();
\c{ X event type }
char* name();
\c{type as string}
int x(); int y(); ... void* rawevent();
\c{delivers} raw X event

};
}{
  interface event  {  
\fbox{event}
int type();
\c{// X event type }
char* name();
\c{// type as string}
int x(); int y(); int button(int i = 0);
\c{// ButtonPress}
int buttonup(int i = 0);
\c{// ButtonRelease}
int motion();
\c{// MotionNotify}
int keyevent();
\c{// KeyPress or KeyRelease}
int buttonevent(int i = 0);
\c{// ButtonPress or Release}
int keycode(); void trace();
\c{// prints event information}
void* rawevent();
// \c{delivers} raw X event
};
} }