Companion

object Companion : RecordCompanion<VariantType, <Error class: unknown class>>

Functions

Link copied to clipboard
Link copied to clipboard
fun new(typeString: String): VariantType

Creates a new #GVariantType corresponding to the type string given by @type_string. It is appropriate to call g_variant_type_free() on the return value.

Link copied to clipboard

Constructs the type corresponding to an array of elements of the type @type.

Link copied to clipboard

Constructs the type corresponding to a dictionary entry with a key of type @key and a value of type @value.

Link copied to clipboard

Constructs the type corresponding to a maybe instance containing type @type or Nothing.

Link copied to clipboard
fun stringGetDepth(typeString: String): <Error class: unknown class>
Link copied to clipboard
fun stringIsValid(typeString: String): Boolean

Checks if @type_string is a valid GVariant type string. This call is equivalent to calling g_variant_type_string_scan() and confirming that the following character is a nul terminator.

Link copied to clipboard
open override fun wrapRecordPointer(pointer: <Error class: unknown class><out <Error class: unknown class>>): VariantType

Wrap a CPointer pointing to a record of this type into its wrapper class.