Gjsify LogoGjsify Logo

Hierarchy

  • Scope

Index

Constructors

Properties

name: string

Methods

  • Creates a new scope to contain variables and custom expressions, If parent is set, the parent scope will be inherited.

    Returns Template.Scope

  • If the symbol already exists, it will be overwritten.

    If symbol is %NULL, the symbol will be removed from scope.

    Parameters

    • name: string

      the name of the symbol

    • symbol: Template.Symbol

      An #TmplSymbol or %NULL.

    Returns void

  • setBoolean(name: string, value: boolean): void
  • 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

  • setDouble(name: string, value: number): 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 the object value.

    Parameters

    • name: string

      a name for the symbol

    • value: GObject.Object

      a #GObject or %NULL.

    Returns void

  • setString(name: string, value: string): void
  • Sets the value of the symbol named name to a string matching value.

    Parameters

    • name: string

      a name for the symbol

    • value: string

      A string or %NULL.

    Returns void

  • setStrv(name: string, value: string[]): void
  • Sets the value of the symbol named name to the strv value.

    Parameters

    • name: string

      a name for the symbol

    • value: string[]

      the value to set it to, or %NULL

    Returns void

  • setValue(name: string, value: any): void
  • Sets the contents of the symbol named name to the value value.

    Parameters

    • name: string

      a name for the symbol

    • value: any

      A #GValue 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

    • value: GLib.Variant

      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

    • name: string

      The name of the symbol

    • symbol: Template.Symbol

      A #TmplSymbol or %NULL

    Returns void

  • unref(): void

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