{"size": 1387, "ext": "scrbl", "max_stars_repo_path": "gui-doc/scribblings/gui/event-class.scrbl", "max_stars_repo_name": "alex-hhh/gui", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gui-doc/scribblings/gui/event-class.scrbl", "max_issues_repo_name": "alex-hhh/gui", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gui-doc/scribblings/gui/event-class.scrbl", "max_forks_repo_name": "alex-hhh/gui", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.2181818182, "max_line_length": 74, "alphanum_fraction": 0.6935832733}
#lang scribble/doc
@(require "common.rkt")

@title[#:style 'hidden]{@racket[event%]}

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

@declare-exporting[racket/gui/event
                   racket/gui/base
                   racket/gui
                   #:use-sources (mred)]

@defmodule*/no-declare[(racket/gui/event)]

@defclass[event% object% ()]{

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


@defconstructor[([time-stamp exact-integer? 0])]{

See @method[event% get-time-stamp] for information about
 @racket[time-stamp].

}

@defmethod[(get-time-stamp)
           exact-integer?]{

Returns the time, in milliseconds, when the event occurred. This time
 is compatible with times reported by Racket's
 @racket[current-milliseconds] procedure.

}

@defmethod[(set-time-stamp [time exact-integer?])
           void?]{

Set the time, in milliseconds, when the event occurred. See also
 Racket's @racket[current-milliseconds].

If the supplied value is outside the platform-specific range of time
 values, @|MismatchExn|.

}

 @history[#:changed "7.3.0.1" @elem{Added @racketmodname[racket/gui/event]
            that also exports @racket[event%] and subclasses.}]}
