module Zone:sig
..end
type
t = {
|
points : |
(* |
The off-screen matrix
| *) |
|
x : |
|||
|
y : |
(* |
Absolute coordinates of the top-left corner of the zone
| *) |
|
width : |
|||
|
height : |
(* |
Dimmensions of the zone
| *) |
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
Lwt_term.blank
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.Invalid_argument
if the sub zone is not included in
zone
val inner : t -> t
inner zone
returns the inner part of zone