Basics
Guides
API Reference
Basics
Guides
API Reference
[28:7] extends: object
A size.
GrapheneSize (Handle = null)
Allocates a new #graphene_size_t. The contents of the returned value are undefined.
Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.equal (object b)
Checks whether the two give #graphene_size_t are equal.
b is a #graphene_size_t.true if the sizes are equal.free ()
Frees the resources allocated by graphene_size_alloc().
None.init (double width, double height)
Initializes a #graphene_size_t using the given @width and @height.
width is the width.height is the height.the initialized #graphene_size_t.init_from_size (object src)
Initializes a #graphene_size_t using the width and height of the given
src is a #graphene_size_t.the initialized #graphene_size_t.interpolate (object b, double factor)
Linearly interpolates the two given #graphene_size_t using the given interpolation @factor.
b is a #graphene_size_t.factor is the linear interpolation factor.res is return location for the interpolated size.None.scale (double factor)
Scales the components of a #graphene_size_t using the given @factor.
factor is the scaling factor.res is return location for the scaled size.None.[12:14] static extends: object
Generated struct layout helper for GIR record Size.
layout ()
Returns the Panama struct layout for
Size.

Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.