For version 0.7.0.
To top.  Up: ..Shapes..Layout

shiftoff


Alphabetical index
dir_to dirtopoint shiftoff shiftoffwlm to_bot to_center to_dir to_lft to_llft to_lrt to_rt to_top to_ulft to_urt

Namespace:  ..Shapes..Layout

The name of this extension includes the mysterious wfo. It stands for waiting for objects, and refers to the wish to deal with elements of block diagrams using objects of user-defined types rather than just relying on §Drawable. However, by relying on §Drawable as the representation, this extension is much more generally useful than it would otherwise be.
Sections:    Constants    Functions

Constants

The constants defined here give numeric values to directions. This is preferred over using symbols, since a miss-spelled symbol won't be detected by static analysis of the program. Note, though, that the numeric values should never be used as such; they could equally well have been defined as unique symbols.
to_lft
Type:§Float
Constant for the direction left.
to_llft
Type:§Float
Constant for the direction down and left (“lower left”).
to_bot
Type:§Float
Constant for the direction down (“bottom”).
to_lrt
Type:§Float
Constant for the direction down and right (“lower right”).
to_rt
Type:§Float
Constant for the direction right.
to_urt
Type:§Float
Constant for the direction up and right (“upper right“).
to_top
Type:§Float
Constant for the direction up (“top”).
to_ulft
Type:§Float
Constant for the direction up ad left (“upper left”).
to_center
Type:§Float
Constant for centered placement.

Functions

Functions for working with directions in terms of the constants defined by this extension.
dirtopoint
d::§Float §FloatPair
Dynamic references:none
Converts a direction constant (which must have one of the values held by the constants defined by this extension) to a relative point to center at. The returned value can be used with center.
to_dir
z::§FloatPair §Float
Dynamic references:none
This generalizes the inverse of dirtopoint. It converts any relative point (see center) to the closest direction constant defined by this extension. It always returns a directional value, never to_center.
dir_to
d::§Float §FloatPair
Dynamic references:none
This function might be removed in the future!
This generalizes dirtopoint by being applicable to any float value. This makes ugly use of the numerical values held by the constants defined by this extension.
shiftoff
obj::§Drawable2D d::§Float §Drawable2D
Dynamic references:none
Provides MetaPost-like layout.
For instance, to place a label below a point, say lblPoint, one may write:
•page << [shift lblPoint] [] [shiftoff (TeX `$x_{1}$´) to_bot]
shiftoffwlm
obj::§Drawable2D d::§Float §Drawable2D
Dynamic references:
Provides MetaPost-like layout.
This function is like shiftoff, but treats the obeject as if it was slightly bigger than it really is. The implementation uses center_wlm instead of center.
Get Shapes at SourceForge.net. Fast, secure and Free Open Source software downloads