GUI: PLT Graphics Toolkit

1`` | Overview
- | Windowing
- | Drawing
- | Editor
2`` | Reference
- | Windowing Classes
- | Windowing Functions
- | Drawing Classes
- | Drawing Functions
- | Editor Classes
- | Editor Functions
- | WXME Decoding
3`` | Configuration
4`` | Dynamic Loading
| Index

On this page:

get-time-stamp
set-time-stamp

Version: 4.0.2
contents index
← prev up next →

event% : class?
superclass: object%

An event% object contains information about a control, keyboard, mouse, or scroll event. See also control-event%, key-event%, mouse-event%, and scroll-event%.

(new event% [[time-stamp time-stamp]]) → (is-a?/c event%)
time-stamp : (and/c exact? integer?) = 0

See get-time-stamp for information about time-stamp.

(send an-event get-time-stamp) → (and/c exact? integer?)

Returns the time, in milliseconds, when the event occurred. This time is compatible with times reported by MzScheme’s current-milliseconds procedure.

(send an-event set-time-stamp time) → void?
time : (and/c exact? integer?)

Set the time, in milliseconds, when the event occurred. See also MzScheme’s current-milliseconds.

If the supplied value is outside the platform-specific range of time values, an exn:fail:contract exception is raised.

contents index
← prev up next →