Size
Object Hierarchy:
Description:
[ CCode ( cname = "graphene_size_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "graphene_size_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public struct Size
Content:
Static methods:
Methods:
- public bool equal (Size b)
Checks whether the two give Size are
equal.
- public unowned Size? init (float width, float height)
Initializes a Size using the given
width
and height
.
- public unowned Size? init_from_size (Size src)
Initializes a Size using the width and
height of the given src
.
- public Size interpolate (Size b, double factor)
Linearly interpolates the two given Size
using the given interpolation factor
.
- public Size scale (float factor)
Scales the components of a Size using the
given factor
.
Fields: