::tycho::Picture
-
Source File -
Contents:
public procs
- public commons
Note: Because this class is highly parameterized, it is not very efficient. A more efficient version with hardwired icon and terminal types could be created if this becomes a problem.
Reading Picture documentation.
Note: This is an experimental class.
construct
id canvas slate tags x0 y0 x1 y1 args
_font
id canvas slate font
-font
option.
_icontype
id canvas slate icontype
-icontype
option.
_inputs
id canvas slate inputs
By default, there is one input on the left edge and one output on the right edge.
Setting this configuration option supports a handy shortcut: A single number sets the list to evenly spaced positions along the left (input) or right (output) edges. For example, the option *-inputs 2* to the constructor will result in the -inputs variable being set to *{0 25 0 75}*.
_intype
id canvas slate intype
-intype
option.
_name
id canvas slate name
-name
option.
_outputs
id canvas slate outputs
_inputs
for comments.
_outtype
id canvas slate outtype
-outtype
option.
aspect
id canvas slate args
input-
n
or $output-*n.
FIXME: Make more efficient.
FIXME: Do we really need this? Terminal positions can be found more easily by using component and then calling aspects on those. Plus it doesn't assume that the ports have an aspect called "terminal.".
coords
id canvas slate args
component
id canvas slate {name {}}
input-
n
or $output-*n.
redrawinputs
id canvas slate positions
redrawoutputs
id canvas slate positions
_font
_icontype
_inputs
_intype
_name
_outputs
_outtype
iconitem
textitem
inports
outports
methodtable
optiondefault
indirn
outdirn