:right-sidebar: True Tree =================================================================== .. currentmodule:: gi.repository.GObject .. class:: Tree(*args, **kwargs) :no-contents-entry: :Constructors: :: new_full(key_compare_func:GLib.CompareDataFunc, key_compare_data=None, key_destroy_func:GLib.DestroyNotify) -> GLib.Tree Constructors ------------ .. rst-class:: interim-class .. class:: Tree :no-index: .. classmethod:: new_full(key_compare_func: ~typing.Callable[[~typing.Any, ~typing.Any, ~typing.Any], int], key_compare_data: ~typing.Any, key_destroy_func: ~typing.Callable[[~typing.Any], None]) -> ~gi.repository.GLib.Tree :param key_compare_func: :param key_compare_data: :param key_destroy_func: Methods ------- .. rst-class:: interim-class .. class:: Tree :no-index: .. method:: destroy() -> None .. method:: foreach(func: ~typing.Callable[[~typing.Any, ~typing.Any, ~typing.Any], bool], user_data: ~typing.Any = None) -> None :param func: :param user_data: .. method:: foreach_node(func: ~typing.Callable[[~gi.repository.GLib.TreeNode, ~typing.Any], bool], user_data: ~typing.Any = None) -> None :param func: :param user_data: .. method:: height() -> int .. method:: insert(key: ~typing.Any = None, value: ~typing.Any = None) -> None :param key: :param value: .. method:: insert_node(key: ~typing.Any = None, value: ~typing.Any = None) -> ~gi.repository.GLib.TreeNode | None :param key: :param value: .. method:: lookup(key: ~typing.Any = None) -> ~typing.Any | None :param key: .. method:: lookup_extended(lookup_key: ~typing.Any = None) -> ~typing.Tuple[bool, ~typing.Any | None, ~typing.Any | None] :param lookup_key: .. method:: lookup_node(key: ~typing.Any = None) -> ~gi.repository.GLib.TreeNode | None :param key: .. method:: lower_bound(key: ~typing.Any = None) -> ~gi.repository.GLib.TreeNode | None :param key: .. method:: nnodes() -> int .. method:: node_first() -> ~gi.repository.GLib.TreeNode | None .. method:: node_last() -> ~gi.repository.GLib.TreeNode | None .. method:: remove(key: ~typing.Any = None) -> bool :param key: .. method:: remove_all() -> None .. method:: replace(key: ~typing.Any = None, value: ~typing.Any = None) -> None :param key: :param value: .. method:: replace_node(key: ~typing.Any = None, value: ~typing.Any = None) -> ~gi.repository.GLib.TreeNode | None :param key: :param value: .. method:: search(search_func: ~typing.Callable[[~typing.Any, ~typing.Any], int], user_data: ~typing.Any = None) -> ~typing.Any | None :param search_func: :param user_data: .. method:: search_node(search_func: ~typing.Callable[[~typing.Any, ~typing.Any], int], user_data: ~typing.Any = None) -> ~gi.repository.GLib.TreeNode | None :param search_func: :param user_data: .. method:: traverse(traverse_func: ~typing.Callable[[~typing.Any, ~typing.Any, ~typing.Any], bool], traverse_type: ~gi.repository.GLib.TraverseType, user_data: ~typing.Any = None) -> None :param traverse_func: :param traverse_type: :param user_data: .. method:: upper_bound(key: ~typing.Any = None) -> ~gi.repository.GLib.TreeNode | None :param key: