Class (GI Struct)

Template-1.0TemplateScope

Index

Constructors

Properties

$gtype: GType<Scope>

Methods

  • Gets a string if the symbol name is a string.

    Otherwise, null is returned.

    Parameters

    • name: string

    Returns string

    a string or null

  • Gets the names of all symbols within the scope.

    Parameters

    • recursive: boolean

      if the parent scopes should be included

    Returns string[]

    an array containing the names of all symbols within the scope.

  • Imports namespace_ into self so it can be used by expressions.

    Parameters

    • namespace_: string

      the namespace to import into the scope

    • Optionalversion: string

      the version of namespace_ to import

    Returns boolean

    true if successful; otherwise false

  • Sets the value of the symbol named name to a gboolean value of value.

    Parameters

    • name: string

      a name for the symbol

    • value: boolean

      a gboolean

    Returns void

  • Sets the value of the symbol named name to a gdouble value of value.

    Parameters

    • name: string

      a name for the symbol

    • value: number

      a gdouble

    Returns void

  • Sets the value of the symbol named name to a string matching value.

    Parameters

    • name: string

      a name for the symbol

    • Optionalvalue: string

      A string or null.

    Returns void

  • Sets the value of the symbol named name to the strv value.

    Parameters

    • name: string

      a name for the symbol

    • Optionalvalue: string[]

      the value to set it to, or null

    Returns void

  • Sets the value of the symbol named name to the variant value.

    If value has a floating reference, it is consumed.

    Parameters

    • name: string

      a name for the symbol

    • Optionalvalue: GLib.Variant<any>

      the variant to set it to, or null

    Returns void

  • Sets the symbol named name to symbol in scope.

    This differs from tmpl_scope_set() in that it takes ownership of symbol.

    Parameters

    Returns void