pub struct OpenXrSmokeOptions {
pub prefer_left: bool,
pub hands: bool,
pub distance_m: f32,
pub scale: f32,
pub timeout_sec: Option<f32>,
pub pixel_width: u32,
pub pixel_height: u32,
pub application_name: String,
pub engine_name: String,
pub affordance_demo: bool,
pub panel_facing: OpenXrPanelFacingOptions,
}Expand description
Runtime, input, physical panel, timeout, and demo settings for the smoke app.
Non-positive/non-finite distance and scale fall back to 2.0 metres and DPR
1.0. Pixel axes are clamped to at least one. A timeout is active only when
finite and strictly positive; None or invalid values mean no timeout.
§Examples
use ailloli_ui_openxr::OpenXrSmokeOptions;
let options = OpenXrSmokeOptions::default();
assert_eq!((options.distance_m, options.scale), (2.0, 1.0));
assert_eq!(options.timeout_sec, None);Fields§
§prefer_left: boolPrefer the left controller when both controller rays are available.
hands: boolEnable tracked-hand fallback when the runtime supports it.
distance_m: f32Initial panel distance in metres; invalid values fall back to 2.0.
scale: f32Logical-to-physical UI scale; invalid values fall back to 1.0.
timeout_sec: Option<f32>Optional positive finite automatic-exit delay in seconds.
pixel_width: u32UI swapchain width in pixels; clamped to at least one.
pixel_height: u32UI swapchain height in pixels; clamped to at least one.
application_name: StringOpenXR application name, subject to native byte/NUL limits.
engine_name: StringOpenXR/Vulkan engine name, subject to native byte/NUL limits.
affordance_demo: boolWhether the view exposes move and resize affordances.
panel_facing: OpenXrPanelFacingOptionsPanel-facing policy used by affordance moves.
Trait Implementations§
Source§impl Clone for OpenXrSmokeOptions
impl Clone for OpenXrSmokeOptions
Source§fn clone(&self) -> OpenXrSmokeOptions
fn clone(&self) -> OpenXrSmokeOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpenXrSmokeOptions
impl Debug for OpenXrSmokeOptions
Auto Trait Implementations§
impl Freeze for OpenXrSmokeOptions
impl RefUnwindSafe for OpenXrSmokeOptions
impl Send for OpenXrSmokeOptions
impl Sync for OpenXrSmokeOptions
impl Unpin for OpenXrSmokeOptions
impl UnwindSafe for OpenXrSmokeOptions
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
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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().