package brr

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Brr_css.HighlightSource

Highlight objects.

Sourcetype t

The type for Highlight objects.

Sourceval create : unit -> t

create () is a new highlight object.

Sourceval priority : t -> int

priority h is the priority of h.

Sourceval size : t -> int

size h is the size of h.

Sourceval type' : t -> Jstr.t

type t is the type of h.

Sourceval has : t -> Brr.Range.t -> bool

has h r is true if h has the range r.

Sourceval add : t -> Brr.Range.t -> unit

add h r adds adds the range r to h.

Sourceval clear : t -> unit

clear h removes all range.

Sourceval delete : t -> Brr.Range.t -> bool

delete h r deletes the range r and returns true if there was such an range and false otherwise.

Sourceval fold : (Brr.Range.t -> 'acc -> 'acc) -> t -> 'acc -> 'acc

fold f h acc folds f over the ranges of h starting with acc.