{"size": 1308, "ext": "scrbl", "max_stars_repo_path": "gui-doc/scribblings/gui/editor-data-class-list-intf.scrbl", "max_stars_repo_name": "jjsimpso/gui", "max_stars_repo_stars_event_min_datetime": "2015-03-17T22:11:52.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-12T15:09:34.000Z", "max_issues_repo_path": "gui-doc/scribblings/gui/editor-data-class-list-intf.scrbl", "max_issues_repo_name": "jjsimpso/gui", "max_issues_repo_issues_event_min_datetime": "2015-01-09T15:53:25.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T16:21:29.000Z", "max_forks_repo_path": "gui-doc/scribblings/gui/editor-data-class-list-intf.scrbl", "max_forks_repo_name": "jjsimpso/gui", "max_forks_repo_forks_event_min_datetime": "2015-01-08T13:03:07.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-26T21:49:09.000Z"}
{"max_stars_count": 65, "max_issues_count": 231, "max_forks_count": 89, "avg_line_length": 27.829787234, "max_line_length": 73, "alphanum_fraction": 0.6903669725}
#lang scribble/doc
@(require "common.rkt")

@definterface/title[editor-data-class-list<%> ()]{

Each eventspace has an instance of @racket[editor-data-class-list<%>],
 obtained with @racket[(get-the-editor-data-class-list)]. New
 instances cannot be created directly. This list keeps a list of
 editor data classes; this list is needed for loading snips from a
 file. See also @|editordatadiscuss|.


@defmethod[(add [snipclass (is-a?/c editor-data-class%)])
           void?]{
Adds a snip data class to the list. If a class with the same name already
exists in the list, this one will not be added.

}

@defmethod[(find [name string?])
           (or/c (is-a?/c snip-class%) #f)]{
Finds a snip data class from the list with the given name, returning
 @racket[#f] if none can be found.

}

@defmethod[(find-position [class (is-a?/c editor-data-class%)])
           exact-nonnegative-integer?]{
Returns an index into the list for the specified class.

}

@defmethod[(nth [n exact-nonnegative-integer?])
           (or/c (is-a?/c editor-data-class%) #f)]{
Returns the @racket[n]th class in the list (counting from 0), returning
 @racket[#f] if the list has @racket[n] or less classes.

}

@defmethod[(number)
           exact-nonnegative-integer?]{

Returns the number of editor data classes in the list.

}}

