#[repr(C)]pub struct PenTilt {
pub x_tilt: f32,
pub y_tilt: f32,
}Expand description
FFI-safe wrapper for pen tilt angles (x_tilt, y_tilt) in degrees
Fields§
§x_tilt: f32X-axis tilt angle in degrees (-90 to 90)
y_tilt: f32Y-axis tilt angle in degrees (-90 to 90)
Trait Implementations§
Source§impl PartialOrd for PenTilt
impl PartialOrd for PenTilt
impl Copy for PenTilt
impl StructuralPartialEq for PenTilt
Auto Trait Implementations§
impl Freeze for PenTilt
impl RefUnwindSafe for PenTilt
impl Send for PenTilt
impl Sync for PenTilt
impl Unpin for PenTilt
impl UnwindSafe for PenTilt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more