Size

class Size(val grapheneSizePointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

A size.

Since

1.0

Constructors

Link copied to clipboard
constructor()

Allocate a new Size.

constructor(scope: <Error class: unknown class>)

Allocate a new Size using the provided AutofreeScope.

constructor(width: <Error class: unknown class>, height: <Error class: unknown class>)

Allocate a new Size.

constructor(width: <Error class: unknown class>, height: <Error class: unknown class>, scope: <Error class: unknown class>)

Allocate a new Size using the provided AutofreeScope.

constructor(grapheneSizePointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

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
var height: <Error class: unknown class>

the height

Link copied to clipboard
var width: <Error class: unknown class>

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: <Error class: unknown class>, height: <Error class: unknown class>): 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: <Error class: unknown class>, res: Size)

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

Link copied to clipboard
fun scale(factor: <Error class: unknown class>, res: Size)

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

Link copied to clipboard
open override fun toString(): String