graphene.size

Module for [Size] struct

struct Size

Types 1

structSize

A size.

Fields
float widththe width
float heightthe height
Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
void * boxCopy() nothrow
bool equal(graphene.size.Size b) nothrowChecks whether the two give #graphene_size_t are equal.
graphene.size.Size init_(float width, float height) nothrowInitializes a #graphene_size_t using the given width and height.
graphene.size.Size initFromSize(graphene.size.Size src) nothrowInitializes a #graphene_size_t using the width and height of the given `s`rc.
void interpolate(graphene.size.Size b, double factor, out graphene.size.Size res) nothrowLinearly interpolates the two given #graphene_size_t using the given interpolation factor.
void scale(float factor, out graphene.size.Size res) nothrowScales the components of a #graphene_size_t using the given factor.
graphene.size.Size zero() static nothrowA constant pointer to a zero #graphene_size_t, useful for equality checks and interpolations. Returns: a constant size