pub struct OpenXrPanelGrabUpdate {
pub layer: OpenXrQuadLayerOptions,
pub hmd_pose_seen: bool,
pub yaw_applied: bool,
pub grab_point_stable: bool,
pub pitch_deg: f32,
pub pitch_clamped: bool,
}Expand description
Result of applying a stable-grab facing update.
§Examples
use ailloli_ui_openxr::OpenXrQuadLayerOptions;
use ailloli_ui_openxr::openxr_runtime::panel::OpenXrPanelGrabUpdate;
let update = OpenXrPanelGrabUpdate { layer: OpenXrQuadLayerOptions::default(), hmd_pose_seen: false, yaw_applied: false, grab_point_stable: false, pitch_deg: 0.0, pitch_clamped: false };
assert!(!update.hmd_pose_seen);Fields§
§layer: OpenXrQuadLayerOptionsUpdated layer pose and unchanged layer presentation properties.
hmd_pose_seen: boolWhether the call received an HMD position.
yaw_applied: boolWhether a facing rotation was successfully computed and applied.
grab_point_stable: boolWhether the transformed grab point is within one millimetre of its target.
pitch_deg: f32Applied pitch in degrees; zero for yaw-only/fixed paths.
pitch_clamped: boolWhether pitch was clipped to its configured bounds.
Trait Implementations§
Source§impl Clone for OpenXrPanelGrabUpdate
impl Clone for OpenXrPanelGrabUpdate
Source§fn clone(&self) -> OpenXrPanelGrabUpdate
fn clone(&self) -> OpenXrPanelGrabUpdate
Returns a copy 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 moreimpl Copy for OpenXrPanelGrabUpdate
Auto Trait Implementations§
impl Freeze for OpenXrPanelGrabUpdate
impl RefUnwindSafe for OpenXrPanelGrabUpdate
impl Send for OpenXrPanelGrabUpdate
impl Sync for OpenXrPanelGrabUpdate
impl Unpin for OpenXrPanelGrabUpdate
impl UnwindSafe for OpenXrPanelGrabUpdate
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
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