Size

class Size(pointer: <Error class: unknown class><<Error class: unknown class>>)

A size.

Since

1.0

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val grapheneSizePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

the height

Link copied to clipboard

the width

Functions

Link copied to clipboard
fun equal(b: Size): Boolean

Checks whether the two give #graphene_size_t are equal.

Link copied to clipboard
fun free()

Frees the resources allocated by graphene_size_alloc().

Link copied to clipboard
fun init(width: Float, height: Float): Size

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

Link copied to clipboard

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

Link copied to clipboard
fun interpolate(b: Size, factor: Double, res: Size)

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

Link copied to clipboard
fun scale(factor: Float, res: Size)

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