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
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT
use crate::{ffi, ElemInfoCommon, ElemInfoSingleArray};
use glib::translate::*;
glib::wrapper! {
/// An object to express information for boolean type of element.
///
/// A `GObject::Object` derived object class for boolean type of element.
///
/// The object wraps `struct snd_ctl_elem_info` in UAPI of Linux sound subsystem.
///
/// # Implements
///
/// [`ElemInfoCommonExt`][trait@crate::prelude::ElemInfoCommonExt], [`ElemInfoSingleArrayExt`][trait@crate::prelude::ElemInfoSingleArrayExt]
#[doc(alias = "ALSACtlElemInfoBoolean")]
pub struct ElemInfoBoolean(Object<ffi::ALSACtlElemInfoBoolean, ffi::ALSACtlElemInfoBooleanClass>) @implements ElemInfoCommon, ElemInfoSingleArray;
match fn {
type_ => || ffi::alsactl_elem_info_boolean_get_type(),
}
}
impl ElemInfoBoolean {
pub const NONE: Option<&'static ElemInfoBoolean> = None;
/// Allocate and return an instance of [`ElemInfoBoolean`][crate::ElemInfoBoolean].
///
/// # Returns
///
/// An instance of [`ElemInfoBoolean`][crate::ElemInfoBoolean].
#[doc(alias = "alsactl_elem_info_boolean_new")]
pub fn new() -> ElemInfoBoolean {
unsafe { from_glib_full(ffi::alsactl_elem_info_boolean_new()) }
}
}
impl Default for ElemInfoBoolean {
fn default() -> Self {
Self::new()
}
}