gtk4/
scale.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::*, Scale};
6
7mod sealed {
8    pub trait Sealed {}
9    impl<T: super::IsA<super::Scale>> Sealed for T {}
10}
11
12// rustdoc-stripper-ignore-next
13/// Trait containing manually implemented methods of [`Scale`](crate::Scale).
14pub trait ScaleExtManual: sealed::Sealed + IsA<Scale> + 'static {
15    #[doc(alias = "gtk_scale_set_format_value_func")]
16    #[doc(alias = "set_format_value_func")]
17    fn unset_format_value_func(&self) {
18        unsafe {
19            crate::ffi::gtk_scale_set_format_value_func(
20                self.as_ref().to_glib_none().0,
21                None,
22                std::ptr::null_mut(),
23                None,
24            );
25        }
26    }
27}
28
29impl<O: IsA<Scale>> ScaleExtManual for O {}