GUI: PLT Graphics Toolkit

1`` | Overview
- | Windowing
- | Drawing
- | Editor
2`` | Reference
- | Windowing Classes
- | Windowing Functions
- | Drawing Classes
- | Drawing Functions
- | Editor Classes
- | Editor Functions
- | WXME Decoding
3`` | Configuration
4`` | Dynamic Loading
| Index

On this page:

add
find
find-position
nth
number

Version: 4.0.2
contents index
← prev up next →

editor-data-class-list<%> : interface?

Each eventspace has an instance of editor-data-class-list<%>, obtained with (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 Editor Data.

(send an-editor-data-class-list add snipclass) → void?
snipclass : (is-a?/c editor-data-class%)

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.

(send an-editor-data-class-list find name)
→ (or/c (is-a?/c snip-class%) false/c)
name : string?

Finds a snip data class from the list with the given name, returning #f if none can be found.

(send an-editor-data-class-list find-position class)
→ nonnegative-exact-integer?
class : (is-a?/c editor-data-class%)

Returns an index into the list for the specified class.

(send an-editor-data-class-list nth n)
→ (or/c (is-a?/c editor-data-class%) false/c)
n : nonnegative-exact-integer?

Returns the nth class in the list (counting from 0), returning #f if the list has n or less classes.

(send an-editor-data-class-list number)
→ nonnegative-exact-integer?

Returns the number of editor data classes in the list.

contents index
← prev up next →