1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
56use crate::ffi;
7use glib::{bitflags::bitflags, translate::*};
89bitflags! {
10#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
11 #[doc(alias = "GstAnalyticsRelTypes")]
12pub struct RelTypes: u32 {
13/// No relation
14#[doc(alias = "GST_ANALYTICS_REL_TYPE_NONE")]
15const NONE = ffi::GST_ANALYTICS_REL_TYPE_NONE as _;
16/// First analysis-meta is part of second analysis-meta
17#[doc(alias = "GST_ANALYTICS_REL_TYPE_IS_PART_OF")]
18const IS_PART_OF = ffi::GST_ANALYTICS_REL_TYPE_IS_PART_OF as _;
19/// First analysis-meta contain second analysis-meta.
20#[doc(alias = "GST_ANALYTICS_REL_TYPE_CONTAIN")]
21const CONTAIN = ffi::GST_ANALYTICS_REL_TYPE_CONTAIN as _;
22/// First analysis-meta relate to second analysis-meta.
23#[doc(alias = "GST_ANALYTICS_REL_TYPE_RELATE_TO")]
24const RELATE_TO = ffi::GST_ANALYTICS_REL_TYPE_RELATE_TO as _;
25/// Used to express relations between two groups where each group's components
26 /// correspond to the respective component in the other group.
27#[cfg(feature = "v1_26")]
28 #[cfg_attr(docsrs, doc(cfg(feature = "v1_26")))]
29 #[doc(alias = "GST_ANALYTICS_REL_TYPE_N_TO_N")]
30const N_TO_N = ffi::GST_ANALYTICS_REL_TYPE_N_TO_N as _;
31/// Only use for criteria.
32#[doc(alias = "GST_ANALYTICS_REL_TYPE_ANY")]
33const ANY = ffi::GST_ANALYTICS_REL_TYPE_ANY as _;
34 }
35}
3637#[doc(hidden)]
38impl IntoGlib for RelTypes {
39type GlibType = ffi::GstAnalyticsRelTypes;
4041#[inline]
42fn into_glib(self) -> ffi::GstAnalyticsRelTypes {
43self.bits()
44 }
45}
4647#[doc(hidden)]
48impl FromGlib<ffi::GstAnalyticsRelTypes> for RelTypes {
49#[inline]
50unsafe fn from_glib(value: ffi::GstAnalyticsRelTypes) -> Self {
51skip_assert_initialized!();
52Self::from_bits_truncate(value)
53 }
54}