organize input element types and implementation into dedicated files
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user