INTERFACE

tcl.lang.EventDeleter -- Interface for deleting events from the Notifier's event queue.

METHODS

int deleteEvent(TclEvent event)

ARGUMENTS

TclEvent event ()
Check whether this event should be deleted from the event queue.

DESCRIPTION

The EventDeleter interface is used for specifying which event should be deleted from the event queue. When deleteEvents is called on a Notifier instance, it will invoke the deleteEvent method of the EventDeleter argument passed to it, once for each event in the event queue. deleteEvent returns 1 for all events that should be deleted and 0 for events that should remain in the queue. If deleteEvent determines that an event should be removed, it should perform appropriate clean up on the event instance.

EQUIVALENT C FUNCTIONS

Tcl_EventDeleteProc

SEE ALSO

TclEvent, Notifier

KEYWORDS

event, notifier, event queue
Copyright © 1998 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.