pub struct TreePath { /* private fields */ }
Expand description
An opaque structure representing a path to a row in a model.
§Deprecated since 4.10
GLib type: Boxed type with copy-on-clone semantics.
Implementations§
Source§impl TreePath
impl TreePath
Sourcepub fn as_ptr(&self) -> *mut GtkTreePath
pub fn as_ptr(&self) -> *mut GtkTreePath
Return the inner pointer to the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut GtkTreePath) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GtkTreePath) -> &Self
Borrows the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GtkTreePath) -> &mut Self
pub unsafe fn from_glib_ptr_borrow_mut(ptr: &mut *mut GtkTreePath) -> &mut Self
Borrows the underlying C value mutably.
Source§impl TreePath
impl TreePath
Sourcepub fn from_indices(indices: &[i32]) -> TreePath
👎Deprecated: Since 4.10
pub fn from_indices(indices: &[i32]) -> TreePath
Sourcepub fn from_string(path: &str) -> Option<TreePath>
👎Deprecated: Since 4.10
pub fn from_string(path: &str) -> Option<TreePath>
Creates a new TreePath
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, None
is returned.
§Deprecated since 4.10
§path
The string representation of a path
§Returns
A newly-created TreePath
Sourcepub fn append_index(&mut self, index_: i32)
👎Deprecated: Since 4.10
pub fn append_index(&mut self, index_: i32)
Sourcepub fn down(&mut self)
👎Deprecated: Since 4.10
pub fn down(&mut self)
Moves @self to point to the first child of the current path.
§Deprecated since 4.10
Sourcepub fn is_ancestor(&self, descendant: &TreePath) -> bool
👎Deprecated: Since 4.10
pub fn is_ancestor(&self, descendant: &TreePath) -> bool
Sourcepub fn is_descendant(&self, ancestor: &TreePath) -> bool
👎Deprecated: Since 4.10
pub fn is_descendant(&self, ancestor: &TreePath) -> bool
Sourcepub fn next(&mut self)
👎Deprecated: Since 4.10
pub fn next(&mut self)
Moves the @self to point to the next node at the current depth.
§Deprecated since 4.10
Sourcepub fn prepend_index(&mut self, index_: i32)
👎Deprecated: Since 4.10
pub fn prepend_index(&mut self, index_: i32)
Trait Implementations§
Source§impl HasParamSpec for TreePath
impl HasParamSpec for TreePath
Source§impl Ord for TreePath
impl Ord for TreePath
Source§impl PartialOrd for TreePath
impl PartialOrd for TreePath
Source§impl StaticType for TreePath
impl StaticType for TreePath
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for TreePath
Auto Trait Implementations§
impl Freeze for TreePath
impl RefUnwindSafe for TreePath
impl !Send for TreePath
impl !Sync for TreePath
impl Unpin for TreePath
impl UnwindSafe for TreePath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)