Size

A size.

Members

Functions

equal
bool equal(graphene.size.Size b)

Checks whether the two give #graphene_size_t are equal.

initFromSize
graphene.size.Size initFromSize(graphene.size.Size src)

Initializes a #graphene_size_t using the width and height of the given src.

init_
graphene.size.Size init_(float width, float height)

Initializes a #graphene_size_t using the given width and height.

interpolate
void interpolate(graphene.size.Size b, double factor, graphene.size.Size res)

Linearly interpolates the two given #graphene_size_t using the given interpolation factor.

scale
void scale(float factor, graphene.size.Size res)

Scales the components of a #graphene_size_t using the given factor.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
zero
graphene.size.Size zero()

A constant pointer to a zero #graphene_size_t, useful for equality checks and interpolations.

Variables

height
float height;

the height

width
float width;

the width