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};
use glib::translate::*;
glib::wrapper! {
/// An object to express information for iec60958 type of element.
///
/// A `GObject::Object` derived object class for iec60958 type of element.
///
/// The object wraps `struct snd_ctl_elem_info` in UAPI of Linux sound subsystem.
///
/// # Implements
///
/// [`ElemInfoCommonExt`][trait@crate::prelude::ElemInfoCommonExt]
#[doc(alias = "ALSACtlElemInfoIec60958")]
pub struct ElemInfoIec60958(Object<ffi::ALSACtlElemInfoIec60958, ffi::ALSACtlElemInfoIec60958Class>) @implements ElemInfoCommon;
match fn {
type_ => || ffi::alsactl_elem_info_iec60958_get_type(),
}
}
impl ElemInfoIec60958 {
pub const NONE: Option<&'static ElemInfoIec60958> = None;
/// Allocate and return an instance of [`ElemInfoIec60958`][crate::ElemInfoIec60958].
///
/// # Returns
///
/// An instance of [`ElemInfoIec60958`][crate::ElemInfoIec60958].
#[doc(alias = "alsactl_elem_info_iec60958_new")]
pub fn new() -> ElemInfoIec60958 {
unsafe { from_glib_full(ffi::alsactl_elem_info_iec60958_new()) }
}
}
impl Default for ElemInfoIec60958 {
fn default() -> Self {
Self::new()
}
}