Size

A size.

Constructors

this
this(graphene_size_t* graphene_size, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Allocates a new #graphene_size_t.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

equal
bool equal(Size b)

Checks whether the two give #graphene_size_t are equal.

free
void free()

Frees the resources allocated by graphene_size_alloc().

getSizeStruct
graphene_size_t* getSizeStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

init
Size init(float width, float height)

Initializes a #graphene_size_t using the given @width and @height.

initFromSize
Size initFromSize(Size src)

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

interpolate
void interpolate(Size b, double factor, Size res)

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

scale
void scale(float factor, Size res)

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

Properties

height
float height [@property getter]
float height [@property setter]

the height

width
float width [@property getter]
float width [@property setter]

the width

Static functions

getType
GType getType()
zero
Size zero()

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

Variables

graphene_size
graphene_size_t* graphene_size;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta