// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT

use glib::{bitflags::bitflags, translate::*};

bitflags! {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
    #[doc(alias = "GstAnalyticsRelTypes")]
    pub struct RelTypes: u32 {
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_NONE")]
        const NONE = ffi::GST_ANALYTICS_REL_TYPE_NONE as _;
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_IS_PART_OF")]
        const IS_PART_OF = ffi::GST_ANALYTICS_REL_TYPE_IS_PART_OF as _;
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_CONTAIN")]
        const CONTAIN = ffi::GST_ANALYTICS_REL_TYPE_CONTAIN as _;
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_RELATE_TO")]
        const RELATE_TO = ffi::GST_ANALYTICS_REL_TYPE_RELATE_TO as _;
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_LAST")]
        const LAST = ffi::GST_ANALYTICS_REL_TYPE_LAST as _;
        #[doc(alias = "GST_ANALYTICS_REL_TYPE_ANY")]
        const ANY = ffi::GST_ANALYTICS_REL_TYPE_ANY as _;
    }
}

#[doc(hidden)]
impl IntoGlib for RelTypes {
    type GlibType = ffi::GstAnalyticsRelTypes;

    #[inline]
    fn into_glib(self) -> ffi::GstAnalyticsRelTypes {
        self.bits()
    }
}

#[doc(hidden)]
impl FromGlib<ffi::GstAnalyticsRelTypes> for RelTypes {
    #[inline]
    unsafe fn from_glib(value: ffi::GstAnalyticsRelTypes) -> Self {
        skip_assert_initialized!();
        Self::from_bits_truncate(value)
    }
}
