Skip to content

API Reference / @gtkx/runtime / getBoxedValue

Function: getBoxedValue() ​

getBoxedValue(value): object | null

Defined in: packages/runtime/src/value.ts:383

Duplicates the boxed value held by a GValue and returns the copy wrapped in the class its GType resolves to, or null when the GValue holds no boxed type. A GByteArray payload is copied into a Uint8Array instead of being wrapped.

Parameters ​

value ​

ExternalObject<Handle>

Returns ​

object | null