On this page:
get-dataclass
get-next
set-dataclass
set-next
write

editor-data% : class?

  superclass: object%

An editor-data% object contains extra data associated to a snip or region in an editor. See also Editor Data.

The element returned by get-next is initialized to #f.

(send an-editor-data get-dataclass)
  (or/c (is-a?/c editor-data-class%) false/c)
Gets the class for this data.

(send an-editor-data 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 #f terminates the list.

(send an-editor-data set-dataclass v)  void?
  v : (is-a?/c editor-data-class%)
Sets the class for this data.

(send an-editor-data set-next v)  void?
  v : (or/c (is-a?/c editor-data%) false/c)
Sets the next editor data element in a list of editor data elements. A #f terminates the list.

(send an-editor-data write f)  boolean?
  f : (is-a?/c editor-stream-out%)
Specification: Writes the data to the specified stream, returning #t if data is written successfully or #f otherwise.

Default implementation: Returns #f.