8.16.0.4
7 Drawing
(require tui/ubuf/drawing) | package: tui-ubuf |
This module provides basic drawing procedures that actually render something onto a ubuf?.
procedure
(ubuf-clear! ub [ #:char char #:fg fg #:bg bg #:bold bold #:underline underline #:italic italic #:blink blink #:update-dirty update-dirty?]) → void? ub : ubuf? char : char? = #\space fg : fixnum? = 7 bg : fixnum? = 0 bold : boolean? = #f underline : boolean? = #f italic : boolean? = #f blink : boolean? = #f update-dirty? : boolean? = #f
Clears the abuf? with specified character, color
and background attributes.
If set-dirty is #t, sets the acell-dirty? flag on the destination cells if they have been changed.
procedure
(ubuf-bar! ub x y w h [ #:char char #:fg fg #:bg bg #:bold bold #:underline underline #:italic italic #:blink blink #:update-dirty update-dirty?]) → void? ub : ubuf? x : fixnum? y : fixnum? w : fixnum? h : fixnum? char : char? = #\space fg : fixnum? = 7 bg : fixnum? = 0 bold : boolean? = #f underline : boolean? = #f italic : boolean? = #f blink : boolean? = #f update-dirty? : boolean? = #f
Draws a filled rectangle (a bar) of given width and height with
character, color and background attributes.
If set-dirty is #t, sets the acell-dirty? flag on the destination cells if they have been changed.
procedure
(ubuf-putstring! ub x y s [ #:fg fg #:bg bg #:bold bold #:underline underline #:italic italic #:blink blink #:update-dirty update-dirty?]) → void? ub : ubuf? x : fixnum? y : fixnum? s : string? fg : fixnum? = 7 bg : fixnum? = 0 bold : boolean? = #f underline : boolean? = #f italic : boolean? = #f blink : boolean? = #f update-dirty? : boolean? = #f
Draws given str to given position in the picture in given color.
If set-dirty is #t, sets the acell-dirty? flag on the destination cells if they have been changed.