Expand description
Cursor component with blinking support.
This module provides a cursor component that can be used in text input components. It supports multiple modes including blinking, static, and hidden.
§Example
use bubbles::cursor::{Cursor, Mode};
let mut cursor = Cursor::new();
cursor.set_char("_");
cursor.set_mode(Mode::Static);
// In your view function:
let rendered = cursor.view();Structs§
- Blink
Canceled Msg - Message sent when a blink operation is canceled.
- Blink
Msg - Message signaling that the cursor should toggle its blink state.
- Cursor
- A cursor component for text input.
- Initial
Blink Msg - Message to initialize cursor blinking.
Enums§
- Mode
- Cursor display mode.
Functions§
- blink_
cmd - Creates a command to initialize cursor blinking.