► |  | GUI: Racket Graphics Toolkit

1 | Overview
2 | Reference
3 | Configuration
4 | Dynamic Loading
| Bibliography
| Index

► | 2 | Reference

2.1 | Windowing Classes
2.2 | Windowing Functions
2.3 | Drawing Classes
2.4 | Drawing Functions
2.5 | Editor Classes
2.6 | Editor Functions
2.7 | WXME Decoding

▼ | 2.5 | Editor Classes

2.5.1 | add-color<%>
2.5.2 | editor<%>
2.5.3 | editor-admin%
2.5.4 | editor-canvas%
2.5.5 | editor-data%
2.5.6 | editor-data-class%
2.5.7 | editor-data-class-list<%>
2.5.8 | editor-snip-editor-admin<%>
2.5.9 | editor-snip%
2.5.10 | editor-stream-in%
2.5.11 | editor-stream-in-base%
2.5.12 | editor-stream-in-bytes-base%
2.5.13 | editor-stream-out%
2.5.14 | editor-stream-out-base%
2.5.15 | editor-stream-out-bytes-base%
2.5.16 | editor-wordbreak-map%
2.5.17 | image-snip%
2.5.18 | keymap%
2.5.19 | mult-color<%>
2.5.20 | pasteboard%
2.5.21 | readable-snip<%>
2.5.22 | snip%
2.5.23 | snip-admin%
2.5.24 | snip-class%
2.5.25 | snip-class-list<%>
2.5.26 | string-snip%
2.5.27 | style<%>
2.5.28 | style-delta%
2.5.29 | style-list%
2.5.30 | tab-snip%
2.5.31 | text%

On this page:

add
find
find-position
nth
number

top ← 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)
→ exact-nonnegative-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 : exact-nonnegative-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 )
→ exact-nonnegative-integer?

Returns the number of editor data classes in the list.
top ← prev up next →