pub struct EntryCompletion { /* private fields */ }Since 4.10
Expand description
EntryCompletion is an auxiliary object to provide completion functionality
for Entry.
It implements the CellLayout interface, to allow the user
to add extra cells to the TreeView with completion matches.
โCompletion functionalityโ means that when the user modifies the text
in the entry, EntryCompletion checks which rows in the model match
the current content of the entry, and displays a list of matches.
By default, the matching is done by comparing the entry text
case-insensitively against the text column of the model (see
set_text_column()), but this can be overridden
with a custom match function (see set_match_func()).
When the user selects a completion, the content of the entry is
updated. By default, the content of the entry is replaced by the
text column of the model, but this can be overridden by connecting
to the match-selected signal and updating the
entry in the signal handler. Note that you should return true from
the signal handler to suppress the default behaviour.
To add completion functionality to an entry, use
EntryExt::set_completion().
EntryCompletion uses a TreeModelFilter model to
represent the subset of the entire model that is currently matching.
While the EntryCompletion signals
match-selected and
cursor-on-match take the original model
and an iter pointing to that model as arguments, other callbacks and
signals (such as GtkCellLayoutDataFunc or
apply-attributes)]
will generally take the filter model as argument. As long as you are
only calling TreeModelExtManual::get(), this will make no difference to
you. If for some reason, you need the original model, use
TreeModelFilterExt::model(). Donโt forget to use
TreeModelFilterExt::convert_iter_to_child_iter() to obtain a
matching iter.
ยงProperties
ยงcell-area
The CellArea used to layout cell renderers in the treeview column.
If no area is specified when creating the entry completion with
EntryCompletion::with_area(), a horizontally oriented
CellAreaBox will be used.
Readable | Writable | Construct Only
ยงinline-completion
Determines whether the common prefix of the possible completions should be inserted automatically in the entry.
Note that this requires text-column to be set, even if you are using a custom match function.
Readable | Writable
ยงinline-selection
Determines whether the possible completions on the popup will appear in the entry as you navigate through them.
Readable | Writable
ยงminimum-key-length
The minimum key length as set for completion.
Readable | Writable
ยงmodel
The model used as data source.
Readable | Writable
ยงpopup-completion
Determines whether the possible completions should be shown in a popup window.
Readable | Writable
ยงpopup-set-width
Determines whether the completions popup window will be resized to the width of the entry.
Readable | Writable
ยงpopup-single-match
Determines whether the completions popup window will shown for a single possible completion.
You probably want to set this to false if you are using
inline-completion.
Readable | Writable
ยงtext-column
The column of the model containing the strings.
Note that the strings must be UTF-8.
Readable | Writable
ยงSignals
ยงcursor-on-match
Emitted when a match from the cursor is on a match of the list.
The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by @iter.
Note that @model is the model that was passed to
EntryCompletion::set_model().
ยงinsert-prefix
Emitted when the inline autocompletion is triggered.
The default behaviour is to make the entry display the whole prefix and select the newly inserted part.
Applications may connect to this signal in order to insert only a
smaller part of the @prefix into the entry - e.g. the entry used in
the FileChooser inserts only the part of the prefix up to the
next โ/โ.
ยงmatch-selected
Emitted when a match from the list is selected.
The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by @iter.
Note that @model is the model that was passed to
EntryCompletion::set_model().
ยงno-matches
Emitted when the filter model has zero number of rows in completion_complete method.
In other words when EntryCompletion is out of suggestions.
ยงImplements
[trait@glib::ObjectExt], BuildableExt, CellLayoutExt, CellLayoutExtManual
GLib type: GObject with reference counted clone semantics.
Implementationsยง
Sourceยงimpl EntryCompletion
impl EntryCompletion
Sourcepub fn new() -> EntryCompletion
๐Deprecated: Since 4.10
pub fn new() -> EntryCompletion
Since 4.10
Creates a new EntryCompletion object.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงReturns
A newly created EntryCompletion object
Sourcepub fn with_area(area: &impl IsA<CellArea>) -> EntryCompletion
๐Deprecated: Since 4.10
pub fn with_area(area: &impl IsA<CellArea>) -> EntryCompletion
Since 4.10
Creates a new EntryCompletion object using the
specified @area.
The CellArea is used to layout cells in the underlying
TreeViewColumn for the drop-down menu.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงarea
the CellArea used to layout cells
ยงReturns
A newly created EntryCompletion object
Sourcepub fn builder() -> EntryCompletionBuilder
๐Deprecated: Since 4.10
pub fn builder() -> EntryCompletionBuilder
Since 4.10
Creates a new builder-pattern struct instance to construct EntryCompletion objects.
This method returns an instance of EntryCompletionBuilder which can be used to create EntryCompletion objects.
Sourcepub fn complete(&self)
๐Deprecated: Since 4.10
pub fn complete(&self)
Since 4.10
Requests a completion operation, or in other words a refiltering of the current list with completions, using the current key.
The completion list view will be updated accordingly.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Sourcepub fn compute_prefix(&self, key: &str) -> Option<GString>
๐Deprecated: Since 4.10
pub fn compute_prefix(&self, key: &str) -> Option<GString>
Since 4.10
Computes the common prefix that is shared by all rows in @self that start with @key.
If no row matches @key, None will be returned.
Note that a text column must have been set for this function to work,
see set_text_column() for details.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงkey
The text to complete for
ยงReturns
The common prefix all rows starting with @key
Sourcepub fn completion_prefix(&self) -> Option<GString>
๐Deprecated: Since 4.10
pub fn completion_prefix(&self) -> Option<GString>
Since 4.10
Sourcepub fn is_inline_completion(&self) -> bool
๐Deprecated: Since 4.10
pub fn is_inline_completion(&self) -> bool
Since 4.10
Sourcepub fn is_inline_selection(&self) -> bool
๐Deprecated: Since 4.10
pub fn is_inline_selection(&self) -> bool
Since 4.10
Sourcepub fn minimum_key_length(&self) -> i32
๐Deprecated: Since 4.10
pub fn minimum_key_length(&self) -> i32
Since 4.10
Sourcepub fn model(&self) -> Option<TreeModel>
๐Deprecated: Since 4.10
pub fn model(&self) -> Option<TreeModel>
Since 4.10
Returns the model the EntryCompletion is using as data source.
Returns None if the model is unset.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงReturns
Sourcepub fn is_popup_completion(&self) -> bool
๐Deprecated: Since 4.10
pub fn is_popup_completion(&self) -> bool
Since 4.10
Sourcepub fn is_popup_set_width(&self) -> bool
๐Deprecated: Since 4.10
pub fn is_popup_set_width(&self) -> bool
Since 4.10
Sourcepub fn is_popup_single_match(&self) -> bool
๐Deprecated: Since 4.10
pub fn is_popup_single_match(&self) -> bool
Since 4.10
Sourcepub fn text_column(&self) -> i32
๐Deprecated: Since 4.10
pub fn text_column(&self) -> i32
Since 4.10
Sourcepub fn insert_prefix(&self)
๐Deprecated: Since 4.10
pub fn insert_prefix(&self)
Since 4.10
Sourcepub fn set_inline_completion(&self, inline_completion: bool)
๐Deprecated: Since 4.10
pub fn set_inline_completion(&self, inline_completion: bool)
Since 4.10
Sourcepub fn set_inline_selection(&self, inline_selection: bool)
๐Deprecated: Since 4.10
pub fn set_inline_selection(&self, inline_selection: bool)
Since 4.10
Sourcepub fn set_match_func<P: Fn(&EntryCompletion, &str, &TreeIter) -> bool + 'static>(
&self,
func: P,
)
๐Deprecated: Since 4.10
pub fn set_match_func<P: Fn(&EntryCompletion, &str, &TreeIter) -> bool + 'static>( &self, func: P, )
Since 4.10
Sets the match function for @self to be @func.
The match function is used to determine if a row should or should not be in the completion list.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงfunc
the EntryCompletionMatchFunc to use
ยงfunc_data
user data for @func
ยงfunc_notify
destroy notify for @func_data.
Sourcepub fn set_minimum_key_length(&self, length: i32)
๐Deprecated: Since 4.10
pub fn set_minimum_key_length(&self, length: i32)
Since 4.10
Requires the length of the search key for @self to be at least @length.
This is useful for long lists, where completing using a small key takes a lot of time and will come up with meaningless results anyway (ie, a too large dataset).
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงlength
the minimum length of the key in order to start completing
Sourcepub fn set_model(&self, model: Option<&impl IsA<TreeModel>>)
๐Deprecated: Since 4.10
pub fn set_model(&self, model: Option<&impl IsA<TreeModel>>)
Since 4.10
Sets the model for a EntryCompletion.
If @self already has a model set, it will remove it
before setting the new model. If model is None, then it
will unset the model.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงmodel
the TreeModel
Sourcepub fn set_popup_completion(&self, popup_completion: bool)
๐Deprecated: Since 4.10
pub fn set_popup_completion(&self, popup_completion: bool)
Since 4.10
Sourcepub fn set_popup_set_width(&self, popup_set_width: bool)
๐Deprecated: Since 4.10
pub fn set_popup_set_width(&self, popup_set_width: bool)
Since 4.10
Sourcepub fn set_popup_single_match(&self, popup_single_match: bool)
๐Deprecated: Since 4.10
pub fn set_popup_single_match(&self, popup_single_match: bool)
Since 4.10
Sets whether the completion popup window will appear even if there is only a single match.
You may want to set this to false if you
are using inline-completion.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงpopup_single_match
true if the popup should appear even for a single match
Sourcepub fn set_text_column(&self, column: i32)
๐Deprecated: Since 4.10
pub fn set_text_column(&self, column: i32)
Since 4.10
Convenience function for setting up the most used case of this code: a completion list with just strings.
This function will set up @self to have a list displaying all (and just) strings in the completion list, and to get those strings from @column in the model of @self.
This functions creates and adds a CellRendererText for the selected
column. If you need to set the text column, but donโt want the cell
renderer, use g_object_set() to set the
text-column property directly.
ยงDeprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
ยงcolumn
the column in the model of @self to get strings from
Sourcepub fn cell_area(&self) -> Option<CellArea>
๐Deprecated: Since 4.10
pub fn cell_area(&self) -> Option<CellArea>
Since 4.10
The CellArea used to layout cell renderers in the treeview column.
If no area is specified when creating the entry completion with
with_area(), a horizontally oriented
CellAreaBox will be used.
Sourcepub fn connect_cursor_on_match<F: Fn(&Self, &TreeModel, &TreeIter) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
pub fn connect_cursor_on_match<F: Fn(&Self, &TreeModel, &TreeIter) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
Emitted when a match from the cursor is on a match of the list.
The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by @iter.
Note that @model is the model that was passed to
set_model().
ยงmodel
the TreeModel containing the matches
ยงiter
a TreeIter positioned at the selected match
ยงReturns
true if the signal has been handled
Sourcepub fn connect_insert_prefix<F: Fn(&Self, &str) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
pub fn connect_insert_prefix<F: Fn(&Self, &str) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
Emitted when the inline autocompletion is triggered.
The default behaviour is to make the entry display the whole prefix and select the newly inserted part.
Applications may connect to this signal in order to insert only a
smaller part of the @prefix into the entry - e.g. the entry used in
the FileChooser inserts only the part of the prefix up to the
next โ/โ.
ยงprefix
the common prefix of all possible completions
ยงReturns
true if the signal has been handled
Sourcepub fn connect_match_selected<F: Fn(&Self, &TreeModel, &TreeIter) -> Propagation + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
pub fn connect_match_selected<F: Fn(&Self, &TreeModel, &TreeIter) -> Propagation + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
Emitted when a match from the list is selected.
The default behaviour is to replace the contents of the entry with the contents of the text column in the row pointed to by @iter.
Note that @model is the model that was passed to
set_model().
ยงmodel
the TreeModel containing the matches
ยงiter
a TreeIter positioned at the selected match
ยงReturns
true if the signal has been handled
Sourcepub fn connect_no_matches<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId
๐Deprecated: Since 4.10
pub fn connect_no_matches<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
Emitted when the filter model has zero number of rows in completion_complete method.
In other words when EntryCompletion is out of suggestions.
pub fn connect_inline_completion_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
pub fn connect_inline_selection_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
pub fn connect_minimum_key_length_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
pub fn connect_model_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
pub fn connect_popup_completion_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
pub fn connect_popup_set_width_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
pub fn connect_popup_single_match_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
pub fn connect_text_column_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
Since 4.10
Trait Implementationsยง
Sourceยงimpl Clone for EntryCompletion
impl Clone for EntryCompletion
Sourceยงimpl Debug for EntryCompletion
impl Debug for EntryCompletion
Sourceยงimpl Default for EntryCompletion
impl Default for EntryCompletion
impl Eq for EntryCompletion
Sourceยงimpl HasParamSpec for EntryCompletion
impl HasParamSpec for EntryCompletion
Sourceยงimpl Hash for EntryCompletion
impl Hash for EntryCompletion
impl IsA<Buildable> for EntryCompletion
impl IsA<CellLayout> for EntryCompletion
Sourceยงimpl Ord for EntryCompletion
impl Ord for EntryCompletion
Sourceยงfn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.21.0 (const: unstable) ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl<OT: ObjectType> PartialEq<OT> for EntryCompletion
impl<OT: ObjectType> PartialEq<OT> for EntryCompletion
Sourceยงimpl<OT: ObjectType> PartialOrd<OT> for EntryCompletion
impl<OT: ObjectType> PartialOrd<OT> for EntryCompletion
Sourceยงfn partial_cmp(&self, other: &OT) -> Option<Ordering>
fn partial_cmp(&self, other: &OT) -> Option<Ordering>
Partial comparison for two GObjects.
Compares the memory addresses of the provided objects.
Sourceยงimpl StaticType for EntryCompletion
impl StaticType for EntryCompletion
Sourceยงfn static_type() -> Type
fn static_type() -> Type
Self.Auto Trait Implementationsยง
impl !Send for EntryCompletion
impl !Sync for EntryCompletion
impl Freeze for EntryCompletion
impl RefUnwindSafe for EntryCompletion
impl Unpin for EntryCompletion
impl UnsafeUnpin for EntryCompletion
impl UnwindSafe for EntryCompletion
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 Owhere
O: IsA<Buildable>,
impl<O> BuildableExt for Owhere
O: IsA<Buildable>,
Sourceยงfn buildable_id(&self) -> Option<GString>
fn buildable_id(&self) -> Option<GString>
ยงimpl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
ยงfn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
T. Read moreยงfn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
T. Read moreยง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 moreยง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 moreยง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 moreยง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 moreยงunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
T unconditionally. Read moreยง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<O> CellLayoutExt for Owhere
O: IsA<CellLayout>,
impl<O> CellLayoutExt for Owhere
O: IsA<CellLayout>,
Sourceยงfn add_attribute(
&self,
cell: &impl IsA<CellRenderer>,
attribute: &str,
column: i32,
)
fn add_attribute( &self, cell: &impl IsA<CellRenderer>, attribute: &str, column: i32, )
Since 4.10
Sourceยงfn clear(&self)
fn clear(&self)
Since 4.10
Sourceยงfn clear_attributes(&self, cell: &impl IsA<CellRenderer>)
fn clear_attributes(&self, cell: &impl IsA<CellRenderer>)
Since 4.10
Sourceยงfn cells(&self) -> Vec<CellRenderer>
fn cells(&self) -> Vec<CellRenderer>
Since 4.10
Sourceยงfn pack_end(&self, cell: &impl IsA<CellRenderer>, expand: bool)
fn pack_end(&self, cell: &impl IsA<CellRenderer>, expand: bool)
Since 4.10
Sourceยงfn pack_start(&self, cell: &impl IsA<CellRenderer>, expand: bool)
fn pack_start(&self, cell: &impl IsA<CellRenderer>, expand: bool)
Since 4.10
Sourceยงfn reorder(&self, cell: &impl IsA<CellRenderer>, position: i32)
fn reorder(&self, cell: &impl IsA<CellRenderer>, position: i32)
Since 4.10
Sourceยงfn set_cell_data_func<P: Fn(&CellLayout, &CellRenderer, &TreeModel, &TreeIter) + 'static>(
&self,
cell: &impl IsA<CellRenderer>,
func: P,
)
fn set_cell_data_func<P: Fn(&CellLayout, &CellRenderer, &TreeModel, &TreeIter) + 'static>( &self, cell: &impl IsA<CellRenderer>, func: P, )
Since 4.10
CellLayoutDataFunc to use for @self. Read moreSourceยงimpl<O> CellLayoutExtManual for Owhere
O: IsA<CellLayout>,
impl<O> CellLayoutExtManual for Owhere
O: IsA<CellLayout>,
Sourceยงfn set_attributes(
&self,
cell: &impl IsA<CellRenderer>,
attributes: &[(&str, i32)],
)
fn set_attributes( &self, cell: &impl IsA<CellRenderer>, attributes: &[(&str, i32)], )
Since 4.10
Sourceยงfn unset_cell_data_func(&self, cell: &impl IsA<CellRenderer>)
fn unset_cell_data_func(&self, cell: &impl IsA<CellRenderer>)
Since 4.10
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยง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>,
unsafe fn from_glib_none_num_as_vec(ptr: *const GList, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec(_: *const GList, _: usize) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(_: *const GList, _: usize) -> Vec<T>
ยง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>,
unsafe fn from_glib_none_num_as_vec(ptr: *const GPtrArray, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec( _: *const GPtrArray, _: usize, ) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(_: *const GPtrArray, _: usize) -> Vec<T>
ยง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>,
unsafe fn from_glib_none_num_as_vec(ptr: *const GSList, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec(_: *const GSList, _: usize) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(_: *const GSList, _: usize) -> Vec<T>
ยง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>,
unsafe fn from_glib_none_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(ptr: *mut GList, num: usize) -> Vec<T>
ยง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>,
unsafe fn from_glib_none_num_as_vec(ptr: *mut GPtrArray, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec( ptr: *mut GPtrArray, num: usize, ) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(ptr: *mut GPtrArray, num: usize) -> Vec<T>
ยง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>,
unsafe fn from_glib_none_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>
unsafe fn from_glib_container_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>
unsafe fn from_glib_full_num_as_vec(ptr: *mut GSList, num: usize) -> Vec<T>
ยง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>
ยง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>
ยง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>
ยง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>
ยง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>
ยง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>
impl<'a, T, C, E> FromValueOptional<'a> for T
Sourceยงimpl<O> GObjectPropertyExpressionExt for Owhere
O: IsA<Object>,
impl<O> GObjectPropertyExpressionExt for Owhere
O: IsA<Object>,
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.ยงimpl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
fn into_closure_return_value(self) -> Option<Value>
ยง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>)where
T: ObjectSubclass,
<U as ParentClassIs>::Parent: IsSubclassable<T>,
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)where
T: ObjectSubclass,
<U as ParentClassIs>::Parent: IsSubclassable<T>,
impl<Super, Sub> MayDowncastTo<Sub> for Superwhere
Super: IsA<Super>,
Sub: IsA<Super>,
ยงimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
ยง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.ยงfn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
ObjectClass] of the object. Read moreยงfn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
T. Read moreยง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 moreยงfn set_property(&self, property_name: &str, value: impl Into<Value>)
fn set_property(&self, property_name: &str, value: impl Into<Value>)
ยงfn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
ยงfn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
ยงfn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
ยง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 moreยงfn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
property_name of the object. Read moreยงfn has_property(&self, property_name: &str) -> bool
fn has_property(&self, property_name: &str) -> bool
property_name.ยงfn has_property_with_type(&self, property_name: &str, type_: Type) -> bool
fn has_property_with_type(&self, property_name: &str, type_: Type) -> bool
property_name of the given type_.ยงfn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
property_name of this object. Read moreยง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.ยงfn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
ParamSpec of the properties of this object.ยงfn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
ยง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 moreยง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 moreยง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 moreยง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 moreยง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 moreยง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 moreยงfn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
ยงfn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
ยงfn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
ยงfn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
ยง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 moreยง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 moreยง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 moreยง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 moreยง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 moreยง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 moreยง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 moreยง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 moreยง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.ยง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,
ยง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.ยง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,
ยง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>
ยง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,
ยง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>
ยง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,
ยง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>
ยงfn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
ยง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 moreยง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 moreยง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 more