package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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