glum/style

Types

pub type Colorable {
  Background
  Border
  Text
}

Constructors

  • Background
  • Border
  • Text
pub type Orientation {
  Horizontal
  Vertical
}

Constructors

  • Horizontal
  • Vertical
pub type Position {
  Relative
  Absolute(Vector(Two))
}

Constructors

  • Relative
  • Absolute(Vector(Two))
pub type Side {
  None
  Top
  Right
  Bottom
  Left
  Block
  Inline
  All
}

Constructors

  • None
  • Top
  • Right
  • Bottom
  • Left
  • Block
  • Inline
  • All

Values

pub fn color(
  colorable colorable: Colorable,
  color color: Colour,
  element element: fn() -> Element(a),
) -> Element(a)
pub fn content(
  content content: String,
  element element: fn() -> Element(a),
) -> Element(a)
pub fn font_size(
  font_size font_size: Int,
  element element: fn() -> Element(a),
) -> Element(a)
pub fn gap(
  gap gap: Float,
  element element: fn() -> Element(a),
) -> Element(a)
pub fn orient(
  orientation orientation: Orientation,
  element element: fn() -> Element(a),
) -> Element(a)
pub fn pad(
  side side: Side,
  amount amount: Float,
  element element: fn() -> Element(a),
) -> Element(a)
pub fn place(
  position position: Position,
  element element: fn() -> Element(a),
) -> Element(a)
pub fn style(
  style style: fn(Attributes) -> Attributes,
  element element: fn() -> Element(a),
) -> Element(a)
Search Document