Skip to content

API Reference / @gtkx/runtime / getBoxedValue

Function: getBoxedValue()

getBoxedValue(value): object | null

Defined in: packages/runtime/dist/value.d.ts:27

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

Released under the MPL-2.0 License.