Skip to content

GLib.TreeNode

record (struct)

An opaque type which identifies a specific node in a Tree.

Methods

key

def key(self) -> int | None

Gets the key stored at a particular tree node.

next

def next(self) -> TreeNode | None

Returns the next in-order node of the tree, or None if the passed node was already the last one.

previous

def previous(self) -> TreeNode | None

Returns the previous in-order node of the tree, or None if the passed node was already the first one.

value

def value(self) -> int | None

Gets the value stored at a particular tree node.