Liking cljdoc? Tell your friends :D

pp-grid.layout


===clj

(=== x-padding & grids)

Horizontally aligns given grids with some defaults.

Just a convenience wrapper for halign to accept grids as args and use some default values for padding and centering.

Horizontally aligns given grids with some defaults.

Just a convenience wrapper for halign to accept grids as args and
use some default values for padding and centering.
sourceraw docstring

halignclj

(halign grids)
(halign grids x-padding)
(halign grids x-padding center?)

Constructs a grid containing given grids aligned horizontally.

For example, (halign [(text "A") (text "B") (text "C")]) is ABC.

Constructs a grid containing given grids aligned horizontally.

For example, (halign [(text "A") (text "B") (text "C")]) is ABC.
sourceraw docstring

hspacerclj

(hspacer n)

Constructs a horizontal space of given length.

For example, (hspacer 5) is " ".

Constructs a horizontal space of given length.

For example, (hspacer 5) is "     ".
sourceraw docstring

pullclj

(pull g dx dy)

Pulls a grid by given amounts horizontally and vertically.

Just a convenience function for transforming with tf-translate. Useful for tweaking alignments.

Pulls a grid by given amounts horizontally and vertically.

Just a convenience function for transforming with tf-translate. Useful
for tweaking alignments.
sourceraw docstring

spacerclj

(spacer width height)

Constructs a rectangular space of given width and height.

Constructs a rectangular space of given width and height.
sourceraw docstring

valignclj

(valign grids)
(valign grids y-padding)
(valign grids y-padding center?)

Constructs a grid containing given grids aligned vertically.

For example, (valign [(text "A") (text "B") (text "C")]) is A B C

Constructs a grid containing given grids aligned vertically.

For example, (valign [(text "A") (text "B") (text "C")]) is
A
B
C
sourceraw docstring

vspacerclj

(vspacer n)

Constructs a vertical space of given length.

For example, (vspacer 5) is (space) (space) (space) (space) (space)

Constructs a vertical space of given length.

For example, (vspacer 5) is
(space)
(space)
(space)
(space)
(space)
sourceraw docstring

||clj

(|| y-padding & grids)

Vertically aligns given grids with some defaults.

Just a convenience wrapper for valign to accept grids as args and use some default values for padding and centering.

Vertically aligns given grids with some defaults.

Just a convenience wrapper for valign to accept grids as args and
use some default values for padding and centering.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close