1use crate::{ffi, DomElement, DomNode, Gc};
6use glib::{prelude::*, translate::*};
7
8glib::wrapper! {
9#[doc(alias = "ArvGcNode")]
18 pub struct GcNode(Object<ffi::ArvGcNode, ffi::ArvGcNodeClass>) @extends DomElement, DomNode;
19
20 match fn {
21 type_ => || ffi::arv_gc_node_get_type(),
22 }
23}
24
25impl GcNode {
26 pub const NONE: Option<&'static GcNode> = None;
27}
28
29unsafe impl Send for GcNode {}
30
31mod sealed {
32 pub trait Sealed {}
33 impl<T: super::IsA<super::GcNode>> Sealed for T {}
34}
35
36pub trait GcNodeExt: IsA<GcNode> + sealed::Sealed + 'static {
42 #[doc(alias = "arv_gc_node_get_genicam")]
43 #[doc(alias = "get_genicam")]
44 fn genicam(&self) -> Option<Gc> {
45 unsafe { from_glib_none(ffi::arv_gc_node_get_genicam(self.as_ref().to_glib_none().0)) }
46 }
47}
48
49impl<O: IsA<GcNode>> GcNodeExt for O {}