Gjsify LogoGjsify Logo

A #GValueArray contains an array of #GValue elements.

record

Hierarchy

  • ValueArray

Index

Constructors

  • Allocate and initialize a new #GValueArray, optionally preserve space for n_prealloced elements. New arrays always contain 0 elements, regardless of the value of n_prealloced.

    Parameters

    • nPrealloced: number

      number of values to preallocate space for

    Returns GObject.ValueArray

Properties

nValues: number

number of values contained in the array

field
values: any

array of values

field
name: string

Methods

  • Insert a copy of value as last element of value_array. If value is %NULL, an uninitialized value is appended.

    Parameters

    • value: any

      #GValue to copy into #GValueArray, or %NULL

    Returns GObject.ValueArray

  • getNth(index: number): any
  • Return a pointer to the value at index_ containd in value_array.

    Parameters

    • index: number

      index of the value of interest

    Returns any

  • Insert a copy of value at specified position into value_array. If value is %NULL, an uninitialized value is inserted.

    Parameters

    • index: number

      insertion position, must be <= value_array->;n_values

    • value: any

      #GValue to copy into #GValueArray, or %NULL

    Returns GObject.ValueArray

  • Insert a copy of value as first element of value_array. If value is %NULL, an uninitialized value is prepended.

    Parameters

    • value: any

      #GValue to copy into #GValueArray, or %NULL

    Returns GObject.ValueArray

  • Remove the value at position index_ from value_array.

    Parameters

    • index: number

      position of value to remove, which must be less than value_array->n_values

    Returns GObject.ValueArray

  • Sort value_array using compare_func to compare the elements according to the semantics of #GCompareDataFunc.

    The current implementation uses the same sorting algorithm as standard C qsort() function.

    Parameters

    Returns GObject.ValueArray

  • Allocate and initialize a new #GValueArray, optionally preserve space for n_prealloced elements. New arrays always contain 0 elements, regardless of the value of n_prealloced.

    Parameters

    • nPrealloced: number

      number of values to preallocate space for

    Returns GObject.ValueArray

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method