pub struct TreeStore { /* private fields */ }
Expand description
Use TreeListModel
instead
A tree-like data structure that can be used with the TreeView
.
The TreeStore
object is a list model for use with a TreeView
widget. It implements the TreeModel
interface, and consequently,
can use all of the methods available there. It also implements the
TreeSortable
interface so it can be sorted by the view.
Finally, it also implements the tree dragcrate::TreeDragSource
and dropcrate::TreeDragDest interfaces.
TreeStore
is deprecated since GTK 4.10, and should not be used in newly
written code. You should use TreeListModel
for a tree-like model
object.
§GtkTreeStore as GtkBuildable
The GtkTreeStore implementation of the Buildable
interface allows
to specify the model columns with a <columns>
element that may contain
multiple <column>
elements, each specifying one model column. The “type”
attribute specifies the data type for the column.
An example of a UI Definition fragment for a tree store:
<object class="GtkTreeStore">
<columns>
<column type="gchararray"/>
<column type="gchararray"/>
<column type="gint"/>
</columns>
</object>
§Implements
[trait@glib::ObjectExt
], BuildableExt
, TreeDragDestExt
, TreeDragSourceExt
, TreeModelExt
, TreeSortableExt
, TreeModelExtManual
, TreeSortableExtManual
Implementations§
source§impl TreeStore
impl TreeStore
sourcepub fn append(&self, parent: Option<&TreeIter>) -> TreeIter
👎Deprecated: Since 4.10
pub fn append(&self, parent: Option<&TreeIter>) -> TreeIter
Appends a new row to @self.
If @parent is non-None
, then it will append the new row after the last
child of @parent, otherwise it will append a row to the top level.
The @iter parameter 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_tree_store_set() or gtk_tree_store_set_value().
§Deprecated since 4.10
Use TreeListModel
instead
§parent
A valid TreeIter
§Returns
§iter
An unset TreeIter
to set to the appended row
sourcepub fn insert(&self, parent: Option<&TreeIter>, position: i32) -> TreeIter
👎Deprecated: Since 4.10
pub fn insert(&self, parent: Option<&TreeIter>, position: i32) -> TreeIter
Creates a new row at @position.
If parent is non-None
, then the row will be made a child of @parent.
Otherwise, the row will be created at the toplevel.
If @position is -1
or is larger than the number of rows at that level,
then the new row will be inserted to the end of the list.
The @iter parameter 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_tree_store_set() or gtk_tree_store_set_value().
§Deprecated since 4.10
Use TreeListModel
instead
§parent
A valid TreeIter
§position
position to insert the new row, or -1 for last
§Returns
§iter
An unset TreeIter
to set to the new row
sourcepub fn insert_after(
&self,
parent: Option<&TreeIter>,
sibling: Option<&TreeIter>
) -> TreeIter
👎Deprecated: Since 4.10
pub fn insert_after( &self, parent: Option<&TreeIter>, sibling: Option<&TreeIter> ) -> TreeIter
Inserts a new row after @sibling.
If @sibling is None
, then the row will be prepended to @parent’s children.
If @parent and @sibling are None
, then the row will be prepended to the
toplevel.
If both @sibling and @parent are set, then @parent must be the parent of @sibling. When @sibling is set, @parent is optional.
The @iter parameter 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_tree_store_set() or gtk_tree_store_set_value().
§Deprecated since 4.10
Use TreeListModel
instead
§parent
A valid TreeIter
§sibling
A valid TreeIter
§Returns
§iter
An unset TreeIter
to set to the new row
sourcepub fn insert_before(
&self,
parent: Option<&TreeIter>,
sibling: Option<&TreeIter>
) -> TreeIter
👎Deprecated: Since 4.10
pub fn insert_before( &self, parent: Option<&TreeIter>, sibling: Option<&TreeIter> ) -> TreeIter
Inserts a new row before @sibling.
If @sibling is None
, then the row will be appended to @parent’s children.
If @parent and @sibling are None
, then the row will be appended to the
toplevel.
If both @sibling and @parent are set, then @parent must be the parent of @sibling. When @sibling is set, @parent is optional.
The @iter parameter 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_tree_store_set() or gtk_tree_store_set_value().
§Deprecated since 4.10
Use TreeListModel
instead
§parent
A valid TreeIter
§sibling
A valid TreeIter
§Returns
§iter
An unset TreeIter
to set to the new row
sourcepub fn is_ancestor(&self, iter: &TreeIter, descendant: &TreeIter) -> bool
👎Deprecated: Since 4.10
pub fn is_ancestor(&self, iter: &TreeIter, descendant: &TreeIter) -> bool
sourcepub fn iter_depth(&self, iter: &TreeIter) -> i32
👎Deprecated: Since 4.10
pub fn iter_depth(&self, iter: &TreeIter) -> i32
Returns the depth of the position pointed by the iterator
The depth will be 0 for anything on the root level, 1 for anything down a level, etc.
§Deprecated since 4.10
Use TreeListModel
instead
§iter
A valid TreeIter
§Returns
The depth of the position pointed by the iterator
sourcepub fn iter_is_valid(&self, iter: &TreeIter) -> bool
👎Deprecated: Since 4.10
pub fn iter_is_valid(&self, iter: &TreeIter) -> bool
Checks if the given iter is a valid iter for this TreeStore
.
This function is slow. Only use it for debugging and/or testing purposes.
§Deprecated since 4.10
Use TreeListModel
instead
§iter
the iterator to check
§Returns
true if the iter is valid, and false otherwise
sourcepub fn move_after(&self, iter: &TreeIter, position: Option<&TreeIter>)
👎Deprecated: Since 4.10
pub fn move_after(&self, iter: &TreeIter, position: Option<&TreeIter>)
Moves @iter in @self to the position after @position.
@iter and @position should be in the same level.
Note that this function only works with unsorted stores.
If @position is None
, @iter will be moved to the start of the level.
§Deprecated since 4.10
Use TreeListModel
instead
§iter
A TreeIter
.
§position
A TreeIter
.
sourcepub fn move_before(&self, iter: &TreeIter, position: Option<&TreeIter>)
👎Deprecated: Since 4.10
pub fn move_before(&self, iter: &TreeIter, position: Option<&TreeIter>)
Moves @iter in @self to the position before @position.
@iter and @position should be in the same level.
Note that this function only works with unsorted stores.
If @position is None
, @iter will be moved to the end of the level.
§Deprecated since 4.10
Use TreeListModel
instead
§iter
A TreeIter
§position
A TreeIter
sourcepub fn prepend(&self, parent: Option<&TreeIter>) -> TreeIter
👎Deprecated: Since 4.10
pub fn prepend(&self, parent: Option<&TreeIter>) -> TreeIter
Prepends a new row to @self.
If @parent is non-None
, then it will prepend the new row before the first
child of @parent, otherwise it will prepend a row to the top level. The
iter
parameter 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_tree_store_set() or gtk_tree_store_set_value().
§Deprecated since 4.10
Use TreeListModel
instead
§parent
A valid TreeIter
§Returns
§iter
An unset TreeIter
to set to the prepended row
sourcepub fn remove(&self, iter: &TreeIter) -> bool
👎Deprecated: Since 4.10
pub fn remove(&self, iter: &TreeIter) -> bool
Removes @iter from @self.
After being removed, @iter is set to the next valid row at that level, or invalidated if it previously pointed to the last one.
§Deprecated since 4.10
Use TreeListModel
instead
§iter
A valid TreeIter
§Returns
true if @iter is still valid, and false otherwise
source§impl TreeStore
impl TreeStore
sourcepub fn new(column_types: &[Type]) -> Self
👎Deprecated: Since 4.10
pub fn new(column_types: &[Type]) -> Self
Creates a new tree store.
The tree store will have @n_columns, with each column using the corresponding type passed to this function.
Note that only types derived from standard GObject fundamental types are supported.
As an example:
⚠️ The following code is in c ⚠️
gtk_tree_store_new (3, G_TYPE_INT, G_TYPE_STRING, GDK_TYPE_TEXTURE);
will create a new TreeStore
with three columns of type
int
, gchararray
, and gdk::Texture
respectively.
§Deprecated since 4.10
Use TreeListModel
instead
§Returns
a new TreeStore
sourcepub fn insert_with_values(
&self,
parent: Option<&TreeIter>,
position: Option<u32>,
columns_and_values: &[(u32, &dyn ToValue)]
) -> TreeIter
👎Deprecated: Since 4.10
pub fn insert_with_values( &self, parent: Option<&TreeIter>, position: Option<u32>, columns_and_values: &[(u32, &dyn ToValue)] ) -> TreeIter
A variant of gtk_tree_store_insert_with_values() which takes the columns and values as two arrays, instead of varargs.
This function is mainly intended for language bindings.
§Deprecated since 4.10
Use TreeListModel
instead
§parent
A valid TreeIter
§position
position to insert the new row, or -1 for last
§columns
an array of column numbers
§values
an array of GValues
§Returns
§iter
An unset TreeIter
to set the new row
sourcepub fn reorder(&self, parent: &TreeIter, new_order: &[u32])
👎Deprecated: Since 4.10
pub fn reorder(&self, parent: &TreeIter, new_order: &[u32])
Reorders the children of @parent in @self to follow the order indicated by @new_order.
Note that this function only works with unsorted stores.
§Deprecated since 4.10
Use TreeListModel
instead
§parent
the parent of the children to re-order
§new_order
an array of integers mapping the new position
of each child to its old position before the re-ordering,
i.e. new_order[newpos] = oldpos
sourcepub fn set(&self, iter: &TreeIter, columns_and_values: &[(u32, &dyn ToValue)])
👎Deprecated: Since 4.10
pub fn set(&self, iter: &TreeIter, columns_and_values: &[(u32, &dyn ToValue)])
Sets the value of one or more cells in the row referenced by @iter.
The variable argument list should contain integer column numbers, each column number followed by the value to be set.
The list is terminated by a value of -1
.
For example, to set column 0 with type G_TYPE_STRING
to “Foo”, you would
write
⚠️ The following code is in c ⚠️
gtk_tree_store_set (store, iter, 0, "Foo", -1);
The value will be referenced by the store if it is a G_TYPE_OBJECT
, and it
will be copied if it is a G_TYPE_STRING
or G_TYPE_BOXED
.
§Deprecated since 4.10
Use TreeListModel
instead
§iter
A valid TreeIter
for the row being modified
sourcepub fn set_column_types(&self, types: &[Type])
👎Deprecated: Since 4.10
pub fn set_column_types(&self, types: &[Type])
Sets the type of the columns in a tree store.
This function is meant primarily for types that inherit from
TreeStore
, and should only be used when constructing a new
TreeStore
.
This functions cannot be called after a row has been added,
or a method on the TreeModel
interface is called on the
tree store.
§Deprecated since 4.10
Use TreeListModel
instead
§types
An array of GType
types, one for each column
Trait Implementations§
source§impl HasParamSpec for TreeStore
impl HasParamSpec for TreeStore
source§impl Ord for TreeStore
impl Ord for TreeStore
source§impl<OT: ObjectType> PartialEq<OT> for TreeStore
impl<OT: ObjectType> PartialEq<OT> for TreeStore
source§impl<OT: ObjectType> PartialOrd<OT> for TreeStore
impl<OT: ObjectType> PartialOrd<OT> for TreeStore
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for TreeStore
impl StaticType for TreeStore
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for TreeStore
impl IsA<Buildable> for TreeStore
impl IsA<TreeDragDest> for TreeStore
impl IsA<TreeDragSource> for TreeStore
impl IsA<TreeModel> for TreeStore
impl IsA<TreeSortable> for TreeStore
Auto Trait Implementations§
impl Freeze for TreeStore
impl RefUnwindSafe for TreeStore
impl !Send for TreeStore
impl !Sync for TreeStore
impl Unpin for TreeStore
impl UnwindSafe for TreeStore
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<O> BuildableExt for O
impl<O> BuildableExt for O
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
T
. Read moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
&T
unconditionally. Read moresource§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<O> GObjectPropertyExpressionExt for O
impl<O> GObjectPropertyExpressionExt for O
source§fn property_expression(&self, property_name: &str) -> PropertyExpression
fn property_expression(&self, property_name: &str) -> PropertyExpression
source§fn property_expression_weak(&self, property_name: &str) -> PropertyExpression
fn property_expression_weak(&self, property_name: &str) -> PropertyExpression
source§fn this_expression(property_name: &str) -> PropertyExpression
fn this_expression(property_name: &str) -> PropertyExpression
this
object.source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
property_name
of the object and cast it to the type V. Read moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
key
. Read moresource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
key
. Read moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
key
. Read moresource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
key
. Read moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerId
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure ) -> SignalHandlerId
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure ) -> SignalHandlerId
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Self::emit
but takes Value
for the arguments.source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value] ) -> Option<Value>
source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value] ) -> Option<Value>
source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue]
) -> Rwhere
R: TryFromClosureReturnValue,
source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value]
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value] ) -> Option<Value>
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F ) -> SignalHandlerId
notify
signal of the object. Read moresource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
source§fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
source§fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
source§unsafe fn run_dispose(&self)
unsafe fn run_dispose(&self)
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
source§impl<T> TransparentType for Twhere
T: TransparentPtrType,
impl<T> TransparentType for Twhere
T: TransparentPtrType,
type GlibType = <T as GlibPtrDefault>::GlibType
source§impl<O> TreeDragDestExt for Owhere
O: IsA<TreeDragDest>,
impl<O> TreeDragDestExt for Owhere
O: IsA<TreeDragDest>,
source§fn drag_data_received(&self, dest: &TreePath, value: &Value) -> bool
fn drag_data_received(&self, dest: &TreePath, value: &Value) -> bool
TreeDragDest
to insert a row before the path @dest,
deriving the contents of the row from @value. If @dest is
outside the tree so that inserting before it is impossible, false
will be returned. Also, false
may be returned if the new row is
not created for some model-specific reason. Should robustly handle
a @dest no longer found in the model! Read moresource§impl<O> TreeDragSourceExt for Owhere
O: IsA<TreeDragSource>,
impl<O> TreeDragSourceExt for Owhere
O: IsA<TreeDragSource>,
source§fn drag_data_delete(&self, path: &TreePath) -> bool
fn drag_data_delete(&self, path: &TreePath) -> bool
TreeDragSource
to delete the row at @path, because
it was moved somewhere else via drag-and-drop. Returns false
if the deletion fails because @path no longer exists, or for
some model-specific reason. Should robustly handle a @path no
longer found in the model! Read moresource§fn drag_data_get(&self, path: &TreePath) -> Option<ContentProvider>
fn drag_data_get(&self, path: &TreePath) -> Option<ContentProvider>
TreeDragSource
to return a gdk::ContentProvider
representing
the row at @path. Should robustly handle a @path no
longer found in the model! Read moresource§fn row_draggable(&self, path: &TreePath) -> bool
fn row_draggable(&self, path: &TreePath) -> bool
TreeDragSource
whether a particular row can be used as
the source of a DND operation. If the source doesn’t implement
this interface, the row is assumed draggable. Read moresource§impl<O> TreeModelExt for O
impl<O> TreeModelExt for O
source§fn foreach<P: FnMut(&TreeModel, &TreePath, &TreeIter) -> bool>(&self, func: P)
fn foreach<P: FnMut(&TreeModel, &TreePath, &TreeIter) -> bool>(&self, func: P)
source§fn column_type(&self, index_: i32) -> Type
fn column_type(&self, index_: i32) -> Type
source§fn flags(&self) -> TreeModelFlags
fn flags(&self) -> TreeModelFlags
source§fn iter(&self, path: &TreePath) -> Option<TreeIter>
fn iter(&self, path: &TreePath) -> Option<TreeIter>
source§fn iter_first(&self) -> Option<TreeIter>
fn iter_first(&self) -> Option<TreeIter>
source§fn iter_from_string(&self, path_string: &str) -> Option<TreeIter>
fn iter_from_string(&self, path_string: &str) -> Option<TreeIter>
source§fn n_columns(&self) -> i32
fn n_columns(&self) -> i32
source§fn string_from_iter(&self, iter: &TreeIter) -> Option<GString>
fn string_from_iter(&self, iter: &TreeIter) -> Option<GString>
source§fn iter_children(&self, parent: Option<&TreeIter>) -> Option<TreeIter>
fn iter_children(&self, parent: Option<&TreeIter>) -> Option<TreeIter>
source§fn iter_has_child(&self, iter: &TreeIter) -> bool
fn iter_has_child(&self, iter: &TreeIter) -> bool
source§fn iter_n_children(&self, iter: Option<&TreeIter>) -> i32
fn iter_n_children(&self, iter: Option<&TreeIter>) -> i32
source§fn iter_next(&self, iter: &TreeIter) -> bool
fn iter_next(&self, iter: &TreeIter) -> bool
source§fn iter_nth_child(&self, parent: Option<&TreeIter>, n: i32) -> Option<TreeIter>
fn iter_nth_child(&self, parent: Option<&TreeIter>, n: i32) -> Option<TreeIter>
source§fn iter_parent(&self, child: &TreeIter) -> Option<TreeIter>
fn iter_parent(&self, child: &TreeIter) -> Option<TreeIter>
source§fn iter_previous(&self, iter: &TreeIter) -> bool
fn iter_previous(&self, iter: &TreeIter) -> bool
source§fn row_changed(&self, path: &TreePath, iter: &TreeIter)
fn row_changed(&self, path: &TreePath, iter: &TreeIter)
source§fn row_deleted(&self, path: &TreePath)
fn row_deleted(&self, path: &TreePath)
source§fn row_has_child_toggled(&self, path: &TreePath, iter: &TreeIter)
fn row_has_child_toggled(&self, path: &TreePath, iter: &TreeIter)
source§fn row_inserted(&self, path: &TreePath, iter: &TreeIter)
fn row_inserted(&self, path: &TreePath, iter: &TreeIter)
source§fn connect_row_changed<F: Fn(&Self, &TreePath, &TreeIter) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_row_changed<F: Fn(&Self, &TreePath, &TreeIter) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_row_deleted<F: Fn(&Self, &TreePath) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_row_deleted<F: Fn(&Self, &TreePath) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_row_has_child_toggled<F: Fn(&Self, &TreePath, &TreeIter) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_row_has_child_toggled<F: Fn(&Self, &TreePath, &TreeIter) + 'static>( &self, f: F ) -> SignalHandlerId
source§fn connect_row_inserted<F: Fn(&Self, &TreePath, &TreeIter) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_row_inserted<F: Fn(&Self, &TreePath, &TreeIter) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<O> TreeModelExtManual for O
impl<O> TreeModelExtManual for O
source§impl<O> TreeSortableExt for Owhere
O: IsA<TreeSortable>,
impl<O> TreeSortableExt for Owhere
O: IsA<TreeSortable>,
source§fn has_default_sort_func(&self) -> bool
fn has_default_sort_func(&self) -> bool
source§fn sort_column_changed(&self)
fn sort_column_changed(&self)
GtkTreeSortable::sort-column-changed
signal on @self. Read moresource§fn connect_sort_column_changed<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_sort_column_changed<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
source§impl<O> TreeSortableExtManual for Owhere
O: IsA<TreeSortable>,
impl<O> TreeSortableExtManual for Owhere
O: IsA<TreeSortable>,
source§fn set_default_sort_func<F>(&self, sort_func: F)
fn set_default_sort_func<F>(&self, sort_func: F)
GTK_TREE_SORTABLE_DEFAULT_SORT_COLUMN_ID
, then the model will sort using
this function. Read moresource§fn set_sort_func<F>(&self, sort_column_id: SortColumn, sort_func: F)
fn set_sort_func<F>(&self, sort_column_id: SortColumn, sort_func: F)
source§fn sort_column_id(&self) -> Option<(SortColumn, SortType)>
fn sort_column_id(&self) -> Option<(SortColumn, SortType)>
source§fn set_sort_column_id(&self, sort_column_id: SortColumn, order: SortType)
fn set_sort_column_id(&self, sort_column_id: SortColumn, order: SortType)
GtkTreeSortable::sort-column-changed
signal. @sort_column_id may either be
a regular column id, or one of the following special values: Read more