mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:24:24 +00:00
17 lines
452 B
Rust
17 lines
452 B
Rust
//! What a component takes from the user, which decides its default key use.
|
|
|
|
/// The input a component takes.
|
|
// F2-MERGE: contract (`Input` is a base type no F2 track owns).
|
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
|
#[non_exhaustive]
|
|
pub enum Input {
|
|
/// A control the pointer acts on.
|
|
Pointer,
|
|
/// A text field.
|
|
Text,
|
|
/// Shows something; takes no input.
|
|
Display,
|
|
/// An editor with its own caret.
|
|
Editor,
|
|
}
|