package bogue

  1. Overview
  2. Docs

Module Bogue.StyleSource

Line and box styles.

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

not implemented

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

    pattern image

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

Constructing backgrounds

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

Constructing borders

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

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

Constructing shadows

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

Innovation. Community. Security.