Skip to main content

Module cursor

Module cursor 

Source
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§

BlinkCanceledMsg
Message sent when a blink operation is canceled.
BlinkMsg
Message signaling that the cursor should toggle its blink state.
Cursor
A cursor component for text input.
InitialBlinkMsg
Message to initialize cursor blinking.

Enums§

Mode
Cursor display mode.

Functions§

blink_cmd
Creates a command to initialize cursor blinking.