Crate gio [] [src]

Reexports

pub use prelude::*;

Modules

functions
prelude
signal

Structs

Action

Action represents a single named action.

ActionGroup

ActionGroup represents a group of actions. Actions can be used to expose functionality in a structured way, either from one part of a program to another, or to the outside world. Action groups are often used together with a MenuModel that provides additional representation data for displaying the actions to the user, e.g. in a menu.

ActionMap

The GActionMap interface is implemented by ActionGroup implementations that operate by containing a number of named Action instances, such as SimpleActionGroup.

AppInfo

AppInfo and AppLaunchContext are used for describing and launching applications installed on the system.

AppInfoCreateFlags
AppLaunchContext

Integrating the launch with the launching application. This is used to handle for instance startup notification and launching the new application on the same screen as the launching window.

Application

A Application is the foundation of an application. It wraps some low-level platform-specific services and is intended to act as the foundation for higher-level application classes such as GtkApplication or MxApplication. In general, you should not use this class outside of a higher level framework.

ApplicationFlags
Cancellable

GCancellable is a thread-safe operation cancellation stack used throughout GIO to allow for cancellation of synchronous and asynchronous operations.

Error

A generic error capable of representing various error domains (types).

File

File is a high level abstraction for manipulating files on a virtual file system. GFiles are lightweight, immutable objects that do no I/O upon creation. It is necessary to understand that File objects do not represent files, merely an identifier for a file. All file content I/O is implemented as streaming operations (see InputStream and OutputStream).

FileCreateFlags
FileInfo

Functionality for manipulating basic metadata for files. FileInfo implements methods for getting information that all files should contain, and allows for manipulation of extended attributes.

FileQueryInfoFlags
Icon

Icon is a very minimal interface for icons. It provides functions for checking the equality of two icons, hashing of icons and serializing an icon to and from strings.

Menu

Menu is a simple implementation of MenuModel. You populate a Menu by adding MenuItem instances to it.

MenuAttributeIter

MenuAttributeIter is an opaque structure type. You must access it using the functions below.

MenuItem

MenuItem is an opaque structure type. You must access it using the functions below.

MenuLinkIter

MenuLinkIter is an opaque structure type. You must access it using the functions below.

MenuModel

MenuModel represents the contents of a menu -- an ordered list of menu items. The items are associated with actions, which can be activated through them. Items can be grouped in sections, and may have submenus associated with them. Both items and sections usually have some representation data, such as labels or icons. The type of the associated action (ie whether it is stateful, and what kind of state it has) can influence the representation of the item.

Notification

Notification is a mechanism for creating a notification to be shown to the user -- typically as a pop-up notification presented by the desktop environment shell.

Object

The base class in the object hierarchy.

Permission

A Permission represents the status of the caller's permission to perform a certain action.

Resource

Applications and libraries often contain binary or textual data that is really part of the application, rather than user data. For instance GtkBuilder .ui files, splashscreen images, GMenu markup XML, CSS files, icons, etc. These are often shipped as files in $datadir/appname, or manually included as literal strings in the code.

ResourceLookupFlags
Settings

The Settings class provides a convenient API for storing and retrieving application settings.

SettingsBindFlags
SimpleAction

A SimpleAction is the obvious simple implementation of the Action interface. This is the easiest way to create an action for purposes of adding it to a SimpleActionGroup.

SimpleActionGroup

SimpleActionGroup is a hash table filled with Action objects, implementing the ActionGroup and ActionMap interfaces.

SimplePermission

SimplePermission is a trivial implementation of Permission that represents a permission that is either always or never allowed. The value is given at construction and doesn't change.

ThemedIcon

ThemedIcon is an implementation of Icon that supports icon themes. ThemedIcon contains a list of all of the icons present in an icon theme, so that icons can be looked up quickly. ThemedIcon does not provide actual pixmaps for icons, just the icon names. Ideally something like gtk_icon_theme_choose_icon should be used to resolve the list of names so that fallback icons work nicely with themes that inherit other themes.

TlsCertificate

A certificate used for TLS authentication and encryption. This can represent either a certificate only (eg, the certificate received by a client from a server), or the combination of a certificate and a private key (which is needed when acting as a TlsServerConnection).

