brr
Brr_css.Highlight
Highlight objects.
Highlight
brr.ocaml_poke
brr.ocaml_poke_ui
brr.poke
brr.poked
type t
The type for Highlight objects.
val create : unit -> t
create () is a new highlight object.
create ()
val priority : t -> int
priority h is the priority of h.
priority h
h
val size : t -> int
size h is the size of h.
size h
val type' : t -> Jstr.t
type t is the type of h.
val has : t -> Brr.Range.t -> bool
has h r is true if h has the range r.
has h r
true
r
val add : t -> Brr.Range.t -> unit
add h r adds adds the range r to h.
add h r
val clear : t -> unit
clear h removes all range.
clear h
val 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.
delete h r
false
val fold : (Brr.Range.t -> 'acc -> 'acc) -> t -> 'acc -> 'acc
fold f h acc folds f over the ranges of h starting with acc.
fold f h acc
f
acc