graphene.size
Module for [Size] struct
struct Size
Types 1
structSize
A size.
Fields
float widththe widthfloat heightthe heightMethods
void * boxCopy()bool equal(graphene.size.Size b)Checks whether the two give #graphenesizet are equal.graphene.size.Size init_(float width, float height)Initializes a #graphenesizet using the given width and height.graphene.size.Size initFromSize(graphene.size.Size src)Initializes a #graphenesizet using the width and height of the given `s`rc.void interpolate(graphene.size.Size b, double factor, out graphene.size.Size res)Linearly interpolates the two given #graphenesizet using the given interpolation factor.void scale(float factor, out graphene.size.Size res)Scales the components of a #graphenesizet using the given factor.graphene.size.Size zero()A constant pointer to a zero #graphenesizet, useful for equality checks and interpolations. Returns: a constant size