pub struct TextInteractionSettings {
pub linux_primary_selection: bool,
pub caret_blink: bool,
pub caret_blink_interval_ms: u16,
pub horizontal_autoscroll_margin_px: u16,
pub horizontal_autoscroll_max_step_px: u16,
}Expand description
Text interaction settings that affect editor-grade behaviors.
This is intentionally a small, opt-in surface: platform-specific policies (like Linux primary selection) should be disabled by default so cross-platform apps do not accidentally change UX.
Fields§
§linux_primary_selection: boolWhen true, selection changes caused by mouse interactions may update the Linux primary selection, and middle-click paste will read from primary selection when available.
caret_blink: boolWhen true, focused text inputs blink their caret.
This is intentionally opt-in to keep diagnostics and tests deterministic unless the app explicitly enables caret blink.
caret_blink_interval_ms: u16Caret blink toggle interval in milliseconds.
This is a best-effort hint; runners may coalesce timers.
horizontal_autoscroll_margin_px: u16Margin (logical px) used for editor-like horizontal auto-scroll behaviors during pointer selection drags, and for keeping the caret comfortably within view while focused.
horizontal_autoscroll_max_step_px: u16Maximum horizontal scroll step (logical px) applied per timer tick while auto-scrolling.
Trait Implementations§
Source§impl Clone for TextInteractionSettings
impl Clone for TextInteractionSettings
Source§fn clone(&self) -> TextInteractionSettings
fn clone(&self) -> TextInteractionSettings
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 TextInteractionSettings
Source§impl Debug for TextInteractionSettings
impl Debug for TextInteractionSettings
Source§impl Default for TextInteractionSettings
impl Default for TextInteractionSettings
impl Eq for TextInteractionSettings
Source§impl PartialEq for TextInteractionSettings
impl PartialEq for TextInteractionSettings
Source§fn eq(&self, other: &TextInteractionSettings) -> bool
fn eq(&self, other: &TextInteractionSettings) -> bool
self and other values to be equal, and is used by ==.