Liking cljdoc? Tell your friends :D

charm.style.border

Border rendering for styled boxes.

Provides predefined border styles and functions for rendering borders around text content.

Border rendering for styled boxes.

Provides predefined border styles and functions for
rendering borders around text content.
raw docstring

apply-borderclj

(apply-border text
              &
              {:keys [border top? right? bottom? left? fg bg]
               :or
                 {border normal top? true right? true bottom? true left? true}})

Apply a border around text content.

Options: :border - Border definition (default: normal) :top? - Show top border (default: true) :right? - Show right border (default: true) :bottom? - Show bottom border (default: true) :left? - Show left border (default: true) :fg - Border foreground color :bg - Border background color

Apply a border around text content.

Options:
  :border      - Border definition (default: normal)
  :top?        - Show top border (default: true)
  :right?      - Show right border (default: true)
  :bottom?     - Show bottom border (default: true)
  :left?       - Show left border (default: true)
  :fg          - Border foreground color
  :bg          - Border background color
sourceraw docstring

blockclj

Block/filled border.

Block/filled border.
sourceraw docstring

borderclj

(border {:keys [top bottom left right top-left top-right bottom-left
                bottom-right]})

Create a border definition.

Options: :top, :bottom, :left, :right - Edge characters :top-left, :top-right, :bottom-left, :bottom-right - Corner characters

Create a border definition.

Options:
  :top, :bottom, :left, :right - Edge characters
  :top-left, :top-right, :bottom-left, :bottom-right - Corner characters
sourceraw docstring

border-heightclj

(border-height & {:keys [top? bottom?] :or {top? true bottom? true}})

Calculate the total vertical height added by a border.

Calculate the total vertical height added by a border.
sourceraw docstring

border-widthclj

(border-width border & {:keys [left? right?] :or {left? true right? true}})

Calculate the total horizontal width added by a border.

Calculate the total horizontal width added by a border.
sourceraw docstring

double-borderclj

Double-line border.

Double-line border.
sourceraw docstring

hiddenclj

Hidden border (spaces).

Hidden border (spaces).
sourceraw docstring

inner-half-blockclj

Inner half-block border.

Inner half-block border.
sourceraw docstring

no-borderclj

No border (empty strings).

No border (empty strings).
sourceraw docstring

normalclj

Normal single-line border.

Normal single-line border.
sourceraw docstring

outer-half-blockclj

Outer half-block border.

Outer half-block border.
sourceraw docstring

roundedclj

Rounded corner border.

Rounded corner border.
sourceraw docstring

thickclj

Thick double-line border.

Thick double-line border.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close