1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
// Generated by gir (https://github.com/gtk-rs/gir @ d7c0763cacbc)
// from gir-files (https://github.com/gtk-rs/gir-files @ 4d1189172a70)
// DO NOT EDIT
use crate::{ffi, Metadata, MetadataStore};
use glib::{prelude::*, translate::*};
glib::wrapper! {
///
///
/// # Implements
///
/// [`MetadataStoreExt`][trait@crate::prelude::MetadataStoreExt], [`MetadataExt`][trait@crate::prelude::MetadataExt]
#[doc(alias = "GeglMetadataHash")]
pub struct MetadataHash(Object<ffi::GeglMetadataHash, ffi::GeglMetadataHashClass>) @extends MetadataStore, @implements Metadata;
match fn {
type_ => || ffi::gegl_metadata_hash_get_type(),
}
}
impl MetadataHash {
/// Create a new [`MetadataHash`][crate::MetadataHash]
///
/// # Returns
///
/// New [`MetadataHash`][crate::MetadataHash] cast to [`MetadataStore`][crate::MetadataStore]
#[doc(alias = "gegl_metadata_hash_new")]
pub fn new() -> MetadataHash {
unsafe { MetadataStore::from_glib_full(ffi::gegl_metadata_hash_new()).unsafe_cast() }
}
}
impl Default for MetadataHash {
fn default() -> Self {
Self::new()
}
}