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
5
6use crate::{Element, Object, TagList, TagMergeMode};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10 #[doc(alias = "GstTagSetter")]
11 pub struct TagSetter(Interface<ffi::GstTagSetter, ffi::GstTagSetterInterface>) @requires Element, Object;
12
13 match fn {
14 type_ => || ffi::gst_tag_setter_get_type(),
15 }
16}
17
18impl TagSetter {
19 pub const NONE: Option<&'static TagSetter> = None;
20}
21
22unsafe impl Send for TagSetter {}
23unsafe impl Sync for TagSetter {}
24
25mod sealed {
26 pub trait Sealed {}
27 impl<T: super::IsA<super::TagSetter>> Sealed for T {}
28}
29
30pub trait TagSetterExt: IsA<TagSetter> + sealed::Sealed + 'static {
31 //#[doc(alias = "gst_tag_setter_add_tag_valist")]
32 //fn add_tag_valist(&self, mode: TagMergeMode, tag: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) {
33 // unsafe { TODO: call ffi:gst_tag_setter_add_tag_valist() }
34 //}
35
36 //#[doc(alias = "gst_tag_setter_add_tag_valist_values")]
37 //fn add_tag_valist_values(&self, mode: TagMergeMode, tag: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) {
38 // unsafe { TODO: call ffi:gst_tag_setter_add_tag_valist_values() }
39 //}
40
41 //#[doc(alias = "gst_tag_setter_add_tag_values")]
42 //fn add_tag_values(&self, mode: TagMergeMode, tag: &str, : /*Unknown conversion*//*Unimplemented*/Basic: VarArgs) {
43 // unsafe { TODO: call ffi:gst_tag_setter_add_tag_values() }
44 //}
45
46 #[doc(alias = "gst_tag_setter_get_tag_list")]
47 #[doc(alias = "get_tag_list")]
48 fn tag_list(&self) -> Option<TagList> {
49 unsafe {
50 from_glib_none(ffi::gst_tag_setter_get_tag_list(
51 self.as_ref().to_glib_none().0,
52 ))
53 }
54 }
55
56 #[doc(alias = "gst_tag_setter_get_tag_merge_mode")]
57 #[doc(alias = "get_tag_merge_mode")]
58 fn tag_merge_mode(&self) -> TagMergeMode {
59 unsafe {
60 from_glib(ffi::gst_tag_setter_get_tag_merge_mode(
61 self.as_ref().to_glib_none().0,
62 ))
63 }
64 }
65
66 #[doc(alias = "gst_tag_setter_merge_tags")]
67 fn merge_tags(&self, list: &TagList, mode: TagMergeMode) {
68 unsafe {
69 ffi::gst_tag_setter_merge_tags(
70 self.as_ref().to_glib_none().0,
71 list.to_glib_none().0,
72 mode.into_glib(),
73 );
74 }
75 }
76
77 #[doc(alias = "gst_tag_setter_reset_tags")]
78 fn reset_tags(&self) {
79 unsafe {
80 ffi::gst_tag_setter_reset_tags(self.as_ref().to_glib_none().0);
81 }
82 }
83
84 #[doc(alias = "gst_tag_setter_set_tag_merge_mode")]
85 fn set_tag_merge_mode(&self, mode: TagMergeMode) {
86 unsafe {
87 ffi::gst_tag_setter_set_tag_merge_mode(
88 self.as_ref().to_glib_none().0,
89 mode.into_glib(),
90 );
91 }
92 }
93}
94
95impl<O: IsA<TagSetter>> TagSetterExt for O {}
96