Size

A size.

Constructors

this
this(float width, float height)

Create a size.Size boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
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.

self
Size self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]
height
float height [@property getter]

Get field height.

height
float height [@property setter]

Set field height.

width
float width [@property getter]

Get field width.

width
float width [@property setter]

Set field width.

Static functions

alloc
graphene.size.Size alloc()

Allocates a new #graphene_size_t.

getGType
GType getGType()
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.