gtk4/font_chooser.rs
1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use glib::translate::*;
4
5use crate::{prelude::*, FontChooser};
6
7mod sealed {
8 pub trait Sealed {}
9 impl<T: super::IsA<super::FontChooser>> Sealed for T {}
10}
11
12// rustdoc-stripper-ignore-next
13/// Trait containing manually implemented methods of
14/// [`FontChooser`](crate::FontChooser).
15#[cfg_attr(feature = "v4_10", deprecated = "Since 4.10")]
16#[allow(deprecated)]
17pub trait FontChooserExtManual: sealed::Sealed + IsA<FontChooser> + 'static {
18 #[doc(alias = "gtk_font_chooser_set_filter_func")]
19 #[doc(alias = "set_filter_func")]
20 fn unset_filter_func(&self) {
21 unsafe {
22 crate::ffi::gtk_font_chooser_set_filter_func(
23 self.as_ref().to_glib_none().0,
24 None,
25 std::ptr::null_mut(),
26 None,
27 )
28 }
29 }
30}
31
32impl<O: IsA<FontChooser>> FontChooserExtManual for O {}