[−]Struct gtk::TreePath
Implementations
impl TreePath
[src]
pub fn new() -> TreePath
[src]
pub fn new_first() -> TreePath
[src]
Creates a new TreePath
-struct.
The string representation of this path is “0”.
Returns
A new TreePath
-struct
pub fn from_indicesv(indices: &[i32]) -> TreePath
[src]
pub fn from_string(path: &str) -> TreePath
[src]
pub fn append_index(&mut self, index_: i32)
[src]
pub fn down(&mut self)
[src]
Moves self
to point to the first child of the current path.
pub fn get_depth(&self) -> i32
[src]
pub fn get_indices_with_depth(&mut self) -> Vec<i32>
[src]
Returns the current indices of self
.
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.
depth
return location for number of elements
returned in the integer array, or None
Returns
The current
indices, or None
pub fn is_ancestor(&self, descendant: &TreePath) -> bool
[src]
Returns true
if descendant
is a descendant of self
.
descendant
another TreePath
-struct
Returns
true
if descendant
is contained inside self
pub fn is_descendant(&self, ancestor: &TreePath) -> bool
[src]
Returns true
if self
is a descendant of ancestor
.
ancestor
another TreePath
-struct
Returns
true
if ancestor
contains self
somewhere below it
pub fn next(&mut self)
[src]
Moves the self
to point to the next node at the current depth.
pub fn prepend_index(&mut self, index_: i32)
[src]
pub fn prev(&mut self) -> bool
[src]
Moves the self
to point to the previous node at the
current depth, if it exists.
Returns
true
if self
has a previous node, and
the move was made
pub fn up(&mut self) -> bool
[src]
Moves the self
to point to its parent node, if it has a parent.
Returns
true
if self
has a parent, and the move was made
impl TreePath
[src]
pub fn get_indices(&self) -> Vec<i32>
[src]
Returns the current indices of self
.
This is an array of integers, each representing a node in a tree. This value should not be freed.
The length of the array can be obtained with TreePath::get_depth
.
Returns
The current indices, or None
Trait Implementations
impl Clone for TreePath
fn clone(&self) -> TreePath
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TreePath
[src]
impl Default for TreePath
[src]
impl Display for TreePath
[src]
impl Eq for TreePath
[src]
impl Hash for TreePath
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for TreePath
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TreePath> for TreePath
[src]
impl PartialOrd<TreePath> for TreePath
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StaticType for TreePath
fn static_type() -> Type
Auto Trait Implementations
impl RefUnwindSafe for TreePath
impl !Send for TreePath
impl !Sync for TreePath
impl Unpin for TreePath
impl UnwindSafe for TreePath
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToSendValue for T where
T: ToValue + SetValue + Send + ?Sized,
T: ToValue + SetValue + Send + ?Sized,
fn to_send_value(&self) -> SendValue
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToValue for T where
T: SetValue + ?Sized,
T: SetValue + ?Sized,
fn to_value(&self) -> Value
fn to_value_type(&self) -> Type
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,