Struct xcb::xinput::ValuatorClass
source · pub struct ValuatorClass { /* private fields */ }
Implementations§
source§impl ValuatorClass
impl ValuatorClass
sourcepub fn new(
type: DeviceClassType,
len: u16,
source: Device,
number: u16,
label: Atom,
min: Fp3232,
max: Fp3232,
value: Fp3232,
resolution: u32,
mode: ValuatorMode,
) -> ValuatorClass
pub fn new( type: DeviceClassType, len: u16, source: Device, number: u16, label: Atom, min: Fp3232, max: Fp3232, value: Fp3232, resolution: u32, mode: ValuatorMode, ) -> ValuatorClass
Construct a new ValuatorClass.
pub fn type(&self) -> DeviceClassType
pub fn len(&self) -> u16
pub fn source(&self) -> Device
pub fn number(&self) -> u16
pub fn label(&self) -> Atom
pub fn min(&self) -> Fp3232
pub fn max(&self) -> Fp3232
pub fn value(&self) -> Fp3232
pub fn resolution(&self) -> u32
pub fn mode(&self) -> ValuatorMode
Trait Implementations§
source§impl Clone for ValuatorClass
impl Clone for ValuatorClass
source§fn clone(&self) -> ValuatorClass
fn clone(&self) -> ValuatorClass
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ValuatorClass
impl Debug for ValuatorClass
impl Copy for ValuatorClass
Auto Trait Implementations§
impl Freeze for ValuatorClass
impl RefUnwindSafe for ValuatorClass
impl Send for ValuatorClass
impl Sync for ValuatorClass
impl Unpin for ValuatorClass
impl UnwindSafe for ValuatorClass
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)