package bogue

  1. Overview
  2. Docs

Line and box styles.

Dependency graph
type t
type line_style =
  1. | Solid
  2. | Dotted of int * int

not implemented

type line
type border
type shadow
type gradient
type background =
  1. | Image of Image.t
    (*

    pattern image

    *)
  2. | Solid of Draw.color
  3. | Gradient of gradient
val create : ?background:background -> ?border:border -> ?shadow:shadow -> unit -> t
val empty : t
val of_bg : background -> t
val of_border : border -> t
val of_shadow : shadow -> t
val with_bg : background -> t -> t
val with_border : border -> t -> t
val with_shadow : shadow -> t -> t

Constructing backgrounds

val theme_bg : background
val color_bg : Draw.color -> background
val opaque_bg : Draw.rgb -> background
val image_bg : Image.t -> background
val gradient : ?angle:float -> Draw.color list -> background
val hgradient : Draw.color list -> background
val vgradient : Draw.color list -> background

Constructing borders

val mk_line : ?color:Draw.color -> ?width:int -> ?style:line_style -> unit -> line
val mk_border : ?radius:int -> line -> border

Note: currently, a border with positive radius is not compatible with a transparent background.

Constructing shadows

val mk_shadow : ?offset:(int * int) -> ?size:int -> ?width:int -> ?radius:int -> unit -> shadow
OCaml

Innovation. Community. Security.