organize input element types and implementation into dedicated files

This commit is contained in:
temportalflux
2026-07-11 09:31:07 -04:00
parent eb8f90a310
commit 13676cf649
10 changed files with 2907 additions and 2859 deletions
+3 -5
View File
@@ -1,6 +1,9 @@
use gpui::Context;
use std::time::Duration;
/// Default interval for cursor blinking.
pub const DEFAULT_BLINK_INTERVAL: Duration = Duration::from_millis(500);
/// Manages the blinking state of a text cursor.
///
/// The cursor blinks at a configurable interval when enabled. Blinking can be
@@ -32,11 +35,6 @@ impl CursorBlink {
self.visible
}
/// Returns whether blinking is currently active.
pub fn is_active(&self) -> bool {
self.active
}
/// Activates cursor blinking.
///
/// When activated, the cursor will alternate between visible and hidden