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