#[repr(transparent)]pub struct SDL_PenInputFlags(pub Uint32);Expand description
Pen input flags, as reported by various pen events’ pen_state field.
§Availability
This datatype is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
DOWN | SDL_PEN_INPUT_DOWN | pen is pressed down |
BUTTON_1 | SDL_PEN_INPUT_BUTTON_1 | button 1 is pressed |
BUTTON_2 | SDL_PEN_INPUT_BUTTON_2 | button 2 is pressed |
BUTTON_3 | SDL_PEN_INPUT_BUTTON_3 | button 3 is pressed |
BUTTON_4 | SDL_PEN_INPUT_BUTTON_4 | button 4 is pressed |
BUTTON_5 | SDL_PEN_INPUT_BUTTON_5 | button 5 is pressed |
ERASER_TIP | SDL_PEN_INPUT_ERASER_TIP | eraser tip is used |
IN_PROXIMITY | SDL_PEN_INPUT_IN_PROXIMITY | pen is in proximity (since SDL 3.4.0) |
Tuple Fields§
§0: Uint32Implementations§
Source§impl SDL_PenInputFlags
impl SDL_PenInputFlags
Sourcepub const ERASER_TIP: Self
pub const ERASER_TIP: Self
eraser tip is used
Sourcepub const IN_PROXIMITY: Self
pub const IN_PROXIMITY: Self
pen is in proximity (since SDL 3.4.0)
Trait Implementations§
Source§impl BitAnd for SDL_PenInputFlags
impl BitAnd for SDL_PenInputFlags
Source§impl BitAndAssign for SDL_PenInputFlags
impl BitAndAssign for SDL_PenInputFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for SDL_PenInputFlags
impl BitOr for SDL_PenInputFlags
Source§impl BitOrAssign for SDL_PenInputFlags
impl BitOrAssign for SDL_PenInputFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for SDL_PenInputFlags
impl BitXor for SDL_PenInputFlags
Source§impl BitXorAssign for SDL_PenInputFlags
impl BitXorAssign for SDL_PenInputFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for SDL_PenInputFlags
impl Clone for SDL_PenInputFlags
Source§fn clone(&self) -> SDL_PenInputFlags
fn clone(&self) -> SDL_PenInputFlags
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_PenInputFlags
Available on crate feature debug-impls only.
impl Debug for SDL_PenInputFlags
Available on crate feature
debug-impls only.Source§impl Default for SDL_PenInputFlags
impl Default for SDL_PenInputFlags
Source§fn default() -> SDL_PenInputFlags
fn default() -> SDL_PenInputFlags
Returns the “default value” for a type. Read more
Source§impl From<SDL_PenInputFlags> for Uint32
impl From<SDL_PenInputFlags> for Uint32
Source§fn from(value: SDL_PenInputFlags) -> Self
fn from(value: SDL_PenInputFlags) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_PenInputFlags
Available on crate feature metadata only.
impl GroupMetadata for SDL_PenInputFlags
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_PenInputFlags
impl Hash for SDL_PenInputFlags
Source§impl Not for SDL_PenInputFlags
impl Not for SDL_PenInputFlags
Source§impl PartialEq<SDL_PenInputFlags> for Uint32
impl PartialEq<SDL_PenInputFlags> for Uint32
Source§impl PartialEq<u32> for SDL_PenInputFlags
impl PartialEq<u32> for SDL_PenInputFlags
Source§impl PartialEq for SDL_PenInputFlags
impl PartialEq for SDL_PenInputFlags
impl Copy for SDL_PenInputFlags
impl Eq for SDL_PenInputFlags
impl StructuralPartialEq for SDL_PenInputFlags
Auto Trait Implementations§
impl Freeze for SDL_PenInputFlags
impl RefUnwindSafe for SDL_PenInputFlags
impl Send for SDL_PenInputFlags
impl Sync for SDL_PenInputFlags
impl Unpin for SDL_PenInputFlags
impl UnwindSafe for SDL_PenInputFlags
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