pub struct PointerStyleConfig {
pub color: String,
pub size: f32,
}Expand description
Appearance configuration for one laser pointer style.
Fields§
§color: StringHex color string (e.g., “#FF0000” or “#FF000080”).
size: f32Size in logical pixels at 1x scale.
Trait Implementations§
Source§impl Clone for PointerStyleConfig
impl Clone for PointerStyleConfig
Source§fn clone(&self) -> PointerStyleConfig
fn clone(&self) -> PointerStyleConfig
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 PointerStyleConfig
impl Debug for PointerStyleConfig
Source§impl Default for PointerStyleConfig
impl Default for PointerStyleConfig
Source§impl<'de> Deserialize<'de> for PointerStyleConfigwhere
PointerStyleConfig: Default,
impl<'de> Deserialize<'de> for PointerStyleConfigwhere
PointerStyleConfig: 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 PointerStyleConfig
impl RefUnwindSafe for PointerStyleConfig
impl Send for PointerStyleConfig
impl Sync for PointerStyleConfig
impl Unpin for PointerStyleConfig
impl UnsafeUnpin for PointerStyleConfig
impl UnwindSafe for PointerStyleConfig
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