Xterminal Home Page Main page

class XObjectEventListener : public XEventListener

Listener for registration at broker

Inheritance:

XObjectEventListener - XEventListener


Public Methods

virtual int ProcessBroadcast(XEvent *__Event)
Process a broadcast event (EV_BROADCAST)
virtual int ProcessCommand(XMessage *__Event)
Process a command (EV_COMMAND)
virtual int ProcessEvent(XEvent *__Event)
Receives incoming events and distributes them between the following processing methods
virtual int ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process a keyboard event (EV_KEYBOARD)
virtual int ProcessMessage(XMessage *__Event)
Process a message (EV_MESSAGE)
virtual int ProcessMouseEvent(XMouseEvent *__Event)
Process a mouse event (EV_MOUSE)
virtual int ProcessSignal(XEvent *__Event)
Process a signal (EV_SIGNAL)

Inherited from XEventListener:


Documentation

Listener for registration at broker
virtual int ProcessEvent(XEvent *__Event)
Receives incoming events and distributes them between the following processing methods. These methods should be overloaded for active objects, of course only for event classes the respective object cares. If the object treats the event, these functions must returns true, otherwise false. That's because Xterminal can't figure out all the times which object an event is for. Instead, events are passed to all registered listeners and then objects are watched to see which is responding to it (an example of such event is an mouse event). Once the event gets processed, the remaining listeners does not receive it any more.

virtual int ProcessMouseEvent(XMouseEvent *__Event)
Process a mouse event (EV_MOUSE). Be careful with mouse events because you must check if the mouse pointer is inside object's bounds, otherwise you must return false!

virtual int ProcessKeyboardEvent(XKeyboardEvent *__Event)
Process a keyboard event (EV_KEYBOARD)

virtual int ProcessMessage(XMessage *__Event)
Process a message (EV_MESSAGE)

virtual int ProcessCommand(XMessage *__Event)
Process a command (EV_COMMAND)

virtual int ProcessSignal(XEvent *__Event)
Process a signal (EV_SIGNAL)

virtual int ProcessBroadcast(XEvent *__Event)
Process a broadcast event (EV_BROADCAST)


Direct child classes:
XObject

Go to the hierarchy of classes.


Copyright ©1998 Bernd Kalbfuss
Last update on May 14, 1998

This page was generated with the help of doc++.