You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Returns the device's dimensions, if applicable.
836
+
#[must_use]
827
837
pubfndimensions(&self) -> Option<(u32,u32)>{
828
838
self.0.dimensions
829
839
}
830
840
831
841
/// Returns the device's regions.
842
+
#[must_use]
832
843
pubfnregions(&self) -> &[Region]{
833
844
&self.0.regions
834
845
}
835
846
836
847
/// Returns the device's keymap, if applicable.
848
+
#[must_use]
837
849
pubfnkeymap(&self) -> Option<&Keymap>{
838
850
self.0.keymap.as_ref()
839
851
}
840
852
841
853
/// Returns an interface proxy if it is implemented for this device.
842
854
///
843
855
/// Interfaces of devices are implemented, such that there is one `ei_device` object and other objects (for example `ei_keyboard`) denoting capabilities.
0 commit comments