Struct gtk4::EntryCompletion
source · #[repr(transparent)]pub struct EntryCompletion { /* private fields */ }
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 | Writeable | 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 | Writeable
inline-selection
Determines whether the possible completions on the popup will appear in the entry as you navigate through them.
Readable | Writeable
minimum-key-length
Readable | Writeable
model
Readable | Writeable
popup-completion
Determines whether the possible completions should be shown in a popup window.
Readable | Writeable
popup-set-width
Determines whether the completions popup window will be resized to the width of the entry.
Readable | Writeable
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 | Writeable
text-column
The column of the model containing the strings.
Note that the strings must be UTF-8.
Readable | Writeable
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
glib::ObjectExt
, BuildableExt
, CellLayoutExt
, CellLayoutExtManual
Implementations§
source§impl EntryCompletion
impl EntryCompletion
sourcepub fn new() -> EntryCompletion
👎Deprecated: Since 4.10
pub fn new() -> EntryCompletion
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
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
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)
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>
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>
Get the original text entered by the user that triggered
the completion or None
if there’s no completion ongoing.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Returns
the prefix for the current completion
sourcepub fn is_inline_completion(&self) -> bool
👎Deprecated: Since 4.10
pub fn is_inline_completion(&self) -> bool
Returns whether the common prefix of the possible completions should be automatically inserted in the entry.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Returns
true
if inline completion is turned on
sourcepub fn is_inline_selection(&self) -> bool
👎Deprecated: Since 4.10
pub fn is_inline_selection(&self) -> bool
Returns true
if inline-selection mode is turned on.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Returns
true
if inline-selection mode is on
sourcepub fn minimum_key_length(&self) -> i32
👎Deprecated: Since 4.10
pub fn minimum_key_length(&self) -> i32
Returns the minimum key length as set for @self.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Returns
The currently used minimum key length
sourcepub fn model(&self) -> Option<TreeModel>
👎Deprecated: Since 4.10
pub fn model(&self) -> Option<TreeModel>
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
Returns whether the completions should be presented in a popup window.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Returns
true
if popup completion is turned on
sourcepub fn is_popup_set_width(&self) -> bool
👎Deprecated: Since 4.10
pub fn is_popup_set_width(&self) -> bool
Returns whether the completion popup window will be resized to the width of the entry.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Returns
true
if the popup window will be resized to the width of
the entry
sourcepub fn is_popup_single_match(&self) -> bool
👎Deprecated: Since 4.10
pub fn is_popup_single_match(&self) -> bool
Returns whether the completion popup window will appear even if there is only a single match.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Returns
true
if the popup window will appear regardless of the
number of matches
sourcepub fn text_column(&self) -> i32
👎Deprecated: Since 4.10
pub fn text_column(&self) -> i32
Returns the column in the model of @self to get strings from.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
Returns
the column containing the strings
sourcepub fn insert_prefix(&self)
👎Deprecated: Since 4.10
pub fn insert_prefix(&self)
sourcepub fn set_inline_completion(&self, inline_completion: bool)
👎Deprecated: Since 4.10
pub fn set_inline_completion(&self, inline_completion: bool)
Sets whether the common prefix of the possible completions should be automatically inserted in the entry.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
inline_completion
true
to do inline completion
sourcepub fn set_inline_selection(&self, inline_selection: bool)
👎Deprecated: Since 4.10
pub fn set_inline_selection(&self, inline_selection: bool)
Sets whether it is possible to cycle through the possible completions inside the entry.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
inline_selection
true
to do inline selection
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 )
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 EntryCompletion
MatchFunc 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)
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>>)
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)
Sets whether the completions should be presented in a popup window.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
popup_completion
true
to do popup completion
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)
Sets whether the completion popup window will be resized to be the same width as the entry.
Deprecated since 4.10
GtkEntryCompletion will be removed in GTK 5.
popup_set_width
true
to make the width of the popup the same as the entry
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)
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)
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>
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
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
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
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
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
pub fn connect_inline_selection_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
pub fn connect_minimum_key_length_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
pub fn connect_model_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
pub fn connect_popup_completion_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
pub fn connect_popup_set_width_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
pub fn connect_popup_single_match_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
pub fn connect_text_column_notify<F: Fn(&Self) + 'static>( &self, f: F ) -> SignalHandlerId
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
source§impl Display for EntryCompletion
impl Display for EntryCompletion
source§impl HasParamSpec for EntryCompletion
impl HasParamSpec for EntryCompletion
type ParamSpec = ParamSpecObject
§type SetValue = EntryCompletion
type SetValue = EntryCompletion
type BuilderFn = fn(_: &str) -> ParamSpecObjectBuilder<'_, EntryCompletion>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for EntryCompletion
impl Hash for EntryCompletion
source§impl Ord for EntryCompletion
impl Ord for EntryCompletion
source§impl ParentClassIs for EntryCompletion
impl ParentClassIs for EntryCompletion
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
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 EntryCompletion
impl StaticType for EntryCompletion
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Eq for EntryCompletion
impl IsA<Buildable> for EntryCompletion
impl IsA<CellLayout> for EntryCompletion
Auto Trait Implementations§
impl RefUnwindSafe for EntryCompletion
impl !Send for EntryCompletion
impl !Sync for EntryCompletion
impl Unpin 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§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<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 )
source§fn clear(&self)
fn clear(&self)
source§fn clear_attributes(&self, cell: &impl IsA<CellRenderer>)
fn clear_attributes(&self, cell: &impl IsA<CellRenderer>)
source§fn cells(&self) -> Vec<CellRenderer>
fn cells(&self) -> Vec<CellRenderer>
source§fn pack_start(&self, cell: &impl IsA<CellRenderer>, expand: bool)
fn pack_start(&self, cell: &impl IsA<CellRenderer>, expand: bool)
source§fn reorder(&self, cell: &impl IsA<CellRenderer>, position: i32)
fn reorder(&self, cell: &impl IsA<CellRenderer>, position: i32)
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 )
CellLayout
DataFunc 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)] )
source§fn unset_cell_data_func(&self, cell: &impl IsA<CellRenderer>)
fn unset_cell_data_func(&self, cell: &impl IsA<CellRenderer>)
source§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>,
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>,
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>,
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>,
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>,
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>,
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.source§impl<T> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere T: Into<Value>,
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>)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>,
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
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
fn connect<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + Send + Sync + 'static,
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + 'static,
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static,
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value> + 'static,
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value> + 'static,
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>,
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F
) -> SignalHandlerIdwhere
F: Fn(&[Value]) -> Option<Value>,
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F ) -> SignalHandlerIdwhere F: Fn(&[Value]) -> Option<Value>,
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) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec) + Send + Sync + 'static,
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + Send + Sync + 'static,
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec) + 'static,
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec) + 'static,
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F
) -> SignalHandlerIdwhere
F: Fn(&T, &ParamSpec),
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F ) -> SignalHandlerIdwhere F: Fn(&T, &ParamSpec),
notify
signal of the object. Read more