racket/collects/scribblings/gui/editor-data-class.scrbl
Eli Barzilay ac26fe7554 A ton of @scheme*' -> @racket*' and related updates.
Also, updates some of the mzlib files to point at `racket/*' libraries
rather than to `scheme/*' ones.
2011-06-25 04:08:47 -04:00

52 lines
1.1 KiB
Racket

#lang scribble/doc
@(require "common.rkt")
@defclass/title[editor-data% object% ()]{
An @racket[editor-data%] object contains extra data associated to a
snip or region in an editor. See also @|editordatadiscuss|.
@defconstructor[()]{
The element returned by @method[editor-data% get-next] is initialized
to @racket[#f].
}
@defmethod[(get-dataclass)
(or/c (is-a?/c editor-data-class%) false/c)]{
Gets the class for this data.
}
@defmethod[(get-next)
(or/c (is-a?/c editor-data%) false/c)]{
Gets the next editor data element in a list of editor data elements.
A @racket[#f] terminates the list.
}
@defmethod[(set-dataclass [v (is-a?/c editor-data-class%)])
void?]{Sets the class for this data.
}
@defmethod[(set-next [v (or/c (is-a?/c editor-data%) false/c)])
void?]{Sets the next editor data element in a list of editor data elements.
A @racket[#f] terminates the list.
}
@defmethod[(write [f (is-a?/c editor-stream-out%)])
boolean?]{
@methspec{
Writes the data to the specified stream, returning @racket[#t] if data
is written successfully or @racket[#f] otherwise.
}
@methimpl{
Returns @racket[#f].
}}}