module Zone: sig .. end
Off-screen zones
type t = {
|
points :Lwt_term.point array array; |
|
x :int; |
|
y :int; |
|
width :int; |
|
height :int; |
}
val points : t -> Lwt_term.point array array
val x : t -> int
val y : t -> int
val width : t -> int
val height : t -> int
val make : width:int -> height:int -> t
val sub : zone:t ->
x:int -> y:int -> width:int -> height:int -> t
sub ~zone ~x ~y ~width ~height creates a sub-zone of
zone. x and y are relatives to the zone top left corner.
Raises Invalid_argument if the sub zone is not included in
zone
val inner : t -> t
inner zone returns the inner part of zone