[]Struct gtk::TreePath

pub struct TreePath(_);

Implementations

impl TreePath[src]

pub fn new() -> TreePath[src]

Creates a new TreePath-struct. This refers to a row.

Returns

A newly created TreePath-struct.

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]

Appends a new index to a path.

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

index_

the index

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]

Returns the current depth of self.

Returns

The depth of self

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]

Prepends a new index to a path.

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

index_

the index

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

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]

impl Ord for TreePath[src]

impl PartialEq<TreePath> for TreePath[src]

impl PartialOrd<TreePath> for TreePath[src]

impl StaticType for TreePath

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.