1uevent::onidle(n)                 User events                uevent::onidle(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       uevent::onidle - Request merging and deferal to idle time
9

SYNOPSIS

11       package require Tcl  8.4
12
13       package require uevent::onidle  ?0.1?
14
15       package require logger
16
17       ::uevent::onidle objectName commandprefix
18
19       objectName request
20
21_________________________________________________________________
22

DESCRIPTION

24       This package provides objects which can merge multiple requestes for an
25       action and execute the  action  the  moment  the  system  (event  loop)
26       becomes  idle.  The  action  to be run is configured during object con‐
27       struction.
28

API

30       The package exports a class, uevent::onidle, as specified below.
31
32       ::uevent::onidle objectName commandprefix
33              The command creates a  new  onidle  object  with  an  associated
34              global  Tcl  command whose name is objectName.  This command may
35              be used to invoke various operations on the object.
36
37              The commandprefix is the action to perform when the  event  loop
38              is  idle and the user asked for it using the method request (See
39              below).
40
41       The object commands created by the class commands above have the form:
42
43       objectName request
44              This method requests the execution of the command prefix  speci‐
45              fied  during  the  construction  of objectName the next time the
46              event loop is idle. Multiple requests are merged and cause  only
47              one execution of the command prefix.
48

EXAMPLES

50       Examples  of this type of deferal are buried in the (C-level) implemen‐
51       tations all the Tk widgets, defering geometry calculations  and  window
52       redraw activity in this manner.
53

BUGS, IDEAS, FEEDBACK

55       This  document,  and the package it describes, will undoubtedly contain
56       bugs and other problems.  Please report such in the category uevent  of
57       the          Tcllib         SF         Trackers         [http://source
58       forge.net/tracker/?group_id=12883].  Please also report any  ideas  for
59       enhancements you may have for either package and/or documentation.
60

KEYWORDS

62       callback, deferal, event, idle, merge, on-idle
63
65       Copyright (c) 2008 Andreas Kupries <andreas_kupries@users.sourceforge.net>
66
67
68
69
70uev                                   0.1                    uevent::onidle(n)
Impressum