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.