pub struct Component { /* private fields */ }
Expand description
§Properties
§categories
string array of categories
Readable
§description
the description
Readable | Writeable
§icons
hash map of icon urls and sizes
Readable
§id
the unique identifier
Readable | Writeable
§keywords
string array of keywords
Readable | Writeable
§kind
the ComponentKind
of this component
Readable | Writeable
§name
the name
Readable | Writeable
§pkgnames
string array of packages name
Readable | Writeable
§project-group
the project group
Readable | Writeable
§project-license
the project license
Readable | Writeable
§screenshots
An array of Screenshot
instances
Readable
§summary
the summary
Readable | Writeable
§urls
the urls associated with this component
Readable
§Implements
GLib type: GObject with reference counted clone semantics.
Implementations§
Trait Implementations§
source§impl HasParamSpec for Component
impl HasParamSpec for Component
source§impl Ord for Component
impl Ord for Component
source§fn cmp(&self, other: &Self) -> Ordering
fn cmp(&self, other: &Self) -> Ordering
Comparison for two GObjects.
Compares the memory addresses of the provided objects.
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<OT: ObjectType> PartialEq<OT> for Component
impl<OT: ObjectType> PartialEq<OT> for Component
source§impl<OT: ObjectType> PartialOrd<OT> for Component
impl<OT: ObjectType> PartialOrd<OT> for Component
source§impl StaticType for Component
impl StaticType for Component
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl !Send for Component
impl !Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moresource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moresource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: MayDowncastTo<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moresource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: MayDowncastTo<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moresource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while upcast
will do many checks at compile-time already. downcast
will
perform the same checks at runtime as dynamic_cast
, but will also ensure some amount of
compile-time safety. Read moresource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moresource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moresource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moresource§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<O> ComponentExt for O
impl<O> ComponentExt for O
source§fn add_addon(&self, addon: &impl IsA<Component>)
fn add_addon(&self, addon: &impl IsA<Component>)
Add a reference to the addon that is enhancing this component. Read more
source§fn add_agreement(&self, agreement: &impl IsA<Agreement>)
fn add_agreement(&self, agreement: &impl IsA<Agreement>)
Adds an agreement to the software component. Read more
source§fn add_category(&self, category: &str)
fn add_category(&self, category: &str)
Add a category. Read more
source§fn add_content_rating(&self, content_rating: &impl IsA<ContentRating>)
fn add_content_rating(&self, content_rating: &impl IsA<ContentRating>)
Adds a content rating to this component. Read more
source§fn add_extends(&self, cpt_id: &str)
fn add_extends(&self, cpt_id: &str)
Add a reference to the extended component Read more
source§fn add_keyword(&self, keyword: &str, locale: Option<&str>)
fn add_keyword(&self, keyword: &str, locale: Option<&str>)
Add a new keyword to the keywords list for the given locale. This function does not
check for duplicate keywords. Read more
source§fn add_language(&self, locale: Option<&str>, percentage: i32)
fn add_language(&self, locale: Option<&str>, percentage: i32)
Adds a language to the component. Read more
source§fn add_launchable(&self, launchable: &impl IsA<Launchable>)
fn add_launchable(&self, launchable: &impl IsA<Launchable>)
Adds a
Launchable
containing launchables entries for this component. Read moresource§fn add_provided(&self, prov: &impl IsA<Provided>)
fn add_provided(&self, prov: &impl IsA<Provided>)
Add a set of provided items to this component. Read more
source§fn add_provided_item(&self, kind: ProvidedKind, item: &str)
fn add_provided_item(&self, kind: ProvidedKind, item: &str)
source§fn add_relation(&self, relation: &impl IsA<Relation>)
fn add_relation(&self, relation: &impl IsA<Relation>)
source§fn add_release(&self, release: &impl IsA<Release>)
fn add_release(&self, release: &impl IsA<Release>)
source§fn add_replaces(&self, cid: &str)
fn add_replaces(&self, cid: &str)
Add the component ID of a component that gets replaced by the current component. Read more
source§fn add_review(&self, review: &impl IsA<Review>)
fn add_review(&self, review: &impl IsA<Review>)
Adds a user review to a software component. Read more
source§fn add_screenshot(&self, sshot: &impl IsA<Screenshot>)
fn add_screenshot(&self, sshot: &impl IsA<Screenshot>)
Add an
Screenshot
to this component. Read moresource§fn add_suggested(&self, suggested: &impl IsA<Suggested>)
fn add_suggested(&self, suggested: &impl IsA<Suggested>)
source§fn add_translation(&self, tr: &impl IsA<Translation>)
fn add_translation(&self, tr: &impl IsA<Translation>)
Assign an
Translation
object describing the translation system used
by this component. Read moresource§fn add_url(&self, url_kind: UrlKind, url: &str)
fn add_url(&self, url_kind: UrlKind, url: &str)
Adds some URL data to the component. Read more
source§fn clear_keywords(&self, locale: Option<&str>)
fn clear_keywords(&self, locale: Option<&str>)
Remove all keywords for the given locale. Read more
source§fn clear_languages(&self)
fn clear_languages(&self)
Remove all registered language translation information.
Remove all tags associated with this component.
source§fn agreement_by_kind(&self, kind: AgreementKind) -> Option<Agreement>
fn agreement_by_kind(&self, kind: AgreementKind) -> Option<Agreement>
Gets an agreement the component has specified for the particular kind. Read more
source§fn agreements(&self) -> Vec<Agreement>
fn agreements(&self) -> Vec<Agreement>
Get a list of all agreements registered with this software component. Read more
source§fn bundle(&self, bundle_kind: BundleKind) -> Option<Bundle>
fn bundle(&self, bundle_kind: BundleKind) -> Option<Bundle>
Gets a bundle identifier string. Read more
source§fn bundles(&self) -> Vec<Bundle>
fn bundles(&self) -> Vec<Bundle>
Get a list of all software bundles associated with this component. Read more
source§fn content_rating(&self, kind: &str) -> Option<ContentRating>
fn content_rating(&self, kind: &str) -> Option<ContentRating>
Gets a content ratings of a specific type that are defined for this component. Read more
source§fn content_ratings(&self) -> Vec<ContentRating>
fn content_ratings(&self) -> Vec<ContentRating>
Gets all content ratings defined for this software. Read more
source§fn custom_value(&self, key: &str) -> Option<GString>
fn custom_value(&self, key: &str) -> Option<GString>
Retrieve value for a custom data entry with the given key. Read more
source§fn data_id(&self) -> Option<GString>
fn data_id(&self) -> Option<GString>
Get a unique identifier for this metadata set.
This unique ID is only valid for the current session,
as opposed to the AppStream ID which uniquely identifies
a software component. Read more
source§fn date_eol(&self) -> Option<GString>
fn date_eol(&self) -> Option<GString>
Gets the end-of-life date for the entire component. Read more
source§fn description(&self) -> Option<GString>
fn description(&self) -> Option<GString>
Get the localized long description of this component. Read more
source§fn extends(&self) -> Vec<GString>
fn extends(&self) -> Vec<GString>
Returns a string list of IDs of components which
are extended by this addon. Read more
source§fn icon_stock(&self) -> Option<Icon>
fn icon_stock(&self) -> Option<Icon>
source§fn id(&self) -> Option<GString>
fn id(&self) -> Option<GString>
Get the unique AppStream identifier for this component.
This ID is unique for the described component, but does
not uniquely identify the metadata set. Read more
source§fn kind(&self) -> ComponentKind
fn kind(&self) -> ComponentKind
Returns the
ComponentKind
of this component. Read moresource§fn language(&self, locale: Option<&str>) -> i32
fn language(&self, locale: Option<&str>) -> i32
Gets the translation coverage in percent for a specific locale Read more
source§fn launchable(&self, kind: LaunchableKind) -> Option<Launchable>
fn launchable(&self, kind: LaunchableKind) -> Option<Launchable>
Gets a
Launchable
of a specific type that contains launchable entries for
this component. Read moresource§fn launchables(&self) -> Vec<Launchable>
fn launchables(&self) -> Vec<Launchable>
Returns Read more
source§fn merge_kind(&self) -> MergeKind
fn merge_kind(&self) -> MergeKind
Get the merge method which should apply to duplicate components
with this ID. Read more
source§fn metadata_license(&self) -> Option<GString>
fn metadata_license(&self) -> Option<GString>
The license the metadata iself is subjected to. Read more
source§fn name_variant_suffix(&self) -> Option<GString>
fn name_variant_suffix(&self) -> Option<GString>
Get variant suffix for the component name
(only to be displayed if two components have the same name). Read more
fn origin(&self) -> Option<GString>
source§fn pkgname(&self) -> Option<GString>
fn pkgname(&self) -> Option<GString>
Get the first package name of the list of packages that need to be installed
for this component to be present on the system.
Since most components consist of only one package, this is safe to use for
about 90% of all cases. Read more
source§fn pkgnames(&self) -> Vec<GString>
fn pkgnames(&self) -> Vec<GString>
Get a list of package names which this component consists of.
This usually is just one package name. Read more
source§fn priority(&self) -> i32
fn priority(&self) -> i32
Returns the priority of this component.
This method is used internally.
source§fn project_license(&self) -> Option<GString>
fn project_license(&self) -> Option<GString>
Get the license of the project this component belongs to. Read more
source§fn provided_for_kind(&self, kind: ProvidedKind) -> Option<Provided>
fn provided_for_kind(&self, kind: ProvidedKind) -> Option<Provided>
source§fn recommends(&self) -> Vec<Relation>
fn recommends(&self) -> Vec<Relation>
Get an array of items that are recommended by this component. Read more
source§fn releases_plain(&self) -> Option<ReleaseList>
fn releases_plain(&self) -> Option<ReleaseList>
Get release information for this component,
without downloading or loading any data from external sources. Read more
source§fn replaces(&self) -> Vec<GString>
fn replaces(&self) -> Vec<GString>
Get a list of component IDs of components that this software replaces entirely. Read more
source§fn requires(&self) -> Vec<Relation>
fn requires(&self) -> Vec<Relation>
Get an array of items that are required by this component. Read more
source§fn scope(&self) -> ComponentScope
fn scope(&self) -> ComponentScope
Returns Read more
source§fn screenshots_all(&self) -> Vec<Screenshot>
fn screenshots_all(&self) -> Vec<Screenshot>
Get a list of all associated screenshots, for all environments. Read more
source§fn search_tokens(&self) -> Vec<GString>
fn search_tokens(&self) -> Vec<GString>
Returns all search tokens for this component. Read more
source§fn sort_score(&self) -> u32
fn sort_score(&self) -> u32
Returns the sorting priority of this component. Read more
source§fn supports(&self) -> Vec<Relation>
fn supports(&self) -> Vec<Relation>
Get an array of items that are supported by this component,
e.g. to indicate support for a specific piece of hardware. Read more
source§fn timestamp_eol(&self) -> u64
fn timestamp_eol(&self) -> u64
Gets the UNIX timestamp for the date when this component
is out of support (end-of-life) and will receive no more
updates, not even security fixes. Read more
source§fn translations(&self) -> Vec<Translation>
fn translations(&self) -> Vec<Translation>
Get a
GPtrArray
of Translation
objects describing the
translation systems and translation-ids (e.g. Gettext domains) used
by this software component. Read moresource§fn has_bundle(&self) -> bool
fn has_bundle(&self) -> bool
Returns Read more
source§fn has_category(&self, category: &str) -> bool
fn has_category(&self, category: &str) -> bool
Check if component is in the specified category. Read more
source§fn has_tag(&self, ns: &str, tag: &str) -> bool
fn has_tag(&self, ns: &str, tag: &str) -> bool
Test if the component is tagged with the selected
tag. Read more
source§fn insert_custom_value(&self, key: &str, value: &str) -> bool
fn insert_custom_value(&self, key: &str, value: &str) -> bool
Add a key and value pair to the custom data table. Read more
source§fn is_compulsory_for_desktop(&self, desktop: &str) -> bool
fn is_compulsory_for_desktop(&self, desktop: &str) -> bool
Check if this component is compulsory for the given desktop. Read more
source§fn is_ignored(&self) -> bool
fn is_ignored(&self) -> bool
Returns Read more
source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Check if the essential properties of this Component are
populated with useful data. Read more
source§fn load_from_bytes(
&self,
context: &impl IsA<Context>,
format: FormatKind,
bytes: &Bytes,
) -> Result<(), Error>
fn load_from_bytes( &self, context: &impl IsA<Context>, format: FormatKind, bytes: &Bytes, ) -> Result<(), Error>
source§fn load_releases(&self, allow_net: bool) -> Result<Option<ReleaseList>, Error>
fn load_releases(&self, allow_net: bool) -> Result<Option<ReleaseList>, Error>
Get release information for this component, download it
if necessary. Read more
source§fn search_matches(&self, term: &str) -> u32
fn search_matches(&self, term: &str) -> u32
Searches component data for a specific keyword. Read more
source§fn set_branch(&self, branch: &str)
fn set_branch(&self, branch: &str)
Set the branch that the component instance was sourced from. Read more
source§fn set_branding(&self, branding: &impl IsA<Branding>)
fn set_branding(&self, branding: &impl IsA<Branding>)
Set branding for this component. Read more
source§fn set_compulsory_for_desktop(&self, desktop: &str)
fn set_compulsory_for_desktop(&self, desktop: &str)
Mark this component to be compulsory for the specified desktop environment. Read more
source§fn set_context(&self, context: &impl IsA<Context>)
fn set_context(&self, context: &impl IsA<Context>)
Sets the document context this component is associated
with. Read more
source§fn set_context_locale(&self, locale: &str)
fn set_context_locale(&self, locale: &str)
Set the active locale on the context assoaiacted with this component,
creating a new context for the component if none exists yet. Read more
source§fn set_data_id(&self, value: &str)
fn set_data_id(&self, value: &str)
Set the session-specific unique metadata identifier for this
component.
If two components have a different data_id but the same ID,
they will be treated as independent sets of metadata describing
the same component type. Read more
source§fn set_date_eol(&self, date: &str)
fn set_date_eol(&self, date: &str)
Sets an end-of-life date for this component. Read more
source§fn set_description(&self, value: &str, locale: Option<&str>)
fn set_description(&self, value: &str, locale: Option<&str>)
Set long description for this component. Read more
source§fn set_keywords(
&self,
new_keywords: &[&str],
locale: Option<&str>,
deep_copy: bool,
)
fn set_keywords( &self, new_keywords: &[&str], locale: Option<&str>, deep_copy: bool, )
Set keywords for this component, replacing all existing ones for the selected locale. Read more
source§fn set_kind(&self, value: ComponentKind)
fn set_kind(&self, value: ComponentKind)
Sets the
ComponentKind
of this component. Read moresource§fn set_metadata_license(&self, value: &str)
fn set_metadata_license(&self, value: &str)
Set the license this metadata is licensed under. Read more
source§fn set_name(&self, value: &str, locale: Option<&str>)
fn set_name(&self, value: &str, locale: Option<&str>)
Set a human-readable name for this component. Read more
source§fn set_name_variant_suffix(&self, value: &str, locale: Option<&str>)
fn set_name_variant_suffix(&self, value: &str, locale: Option<&str>)
Set a variant suffix for the component name
(only to be displayed if components have the same name). Read more
source§fn set_origin(&self, origin: &str)
fn set_origin(&self, origin: &str)
origin
Read moresource§fn set_pkgname(&self, pkgname: &str)
fn set_pkgname(&self, pkgname: &str)
Set the package name that provides this component. Read more
source§fn set_pkgnames(&self, packages: &[&str])
fn set_pkgnames(&self, packages: &[&str])
Set a list of package names this component consists of.
(This should usually be just one package name)
source§fn set_priority(&self, priority: i32)
fn set_priority(&self, priority: i32)
Sets the priority of this component.
This method is used internally. Read more
source§fn set_project_group(&self, value: &str)
fn set_project_group(&self, value: &str)
Set the component’s project group. Read more
source§fn set_project_license(&self, value: &str)
fn set_project_license(&self, value: &str)
Set the project license. Read more
source§fn set_releases(&self, releases: &impl IsA<ReleaseList>)
fn set_releases(&self, releases: &impl IsA<ReleaseList>)
Set a new set of releases for this component. Read more
source§fn set_scope(&self, scope: ComponentScope)
fn set_scope(&self, scope: ComponentScope)
Sets the
ComponentScope
of this component. Read moresource§fn set_sort_score(&self, score: u32)
fn set_sort_score(&self, score: u32)
Sets the sorting score of this component. Read more
source§fn set_source_pkgname(&self, spkgname: &str)
fn set_source_pkgname(&self, spkgname: &str)
spkgname
Read moresource§fn set_summary(&self, value: &str, locale: Option<&str>)
fn set_summary(&self, value: &str, locale: Option<&str>)
Set a short description for this component. Read more
source§fn sort_screenshots(
&self,
environment: Option<&str>,
style: Option<&str>,
prioritize_style: bool,
)
fn sort_screenshots( &self, environment: Option<&str>, style: Option<&str>, prioritize_style: bool, )
Reorder the screenshots to prioritize a certain environment or style, instead of using the default
screenshot order. Read more
source§fn to_str(&self) -> GString
fn to_str(&self) -> GString
Returns a string identifying this component.
(useful for debugging) Read more
fn connect_categories_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_description_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_icons_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_id_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_keywords_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_kind_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_pkgnames_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_project_group_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_project_license_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_screenshots_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_summary_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_urls_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *const GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(_: *const GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(_: *const GSList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GList) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GPtrArray> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GPtrArray) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GPtrArray) -> Vec<T>
source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
unsafe fn from_glib_none_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_container_as_vec(ptr: *mut GSList) -> Vec<T>
unsafe fn from_glib_full_as_vec(ptr: *mut GSList) -> Vec<T>
source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
impl<U> IsSubclassableExt for Uwhere
U: IsClass + ParentClassIs,
fn parent_class_init<T>(class: &mut Class<U>)
fn parent_instance_init<T>(instance: &mut InitializingObject<T>)
source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.source§fn object_class(&self) -> &Class<Object>
fn object_class(&self) -> &Class<Object>
Returns the
ObjectClass
of the object. Read moresource§fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
fn class_of<U>(&self) -> Option<&Class<U>>where
U: IsClass,
Returns the class of the object in the given type
T
. Read moresource§fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
fn interface<U>(&self) -> Option<InterfaceRef<'_, U>>where
U: IsInterface,
Returns the interface
T
of the object. Read moresource§fn set_property_from_value(&self, property_name: &str, value: &Value)
fn set_property_from_value(&self, property_name: &str, value: &Value)
source§fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
fn set_properties(&self, property_values: &[(&str, &dyn ToValue)])
Sets multiple properties of the object at once. Read more
source§fn set_properties_from_value(&self, property_values: &[(&str, Value)])
fn set_properties_from_value(&self, property_values: &[(&str, Value)])
Sets multiple properties of the object at once. Read more
source§fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
fn property<V>(&self, property_name: &str) -> Vwhere
V: for<'b> FromValue<'b> + 'static,
Gets the property
property_name
of the object and cast it to the type V. Read moresource§fn property_value(&self, property_name: &str) -> Value
fn property_value(&self, property_name: &str) -> Value
Gets the property
property_name
of the object. Read moresource§fn property_type(&self, property_name: &str) -> Option<Type>
fn property_type(&self, property_name: &str) -> Option<Type>
Get the type of the property
property_name
of this object. Read moresource§fn find_property(&self, property_name: &str) -> Option<ParamSpec>
fn find_property(&self, property_name: &str) -> Option<ParamSpec>
Get the
ParamSpec
of the property property_name
of this object.source§fn list_properties(&self) -> PtrSlice<ParamSpec>
fn list_properties(&self) -> PtrSlice<ParamSpec>
Return all
ParamSpec
of the properties of this object.source§fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
fn freeze_notify(&self) -> PropertyNotificationFreezeGuard
Freeze all property notifications until the return guard object is dropped. Read more
source§unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
unsafe fn set_qdata<QD>(&self, key: Quark, value: QD)where
QD: 'static,
Set arbitrary data on this object with the given
key
. Read moresource§unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn qdata<QD>(&self, key: Quark) -> Option<NonNull<QD>>where
QD: 'static,
Return previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
unsafe fn steal_qdata<QD>(&self, key: Quark) -> Option<QD>where
QD: 'static,
Retrieve previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
unsafe fn set_data<QD>(&self, key: &str, value: QD)where
QD: 'static,
Set arbitrary data on this object with the given
key
. Read moresource§unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
unsafe fn data<QD>(&self, key: &str) -> Option<NonNull<QD>>where
QD: 'static,
Return previously set arbitrary data of this object with the given
key
. Read moresource§unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
unsafe fn steal_data<QD>(&self, key: &str) -> Option<QD>where
QD: 'static,
Retrieve previously set arbitrary data of this object with the given
key
. Read moresource§fn block_signal(&self, handler_id: &SignalHandlerId)
fn block_signal(&self, handler_id: &SignalHandlerId)
Block a given signal handler. Read more
source§fn unblock_signal(&self, handler_id: &SignalHandlerId)
fn unblock_signal(&self, handler_id: &SignalHandlerId)
Unblock a given signal handler.
source§fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
fn stop_signal_emission(&self, signal_id: SignalId, detail: Option<Quark>)
Stop emission of the currently emitted signal.
source§fn stop_signal_emission_by_name(&self, signal_name: &str)
fn stop_signal_emission_by_name(&self, signal_name: &str)
Stop emission of the currently emitted signal by the (possibly detailed) signal name.
source§fn connect<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name
on this object. Read moresource§fn connect_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id
on this object. Read moresource§fn connect_local<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name
on this object. Read moresource§fn connect_local_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
fn connect_local_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id
on this object. Read moresource§unsafe fn connect_unsafe<F>(
&self,
signal_name: &str,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe<F>( &self, signal_name: &str, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_name
on this object. Read moresource§unsafe fn connect_unsafe_id<F>(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
callback: F,
) -> SignalHandlerId
unsafe fn connect_unsafe_id<F>( &self, signal_id: SignalId, details: Option<Quark>, after: bool, callback: F, ) -> SignalHandlerId
Connect to the signal
signal_id
on this object. Read moresource§fn connect_closure(
&self,
signal_name: &str,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure( &self, signal_name: &str, after: bool, closure: RustClosure, ) -> SignalHandlerId
Connect a closure to the signal
signal_name
on this object. Read moresource§fn connect_closure_id(
&self,
signal_id: SignalId,
details: Option<Quark>,
after: bool,
closure: RustClosure,
) -> SignalHandlerId
fn connect_closure_id( &self, signal_id: SignalId, details: Option<Quark>, after: bool, closure: RustClosure, ) -> SignalHandlerId
Connect a closure to the signal
signal_id
on this object. Read moresource§fn watch_closure(&self, closure: &impl AsRef<Closure>)
fn watch_closure(&self, closure: &impl AsRef<Closure>)
Limits the lifetime of
closure
to the lifetime of the object. When
the object’s reference count drops to zero, the closure will be
invalidated. An invalidated closure will ignore any calls to
invoke_with_values
, or
invoke
when using Rust closures.source§fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit<R>(&self, signal_id: SignalId, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by signal id. Read more
source§fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
fn emit_with_values(&self, signal_id: SignalId, args: &[Value]) -> Option<Value>
Same as
Self::emit
but takes Value
for the arguments.source§fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name<R>(&self, signal_name: &str, args: &[&dyn ToValue]) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by its name. Read more
source§fn emit_by_name_with_values(
&self,
signal_name: &str,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_values( &self, signal_name: &str, args: &[Value], ) -> Option<Value>
Emit signal by its name. Read more
source§fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_by_name_with_details<R>(
&self,
signal_name: &str,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by its name with details. Read more
source§fn emit_by_name_with_details_and_values(
&self,
signal_name: &str,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_by_name_with_details_and_values( &self, signal_name: &str, details: Quark, args: &[Value], ) -> Option<Value>
Emit signal by its name with details. Read more
source§fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
fn emit_with_details<R>(
&self,
signal_id: SignalId,
details: Quark,
args: &[&dyn ToValue],
) -> Rwhere
R: TryFromClosureReturnValue,
Emit signal by signal id with details. Read more
source§fn emit_with_details_and_values(
&self,
signal_id: SignalId,
details: Quark,
args: &[Value],
) -> Option<Value>
fn emit_with_details_and_values( &self, signal_id: SignalId, details: Quark, args: &[Value], ) -> Option<Value>
Emit signal by signal id with details. Read more
source§fn disconnect(&self, handler_id: SignalHandlerId)
fn disconnect(&self, handler_id: SignalHandlerId)
Disconnect a previously connected signal handler.
source§fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
Connect to the
notify
signal of the object. Read moresource§fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
fn connect_notify_local<F>(&self, name: Option<&str>, f: F) -> SignalHandlerId
Connect to the
notify
signal of the object. Read moresource§unsafe fn connect_notify_unsafe<F>(
&self,
name: Option<&str>,
f: F,
) -> SignalHandlerId
unsafe fn connect_notify_unsafe<F>( &self, name: Option<&str>, f: F, ) -> SignalHandlerId
Connect to the
notify
signal of the object. Read moresource§fn notify(&self, property_name: &str)
fn notify(&self, property_name: &str)
Notify that the given property has changed its value. Read more
source§fn notify_by_pspec(&self, pspec: &ParamSpec)
fn notify_by_pspec(&self, pspec: &ParamSpec)
Notify that the given property has changed its value. Read more
source§fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
fn add_weak_ref_notify<F>(&self, f: F) -> WeakRefNotify<T>
Add a callback to be notified when the Object is disposed.
source§fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
fn add_weak_ref_notify_local<F>(&self, f: F) -> WeakRefNotify<T>where
F: FnOnce() + 'static,
Add a callback to be notified when the Object is disposed. Read more
source§fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
fn bind_property<'a, 'f, 't, O>(
&'a self,
source_property: &'a str,
target: &'a O,
target_property: &'a str,
) -> BindingBuilder<'a, 'f, 't>where
O: ObjectType,
source§unsafe fn run_dispose(&self)
unsafe fn run_dispose(&self)
Runs the dispose mechanism of the object. Read more
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.