Module utils

Source
Expand description

Collection of common methods and types.

Modules§

expression 🔒
Collection of common expressions.
expression_list_model 🔒
grouping_list_model 🔒
key_bindings 🔒
Helpers to add key bindings to widgets.
location 🔒
Location API.
macros 🔒
Collection of macros.
matrix 🔒
Collection of methods related to the Matrix specification.
media 🔒
Collection of methods for media.
notifications 🔒
placeholder_object 🔒
single_item_list_model 🔒
sourceview 🔒
Collection of methods for interacting with GtkSourceView.
string 🔒
Helper traits and methods for strings.
template_callbacks 🔒
Collection of GTK template callbacks.
toast 🔒
Macros and methods to display toasts in the interface.

Structs§

AbortableHandle 🔒
A wrapper around JoinHandle that aborts the future if it is dropped before the task ends.
BoundConstructOnlyObject
Wrapper to manage a bound construct-only object.
BoundObject
Wrapper to manage a bound object.
BoundObjectInner 🔒
Inner to manage a bound object.
BoundObjectWeakRef
Wrapper to manage a bound object.
CountedRef
A counted reference.
InnerCountedRef 🔒
OngoingAsyncAction
Helper type to keep track of ongoing async actions that can succeed in different functions.
TokioDrop
A type that requires the tokio runtime to be running when dropped.
WeakOngoingAsyncAction
A weak reference to an OngoingAsyncAction.

Enums§

AsyncAction 🔒
An async action.
DataType 🔒
The type of data.
File
A wrapper around several sources of files.
LoadingState
The state of a resource that can be loaded.

Statics§

EMOJI_REGEX 🔒
Regex that matches a string that only includes emojis.
TMP_DIR 🔒
The directory where to put temporary files.

Traits§

ChildPropertyExt 🔒
Extensions trait for types with a child property.
IsABin 🔒
Helper trait to implement for widgets that subclass AdwBin, to be able to use the ChildPropertyExt trait.

Functions§

bool_to_accessible_tristate 🔒
Convert the given checked bool to a GtkAccessibleTristate.
freplace 🔒
Replace variables in the given string with the given dictionary.
save_data_to_tmp_file 🔒
Save the given data to a temporary file.