pub struct OverlayConfig {
pub polygon_sides: u32,
pub grab_tolerance: u32,
pub loupe_radius: u32,
pub flash_ms: u64,
pub flash_brief_ms: u64,
pub caret_blink_ms: u64,
}Expand description
How the overlay feels: reach, magnification, and how long it talks.
None of these change what is saved. They exist because the right number is a matter of hand, screen, and eyesight rather than something this project can pick for everyone.
Fields§
§polygon_sides: u32Sides the polygon tool starts on.
The digit keys reach 3 to 9 because that is what one keypress can say. This is how you get anything else: set it here and the tool opens on it.
grab_tolerance: u32How close to a border counts as grabbing it, in logical pixels, scaled per monitor. Larger is easier on a trackpad and makes small shapes harder to click inside.
loupe_radius: u32The magnifier’s source radius: it shows a 2r+1 pixel square, so
larger means more context at less magnification.
flash_ms: u64How long a message stays on screen — saves, errors, the things worth reading twice.
flash_brief_ms: u64How long the brief messages stay: tool switches and the like, the ones confirming something you just did on purpose. Raise it if 1.2 seconds is not long enough to read comfortably.
caret_blink_ms: u64Caret blink interval in the label editor. 0 stops the blink
and leaves the caret solid, which is a supported value rather than
an accident of the arithmetic.
Trait Implementations§
Source§impl Clone for OverlayConfig
impl Clone for OverlayConfig
Source§fn clone(&self) -> OverlayConfig
fn clone(&self) -> OverlayConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OverlayConfig
Source§impl Debug for OverlayConfig
impl Debug for OverlayConfig
Source§impl Default for OverlayConfig
impl Default for OverlayConfig
Source§impl<'de> Deserialize<'de> for OverlayConfigwhere
OverlayConfig: Default,
impl<'de> Deserialize<'de> for OverlayConfigwhere
OverlayConfig: 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>,
impl Eq for OverlayConfig
Source§impl PartialEq for OverlayConfig
impl PartialEq for OverlayConfig
Source§impl Serialize for OverlayConfig
impl Serialize for OverlayConfig
impl StructuralPartialEq for OverlayConfig
Auto Trait Implementations§
impl Freeze for OverlayConfig
impl RefUnwindSafe for OverlayConfig
impl Send for OverlayConfig
impl Sync for OverlayConfig
impl Unpin for OverlayConfig
impl UnsafeUnpin for OverlayConfig
impl UnwindSafe for OverlayConfig
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.