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.

Static functions

alloc
graphene.size.Size alloc()

Allocates a new #graphene_size_t.

zero
graphene.size.Size zero()

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

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.