#[repr(C)]pub struct SDL_PenAxisEvent {
pub type: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub windowID: SDL_WindowID,
pub which: SDL_PenID,
pub pen_state: SDL_PenInputFlags,
pub x: c_float,
pub y: c_float,
pub axis: SDL_PenAxis,
pub value: c_float,
}Expand description
Pressure-sensitive pen pressure / angle event structure (event.paxis.*)
You might get some of these events even if the pen isn’t touching the tablet.
§Availability
This struct is available since SDL 3.2.0.
Fields§
§type: SDL_EventType§reserved: Uint32§timestamp: Uint64In nanoseconds, populated using SDL_GetTicksNS()
windowID: SDL_WindowIDThe window with pen focus, if any
which: SDL_PenIDThe pen instance id
pen_state: SDL_PenInputFlagsComplete pen input state at time of event
x: c_floatX coordinate, relative to window
y: c_floatY coordinate, relative to window
axis: SDL_PenAxisAxis that has changed
value: c_floatNew value of axis
Trait Implementations§
Source§impl Clone for SDL_PenAxisEvent
impl Clone for SDL_PenAxisEvent
Source§fn clone(&self) -> SDL_PenAxisEvent
fn clone(&self) -> SDL_PenAxisEvent
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_PenAxisEvent
impl Debug for SDL_PenAxisEvent
Source§impl Default for SDL_PenAxisEvent
impl Default for SDL_PenAxisEvent
Source§fn default() -> SDL_PenAxisEvent
fn default() -> SDL_PenAxisEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for SDL_PenAxisEvent
impl PartialEq for SDL_PenAxisEvent
impl Copy for SDL_PenAxisEvent
impl StructuralPartialEq for SDL_PenAxisEvent
Auto Trait Implementations§
impl Freeze for SDL_PenAxisEvent
impl RefUnwindSafe for SDL_PenAxisEvent
impl Send for SDL_PenAxisEvent
impl Sync for SDL_PenAxisEvent
impl Unpin for SDL_PenAxisEvent
impl UnsafeUnpin for SDL_PenAxisEvent
impl UnwindSafe for SDL_PenAxisEvent
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