package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.graphene/Ocgtk_graphene/Graphene/Wrappers/Size/index.html

Module Wrappers.Size

type t = [ `size ] Gobject.obj

A size.

val alloc : unit -> t

Create a new Size

val scale : t -> float -> t

Scales the components of a #graphene_size_t using the given @factor.

val interpolate : t -> t -> float -> t

Linearly interpolates the two given #graphene_size_t using the given interpolation @factor.

val init_from_size : t -> t -> t

Initializes a #graphene_size_t using the width and height of the given @src.

val init : t -> float -> float -> t

Initializes a #graphene_size_t using the given @width and @height.

val equal : t -> t -> bool

Checks whether the two give #graphene_size_t are equal.

val get_type : unit -> Gobject.Type.t