graphene.size
Module for [Size] struct
struct Size
Types 1
structSize
A size.
Fields
float widththe widthfloat heightthe heightMethods
void * boxCopy() nothrowgraphene.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