Trait gtk::prelude::GtkListStoreExt [−][src]
pub trait GtkListStoreExt: 'static { fn append(&self) -> TreeIter; fn clear(&self); fn insert(&self, position: i32) -> TreeIter; fn insert_after(&self, sibling: Option<&TreeIter>) -> TreeIter; fn insert_before(&self, sibling: Option<&TreeIter>) -> TreeIter; fn iter_is_valid(&self, iter: &TreeIter) -> bool; fn move_after(&self, iter: &TreeIter, position: Option<&TreeIter>); fn move_before(&self, iter: &TreeIter, position: Option<&TreeIter>); fn prepend(&self) -> TreeIter; fn remove(&self, iter: &TreeIter) -> bool; fn swap(&self, a: &TreeIter, b: &TreeIter); }
Expand description
Required methods
Appends a new row to self
. iter
will be changed to point to this new
row. The row will be empty after this function is called. To fill in
values, you need to call gtk_list_store_set()
or GtkListStoreExtManual::set_value()
.
Returns
iter
An unset TreeIter
to set to the appended row
Creates a new row at position
. iter
will be changed to point to this new
row. If position
is -1 or is larger than the number of rows on the list,
then the new row will be appended to the list. The row will be empty after
this function is called. To fill in values, you need to call
gtk_list_store_set()
or GtkListStoreExtManual::set_value()
.
position
position to insert the new row, or -1 for last
Returns
iter
An unset TreeIter
to set to the new row
fn insert_after(&self, sibling: Option<&TreeIter>) -> TreeIter
fn insert_after(&self, sibling: Option<&TreeIter>) -> TreeIter
Inserts a new row after sibling
. If sibling
is None
, then the row will be
prepended to the beginning of the list. iter
will be changed to point to
this new row. The row will be empty after this function is called. To fill
in values, you need to call gtk_list_store_set()
or GtkListStoreExtManual::set_value()
.
sibling
Returns
iter
An unset TreeIter
to set to the new row
fn insert_before(&self, sibling: Option<&TreeIter>) -> TreeIter
fn insert_before(&self, sibling: Option<&TreeIter>) -> TreeIter
Inserts a new row before sibling
. If sibling
is None
, then the row will
be appended to the end of the list. iter
will be changed to point to this
new row. The row will be empty after this function is called. To fill in
values, you need to call gtk_list_store_set()
or GtkListStoreExtManual::set_value()
.
sibling
Returns
iter
An unset TreeIter
to set to the new row
fn iter_is_valid(&self, iter: &TreeIter) -> bool
fn iter_is_valid(&self, iter: &TreeIter) -> bool
fn move_after(&self, iter: &TreeIter, position: Option<&TreeIter>)
fn move_after(&self, iter: &TreeIter, position: Option<&TreeIter>)
fn move_before(&self, iter: &TreeIter, position: Option<&TreeIter>)
fn move_before(&self, iter: &TreeIter, position: Option<&TreeIter>)
Prepends a new row to self
. iter
will be changed to point to this new
row. The row will be empty after this function is called. To fill in
values, you need to call gtk_list_store_set()
or GtkListStoreExtManual::set_value()
.
Returns
iter
An unset TreeIter
to set to the prepend row