pub struct ApplicationInfo { /* private fields */ }Expand description
Information about an application running in automation mode.
GLib type: Shared boxed type with reference counted clone semantics.
Implementations§
Source§impl ApplicationInfo
impl ApplicationInfo
Sourcepub fn as_ptr(&self) -> *mut WebKitApplicationInfo
pub fn as_ptr(&self) -> *mut WebKitApplicationInfo
Return the inner pointer to the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut WebKitApplicationInfo) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut WebKitApplicationInfo) -> &Self
Borrows the underlying C value.
Source§impl ApplicationInfo
impl ApplicationInfo
Sourcepub fn new() -> ApplicationInfo
pub fn new() -> ApplicationInfo
Sourcepub fn name(&self) -> Option<GString>
pub fn name(&self) -> Option<GString>
Get the name of the application.
If set_name() hasn’t been
called with a valid name, this returns g_get_prgname().
§Returns
the application name
Sourcepub fn version(&self) -> (u64, u64, u64)
pub fn version(&self) -> (u64, u64, u64)
Get the application version previously set with set_version().
§Returns
§major
return location for the major version number
§minor
return location for the minor version number
§micro
return location for the micro version number
Sourcepub fn set_version(&self, major: u64, minor: u64, micro: u64)
pub fn set_version(&self, major: u64, minor: u64, micro: u64)
Set the application version.
If the application doesn’t use the format major.minor.micro you can pass 0 as the micro to use major.minor, or pass 0 as both micro and minor to use only major number. Any other format must be converted to major.minor.micro so that it can be used in version comparisons.
§major
the major version number
§minor
the minor version number
§micro
the micro version number
Trait Implementations§
Source§impl Clone for ApplicationInfo
impl Clone for ApplicationInfo
Source§impl Debug for ApplicationInfo
impl Debug for ApplicationInfo
Source§impl Default for ApplicationInfo
impl Default for ApplicationInfo
Source§impl From<ApplicationInfo> for Value
impl From<ApplicationInfo> for Value
Source§fn from(s: ApplicationInfo) -> Self
fn from(s: ApplicationInfo) -> Self
Source§impl HasParamSpec for ApplicationInfo
impl HasParamSpec for ApplicationInfo
type ParamSpec = ParamSpecBoxed
Source§type SetValue = ApplicationInfo
type SetValue = ApplicationInfo
type BuilderFn = fn(&str) -> ParamSpecBoxedBuilder<'_, ApplicationInfo>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for ApplicationInfo
impl Hash for ApplicationInfo
Source§impl Ord for ApplicationInfo
impl Ord for ApplicationInfo
Source§fn cmp(&self, other: &ApplicationInfo) -> Ordering
fn cmp(&self, other: &ApplicationInfo) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ApplicationInfo
impl PartialEq for ApplicationInfo
Source§impl PartialOrd for ApplicationInfo
impl PartialOrd for ApplicationInfo
Source§impl StaticType for ApplicationInfo
impl StaticType for ApplicationInfo
Source§fn static_type() -> Type
fn static_type() -> Type
Self.