#[repr(C)]pub struct SDL_CameraDeviceEvent {
pub type: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub which: SDL_CameraID,
}Expand description
Camera device event structure (event.cdevice.*)
§Availability
This struct is available since SDL 3.2.0.
Fields§
§type: SDL_EventTypeSDL_EVENT_CAMERA_DEVICE_ADDED, SDL_EVENT_CAMERA_DEVICE_REMOVED, SDL_EVENT_CAMERA_DEVICE_APPROVED, SDL_EVENT_CAMERA_DEVICE_DENIED
reserved: Uint32§timestamp: Uint64In nanoseconds, populated using SDL_GetTicksNS()
which: SDL_CameraIDSDL_CameraID for the device being added or removed or changing
Trait Implementations§
Source§impl Clone for SDL_CameraDeviceEvent
impl Clone for SDL_CameraDeviceEvent
Source§fn clone(&self) -> SDL_CameraDeviceEvent
fn clone(&self) -> SDL_CameraDeviceEvent
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_CameraDeviceEvent
impl Debug for SDL_CameraDeviceEvent
Source§impl Default for SDL_CameraDeviceEvent
impl Default for SDL_CameraDeviceEvent
Source§fn default() -> SDL_CameraDeviceEvent
fn default() -> SDL_CameraDeviceEvent
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_CameraDeviceEvent
impl Hash for SDL_CameraDeviceEvent
Source§impl PartialEq for SDL_CameraDeviceEvent
impl PartialEq for SDL_CameraDeviceEvent
impl Copy for SDL_CameraDeviceEvent
impl Eq for SDL_CameraDeviceEvent
impl StructuralPartialEq for SDL_CameraDeviceEvent
Auto Trait Implementations§
impl Freeze for SDL_CameraDeviceEvent
impl RefUnwindSafe for SDL_CameraDeviceEvent
impl Send for SDL_CameraDeviceEvent
impl Sync for SDL_CameraDeviceEvent
impl Unpin for SDL_CameraDeviceEvent
impl UnwindSafe for SDL_CameraDeviceEvent
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