gtk4/auto/accessible_range.rs
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// DO NOT EDIT
4
5use crate::{ffi, Accessible};
6use glib::prelude::*;
7
8glib::wrapper! {
9 /// This interface describes ranged controls, e.g. controls which have a single
10 /// value within an allowed range and that can optionally be changed by the user.
11 ///
12 /// This interface is expected to be implemented by controls using the following
13 /// roles:
14 ///
15 /// - `GTK_ACCESSIBLE_ROLE_METER`
16 /// - `GTK_ACCESSIBLE_ROLE_PROGRESS_BAR`
17 /// - `GTK_ACCESSIBLE_ROLE_SCROLLBAR`
18 /// - `GTK_ACCESSIBLE_ROLE_SLIDER`
19 /// - `GTK_ACCESSIBLE_ROLE_SPIN_BUTTON`
20 ///
21 /// If that is not the case, a warning will be issued at run time.
22 ///
23 /// In addition to this interface, its implementers are expected to provide the
24 /// correct values for the following properties:
25 ///
26 /// - `GTK_ACCESSIBLE_PROPERTY_VALUE_MAX`
27 /// - `GTK_ACCESSIBLE_PROPERTY_VALUE_MIN`
28 /// - `GTK_ACCESSIBLE_PROPERTY_VALUE_NOW`
29 /// - `GTK_ACCESSIBLE_PROPERTY_VALUE_TEXT`
30 ///
31 /// # Implements
32 ///
33 /// [`AccessibleRangeExt`][trait@crate::prelude::AccessibleRangeExt], [`AccessibleExt`][trait@crate::prelude::AccessibleExt], [`AccessibleExtManual`][trait@crate::prelude::AccessibleExtManual]
34 #[doc(alias = "GtkAccessibleRange")]
35 pub struct AccessibleRange(Interface<ffi::GtkAccessibleRange, ffi::GtkAccessibleRangeInterface>) @requires Accessible;
36
37 match fn {
38 type_ => || ffi::gtk_accessible_range_get_type(),
39 }
40}
41
42impl AccessibleRange {
43 pub const NONE: Option<&'static AccessibleRange> = None;
44}
45
46/// Trait containing all [`struct@AccessibleRange`] methods.
47///
48/// # Implementors
49///
50/// [`AccessibleRange`][struct@crate::AccessibleRange], [`LevelBar`][struct@crate::LevelBar], [`Paned`][struct@crate::Paned], [`ProgressBar`][struct@crate::ProgressBar], [`Range`][struct@crate::Range], [`ScaleButton`][struct@crate::ScaleButton], [`Scale`][struct@crate::Scale], [`Scrollbar`][struct@crate::Scrollbar], [`SpinButton`][struct@crate::SpinButton], [`VolumeButton`][struct@crate::VolumeButton]
51pub trait AccessibleRangeExt: IsA<AccessibleRange> + 'static {}
52
53impl<O: IsA<AccessibleRange>> AccessibleRangeExt for O {}