package raylib

  1. Overview
  2. Docs
type t'
type t = t' ctyp
val create : Rectangle.t -> int -> int -> int -> int -> NPatchLayout.t -> t

create source left top right bottom layout

val source : t -> Rectangle.t

Texture source rectangle

val left : t -> int

Left border offset

val top : t -> int

Top border offset

val right : t -> int

Right border offset

val bottom : t -> int

Bottom border offset

val layout : t -> NPatchLayout.t

Layout of the n-patch: 3x3, 1x3 or 3x1

val set_source : t -> Rectangle.t -> unit
val set_left : t -> int -> unit
val set_top : t -> int -> unit
val set_right : t -> int -> unit
val set_bottom : t -> int -> unit
val set_layout : t -> NPatchLayout.t -> unit
OCaml

Innovation. Community. Security.