TlsCertificateFlags

Enums

FileType

Indicates the file's on-disk type.

NotificationPriority

Priority levels for GNotifications.

ResourceError

An error code used with G_RESOURCE_ERROR in a glib::Error returned from a Resource routine.

Constants

APPLICATION_CAN_OVERRIDE_APP_ID
APPLICATION_FLAGS_NONE
APPLICATION_HANDLES_COMMAND_LINE
APPLICATION_HANDLES_OPEN
APPLICATION_IS_LAUNCHER
APPLICATION_IS_SERVICE
APPLICATION_NON_UNIQUE
APPLICATION_SEND_ENVIRONMENT
APP_INFO_CREATE_NEEDS_TERMINAL
APP_INFO_CREATE_NONE
APP_INFO_CREATE_SUPPORTS_STARTUP_NOTIFICATION
APP_INFO_CREATE_SUPPORTS_URIS
FILE_CREATE_NONE
FILE_CREATE_PRIVATE
FILE_CREATE_REPLACE_DESTINATION
FILE_QUERY_INFO_NOFOLLOW_SYMLINKS
FILE_QUERY_INFO_NONE
RESOURCE_LOOKUP_FLAGS_NONE
SETTINGS_BIND_DEFAULT
SETTINGS_BIND_GET
SETTINGS_BIND_GET_NO_CHANGES
SETTINGS_BIND_INVERT_BOOLEAN
SETTINGS_BIND_NO_SENSITIVITY
SETTINGS_BIND_SET
TLS_CERTIFICATE_BAD_IDENTITY
TLS_CERTIFICATE_EXPIRED
TLS_CERTIFICATE_GENERIC_ERROR
TLS_CERTIFICATE_INSECURE
TLS_CERTIFICATE_NOT_ACTIVATED
TLS_CERTIFICATE_REVOKED
TLS_CERTIFICATE_UNKNOWN_CA
TLS_CERTIFICATE_VALIDATE_ALL

Traits

ActionExt

Trait containing all Action methods.

ActionGroupExt

Trait containing all ActionGroup methods.

ActionMapExt

Trait containing all ActionMap methods.

AppInfoExt

Trait containing all AppInfo methods.

AppLaunchContextExt

Trait containing all AppLaunchContext methods.

ApplicationExt

Trait containing all Application methods.

CancellableExt

Trait containing all Cancellable methods.

FileExt

Trait containing all File methods.

FileInfoExt

Trait containing all FileInfo methods.

IconExt

Trait containing all Icon methods.

MenuAttributeIterExt

Trait containing all MenuAttributeIter methods.

MenuExt

Trait containing all Menu methods.

MenuItemExt

Trait containing all MenuItem methods.

MenuLinkIterExt

Trait containing all MenuLinkIter methods.

MenuModelExt

Trait containing all MenuModel methods.

NotificationExt

Trait containing all Notification methods.

PermissionExt

Trait containing all Permission methods.

SettingsExt

Trait containing all Settings methods.

SimpleActionExt

Trait containing all SimpleAction methods.

SimpleActionGroupExt

Trait containing all SimpleActionGroup methods.

ThemedIconExt

Trait containing all ThemedIcon methods.

TlsCertificateExt

Trait containing all TlsCertificate methods.

Functions

bus_unown_name
bus_unwatch_name
content_type_can_be_executable
content_type_equals
content_type_from_mime_type
content_type_get_description
content_type_get_generic_icon_name
content_type_get_icon
content_type_get_mime_type
content_type_get_symbolic_icon
content_type_guess
content_type_guess_for_tree
content_type_is_a
content_type_is_unknown
content_types_get_registered
dbus_address_escape_value
dbus_generate_guid
dbus_is_address
dbus_is_guid
dbus_is_interface_name
dbus_is_member_name
dbus_is_name
dbus_is_supported_address
dbus_is_unique_name
io_modules_scan_all_in_directory
io_scheduler_cancel_all_jobs
networking_init
resources_enumerate_children
resources_get_info
resources_lookup_data
resources_register
resources_unregister
unix_is_mount_path_system_internal
unix_mount_points_changed_since
unix_mounts_changed_since