Type Definitions
BOXTREE: TYPE ~ REF BoxTreeRep;
BoxTreeRep: TYPE ; -- use implementation type
Selection: TYPE ~ RECORD[expr: EXPR, color: Imager.Color];
Selection Operations
Selectable:
PROC[expr: EXPR]
RETURNS[
BOOL];
effects: Returns TRUE iff expr is selectable.
SelectableParent:
PROC[expr: EXPR]
RETURNS[EXPR];
effects: Returns the parent (enclosing expression) of expr.
SIGNALS noSelection if no selectable parent exists.
SelectableChild:
PROC[expr: EXPR]
RETURNS[EXPR];
effects: Returns a child expressions (subexpression) for expr.
SIGNALS noSelection if no selectable child exists.
SelectableSibling:
PROC[expr: EXPR]
RETURNS[EXPR];
effects: Returns the "next" sibling expression from expr.
SIGNALS noSelection if no selectable sibling exists.
Replace:
PROC[expr, old, new: EXPR]
RETURNS[EXPR];
effects: Returns a copy of expression expr with new substituted for old.
caveats: Return value must be reformatted before Paint[]'ing.
Note that new is used (not a copy).