pub struct LaserConfig {
pub color: String,
pub size: f32,
pub style: String,
pub dot: PointerStyleConfig,
pub crosshair: PointerStyleConfig,
pub arrow: PointerStyleConfig,
pub ring: PointerStyleConfig,
pub bullseye: PointerStyleConfig,
pub highlight: PointerStyleConfig,
}Expand description
Laser pointer configuration.
Fields§
§color: StringDefault hex color string (e.g., “#FF0000”) applied to all pointer styles unless overridden.
size: f32Default size in logical pixels at 1x scale applied to all pointer styles unless overridden.
style: StringStyle: “dot”, “crosshair”, “arrow”, “ring”, “bullseye”, or “highlight”.
dot: PointerStyleConfigDot pointer appearance.
crosshair: PointerStyleConfigCrosshair pointer appearance.
arrow: PointerStyleConfigArrow pointer appearance.
ring: PointerStyleConfigRing pointer appearance.
bullseye: PointerStyleConfigBullseye pointer appearance.
highlight: PointerStyleConfigHighlight pointer appearance.
Trait Implementations§
Source§impl Clone for LaserConfig
impl Clone for LaserConfig
Source§fn clone(&self) -> LaserConfig
fn clone(&self) -> LaserConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LaserConfig
impl Debug for LaserConfig
Source§impl Default for LaserConfig
impl Default for LaserConfig
Source§impl<'de> Deserialize<'de> for LaserConfigwhere
LaserConfig: Default,
impl<'de> Deserialize<'de> for LaserConfigwhere
LaserConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LaserConfig
impl RefUnwindSafe for LaserConfig
impl Send for LaserConfig
impl Sync for LaserConfig
impl Unpin for LaserConfig
impl UnsafeUnpin for LaserConfig
impl UnwindSafe for LaserConfig
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