#[repr(transparent)]pub struct SDL_TouchDeviceType(pub c_int);Expand description
An enum that describes the type of a touch device.
Available Since: This enum is available since SDL 3.2.0.
Tuple Fields§
§0: c_intImplementations§
Source§impl SDL_TouchDeviceType
impl SDL_TouchDeviceType
pub const SDL_TOUCH_DEVICE_INVALID: SDL_TouchDeviceType
Sourcepub const SDL_TOUCH_DEVICE_DIRECT: SDL_TouchDeviceType
pub const SDL_TOUCH_DEVICE_DIRECT: SDL_TouchDeviceType
< touch screen with window-relative coordinates
Sourcepub const SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE: SDL_TouchDeviceType
pub const SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE: SDL_TouchDeviceType
< trackpad with absolute device coordinates
Sourcepub const SDL_TOUCH_DEVICE_INDIRECT_RELATIVE: SDL_TouchDeviceType
pub const SDL_TOUCH_DEVICE_INDIRECT_RELATIVE: SDL_TouchDeviceType
< trackpad with screen cursor-relative coordinates
Trait Implementations§
Source§impl Clone for SDL_TouchDeviceType
impl Clone for SDL_TouchDeviceType
Source§fn clone(&self) -> SDL_TouchDeviceType
fn clone(&self) -> SDL_TouchDeviceType
Returns a duplicate 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 SDL_TouchDeviceType
impl Debug for SDL_TouchDeviceType
Source§impl Hash for SDL_TouchDeviceType
impl Hash for SDL_TouchDeviceType
Source§impl PartialEq for SDL_TouchDeviceType
impl PartialEq for SDL_TouchDeviceType
impl Copy for SDL_TouchDeviceType
impl Eq for SDL_TouchDeviceType
impl StructuralPartialEq for SDL_TouchDeviceType
Auto Trait Implementations§
impl Freeze for SDL_TouchDeviceType
impl RefUnwindSafe for SDL_TouchDeviceType
impl Send for SDL_TouchDeviceType
impl Sync for SDL_TouchDeviceType
impl Unpin for SDL_TouchDeviceType
impl UnsafeUnpin for SDL_TouchDeviceType
impl UnwindSafe for SDL_TouchDeviceType
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