Gjsify LogoGjsify Logo

Hierarchy

  • TreePath

Index

Constructors

Properties

name: string

Methods

  • append_index(index_: number): void
  • Appends a new index to a path.

    As a result, the depth of the path is increased.

    Parameters

    • index_: number

      the index

    Returns void

  • Compares two paths.

    If a appears before b in a tree, then -1 is returned. If b appears before a, then 1 is returned. If the two nodes are equal, then 0 is returned.

    Parameters

    Returns number

  • down(): void
  • free(): void
  • get_depth(): number
  • get_indices(): number[]
  • Returns the current indices of path.

    This is an array of integers, each representing a node in a tree. It also returns the number of elements in the array. The array should not be freed.

    Returns number[]

  • next(): void
  • prepend_index(index_: number): void
  • Prepends a new index to a path.

    As a result, the depth of the path is increased.

    Parameters

    • index_: number

      the index

    Returns void

  • prev(): boolean
  • to_string(): string
  • Generates a string representation of the path.

    This string is a “:” separated list of numbers. For example, “4:10:0:3” would be an acceptable return value for this string.

    Returns string

  • up(): boolean
  • Creates a new #GtkTreePath-struct initialized to path.

    path is expected to be a colon separated list of numbers. For example, the string “10:4:0” would create a path of depth 3 pointing to the 11th child of the root node, the 5th child of that 11th child, and the 1st child of that 5th child. If an invalid path string is passed in, %NULL is returned.

    Parameters

    • path: string

      The string representation of a path

    Returns Gtk.TreePath

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