pub type GAppInfoIface = _GAppInfoIface;
Expand description
GAppInfoIface: @g_iface: The parent interface. @dup: Copies a #GAppInfo. @equal: Checks two #GAppInfos for equality. @get_id: Gets a string identifier for a #GAppInfo. @get_name: Gets the name of the application for a #GAppInfo. @get_description: Gets a short description for the application described by the #GAppInfo. @get_executable: Gets the executable name for the #GAppInfo. @get_icon: Gets the #GIcon for the #GAppInfo. @launch: Launches an application specified by the #GAppInfo. @supports_uris: Indicates whether the application specified supports launching URIs. @supports_files: Indicates whether the application specified accepts filename arguments. @launch_uris: Launches an application with a list of URIs. @should_show: Returns whether an application should be shown (e.g. when getting a list of installed applications). FreeDesktop.Org Startup Notification Specification. @set_as_default_for_type: Sets an application as default for a given content type. @set_as_default_for_extension: Sets an application as default for a given file extension. @add_supports_type: Adds to the #GAppInfo information about supported file types. @can_remove_supports_type: Checks for support for removing supported file types from a #GAppInfo. @remove_supports_type: Removes a supported application type from a #GAppInfo. @can_delete: Checks if a #GAppInfo can be deleted. Since 2.20 @do_delete: Deletes a #GAppInfo. Since 2.20 @get_commandline: Gets the commandline for the #GAppInfo. Since 2.20 @get_display_name: Gets the display name for the #GAppInfo. Since 2.24 @set_as_last_used_for_type: Sets the application as the last used. See g_app_info_set_as_last_used_for_type(). @get_supported_types: Retrieves the list of content types that @app_info claims to support. @launch_uris_async: Asynchronously launches an application with a list of URIs. (Since: 2.60) @launch_uris_finish: Finishes an operation started with @launch_uris_async. (Since: 2.60)
Application Information interface, for operating system portability.
Aliased Type§
#[repr(C)]pub struct GAppInfoIface {Show 26 fields
pub g_iface: _GTypeInterface,
pub dup: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *mut _GAppInfo>,
pub equal: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GAppInfo) -> i32>,
pub get_id: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>,
pub get_name: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>,
pub get_description: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>,
pub get_executable: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>,
pub get_icon: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *mut _GIcon>,
pub launch: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GList, *mut _GAppLaunchContext, *mut *mut _GError) -> i32>,
pub supports_uris: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>,
pub supports_files: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>,
pub launch_uris: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GList, *mut _GAppLaunchContext, *mut *mut _GError) -> i32>,
pub should_show: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>,
pub set_as_default_for_type: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>,
pub set_as_default_for_extension: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>,
pub add_supports_type: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>,
pub can_remove_supports_type: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>,
pub remove_supports_type: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>,
pub can_delete: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>,
pub do_delete: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>,
pub get_commandline: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>,
pub get_display_name: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>,
pub set_as_last_used_for_type: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>,
pub get_supported_types: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *mut *const i8>,
pub launch_uris_async: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GList, *mut _GAppLaunchContext, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
pub launch_uris_finish: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
}
Fields§
§g_iface: _GTypeInterface
§dup: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *mut _GAppInfo>
§equal: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GAppInfo) -> i32>
§get_id: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>
§get_name: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>
§get_description: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>
§get_executable: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>
§get_icon: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *mut _GIcon>
§launch: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GList, *mut _GAppLaunchContext, *mut *mut _GError) -> i32>
§supports_uris: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>
§supports_files: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>
§launch_uris: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GList, *mut _GAppLaunchContext, *mut *mut _GError) -> i32>
§should_show: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>
§set_as_default_for_type: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>
§set_as_default_for_extension: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>
§add_supports_type: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>
§can_remove_supports_type: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>
§remove_supports_type: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>
§can_delete: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>
§do_delete: Option<unsafe extern "C" fn(*mut _GAppInfo) -> i32>
§get_commandline: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>
§get_display_name: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *const i8>
§set_as_last_used_for_type: Option<unsafe extern "C" fn(*mut _GAppInfo, *const i8, *mut *mut _GError) -> i32>
§get_supported_types: Option<unsafe extern "C" fn(*mut _GAppInfo) -> *mut *const i8>
§launch_uris_async: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GList, *mut _GAppLaunchContext, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>
§launch_uris_finish: Option<unsafe extern "C" fn(*mut _GAppInfo, *mut _GAsyncResult, *mut *mut _GError) -> i32>
Trait Implementations
Source§impl Clone for _GAppInfoIface
impl Clone for _GAppInfoIface
Source§fn clone(&self) -> _GAppInfoIface
fn clone(&self) -> _GAppInfoIface
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more