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

 

snip-class-list<%> : interface?

Each eventspace has its own instance of snip-class-list<%>, obtained with (get-the-snip-class-list). New instances cannot be created directly. Each instance keeps a list of snip classes. This list is needed for loading snips from a file. See also Snip Classes.

(send a-snip-class-list add snipclass) → void?

  snipclass : (is-a?/c snip-class%)

Adds a snip class to the list. If a class with the same name already exists in the list, this one will not be added.

(send a-snip-class-list find name)

 → (or/c (is-a?/c snip-class%) false/c)

  name : string?

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

(send a-snip-class-list find-position class)

 → nonnegative-exact-integer?

  class : (is-a?/c snip-class%)

Returns an index into the list for the specified class.

(send a-snip-class-list nth n)

 → (or/c (is-a?/c snip-class%) false/c)

  n : nonnegative-exact-integer?

Returns the nth class in the list, or #f if the list has n classes or less.

(send a-snip-class-list number) → nonnegative-exact-integer?

Returns the number of snip classes in the list.