MrLib: Extra GUI Libraries

1`` | Aligned Pasteboard
2`` | Bitmap Label
3`` | Cache-image Snip
4`` | GIF and Animated GFI Writing
5`` | Graphs
6`` | Hierarchical List Control
7`` | Include Bitmap
8`` | Interactive Value Port
9`` | Name Message
10`` | Path Dialog
11`` | Plot
12`` | Switchable Button
13`` | Acknowledgments
| Index

On this page:

add-child
add-parent
get-children
get-parents
remove-child
remove-parent

Version: 4.0.2
contents index
← prev up next →

graph-snip<%> : interface?

(send a-graph-snip add-child child) → void?
child : (is-a?/c graph-snip<%>)

Adds a child of this snip. Instead of calling this method, consider using the add-links function.

(send a-graph-snip add-parent parent) → void?
parent : (is-a?/c graph-snip<%>)

(send a-graph-snip add-parent |  | parent |  |  |  |
|  | mouse-over-pen |  |  |  |
|  | mouse-off-pen |  |  |  |
|  | mouse-over-brush |  |  |  |
|  | mouse-off-brush) |  | → |  | void?

parent : (is-a?/c graph-snip<%>)
mouse-over-pen : (or/c false/c (is-a?/c pen%))
mouse-off-pen : (or/c false/c (is-a?/c pen%))
mouse-over-brush : (or/c false/c (is-a?/c brush%))
mouse-off-brush : (or/c false/c (is-a?/c brush%))

Adds a parent of this snip. Instead of calling this method, consider using the add-links function.

(send a-graph-snip get-children) → (listof snip%)

returns a list of snips that implement graph-snip<%>. Each of these snips will have a line drawn from it, pointing at this snip.

(send a-graph-snip get-parents) → (listof graph-snip<%>)

Returns a list of snips that implement graph-snip<%>. Each of these snips will have a line drawn to it, starting from this snip.

(send a-graph-snip remove-child child) → void?
child : (is-a?/c graph-snip<%>)

Removes a child snip from this snip. Be sure to remove this snip as a parent from the argument, too.

(send a-graph-snip remove-parent parent) → void?
parent : (is-a?/c graph-snip<%>)

Removes a parent snip from this snip. Be sure to remove this snip as a child from the argument, too.

contents index
← prev up next →