#include <gauge3d/input/messagequeue.h>
Inherits GAUGE3D::GObject.
Public Types | |
| typedef GSmartPointer<Handler> | pHandler |
Public Methods | |
| GMessageQueue () | |
| ~GMessageQueue () | |
| void | EnqueueMessage (pGMessage message) |
| Enqueue a message. | |
| void | DispatchMessage (pGMessage message) |
| Immediately dispatch a message, bypassing the queue. | |
| void | DiscardMessages () |
| Discard all enqueued messages. | |
| void | AddHandler (pHandler handler,float priority=0.5) |
| Add a handler to the list of handlers. More... | |
| void | RemoveHandler (pHandler handler) |
| Remove a message handler from the list. | |
| void | ClearHandlers () |
| Remove all handlers from the message handler list. | |
| virtual void | DoFrame (tTime time,tTime frametime) |
| Dispatch all enqueued messages that have not been sent. Will be called automatically. More... | |
This class queues and distributes messages. First, you give it pointers to one or more message handlers. When a message is ready to be dispatched, it will be sent to each handler one by one until one of the handlers reports that it has handled the message.
|
|
Add a handler to the list of handlers.
|
|
|
Dispatch all enqueued messages that have not been sent. Will be called automatically.
Reimplemented from GAUGE3D::GObject. |
1.2.4 written by Dimitri van Heesch,
© 1997-2000