Skip to main content

CARET_WIDTH_PX

Constant CARET_WIDTH_PX 

Source
pub const CARET_WIDTH_PX: f32 = 2.0;
Expand description

Default text-input caret stroke width, in logical pixels (caret-width CSS property). The single Rust fallback, used when no CaretWidth override is present; render paths scale this by the active DPR themselves.