Skip to content

Commit 32af1dc

Browse files
TextInputBuffer config
1 parent 66048df commit 32af1dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/bevy_text/src/input.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
//! * [`TextInputFilter`] - Optional component that can be added to restrict the text input to certain formats, such as integers, decimals, hexadecimal etc.
2828
//! * [`PasswordMask`] - Optional component that can be added to hide the text input buffer contents by replacing the characters with a mask character.
2929
//!
30+
//! The [`TextInputBuffer`] component itself also has two fields that can be configured:
31+
//!
32+
//! - [`TextInputBuffer::space_advance`] - Space advance width for the current font, used to determine the width of the cursor when it is at the end of a line or when the buffer is empty.
33+
//! - [`TextInputBuffer::cursor_blink_timer`] - Controls cursor blinking.
34+
//!
3035
//! ## Copy-paste and clipboard support
3136
//!
3237
//! The clipboard support provided by this module is very basic, and only works within the `bevy` app,

0 commit comments

Comments
 (0)