8.16.0.1
1 Text block datatype
(require text-block/tblock) | package: text-block |
struct
width : exact-nonnegative-integer? height : exact-nonnegative-integer? baseline : exact-nonnegative-integer? lines : (listof string?)
Only the baseline field is mutable.
procedure
(lines->tblock lines [ #:align align #:pad-char pad-char #:baseline baseline]) → tblock? lines : (or/c string? (listof string?)) align : (one-of/c 'left 'center 'right) = 'left pad-char : char? = #\space baseline : exact-nonnegative-integer? = 0
Returns a new tblock.
procedure
t : tblock/any b : exact-nonnegative-integer?
Sets the baseline of t to b and returns t.
procedure
(tblock/any x) → boolean?
x : any/c
A fake contract equivalent to any/c.
Used as a placeholder to indicate that the corresponding
argument is turned into a tblock using ->tblock.
procedure
x : tblock/any