module type POS = sig
.. end
The signature POS
describes the requirements for positionnable objects
type
t
the type of objects that can be positioned.
type
repr
the type of objects once they have been placed. Often this will be the
same type as t
.
val ctr : t -> Point.t
return the center of the object
val height : t -> Num.t
return the height of the object
val width : t -> Num.t
return the width of the object
val shift : Point.t -> repr -> repr
shift pt x
shifts the object x
about the point pt
val center : Point.t -> t -> repr
center pt x
centers the object x
at the point pt
val v : t -> repr
get the "raw" object back