3.18 event%

On this page:
new
top
up

The bindings documented in this section are also provided by the racket/gui/base library.

Changed in version 7.3.0.1 of package gui-lib: Added racket/gui/event that exports event% and subclasses.

class

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% .

constructor

( new event% [[time-stamptime-stamp]])(is-a?/c event% )

time-stamp:exact-integer? =0
See get-time-stamp for information about time-stamp.

method

(send an-event get-time-stamp )exact-integer?

Returns a time, in milliseconds, when the event occurred.

This time is not necessarily compatible with times reported by Racket’s current-milliseconds procedure. It may be based on milliseconds since the system was rebooted. It may also “wrap around” (instead of always increasing) due to the system’s representation of time.

method

(send an-event set-time-stamp time)void?

Set a time, in milliseconds, when the event occurred. See also get-time-stamp .

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

top
up

AltStyle によって変換されたページ (->オリジナル) /