use bevy::prelude::*;
#[derive(Component)]
pub struct IsFamiqTextInput;
#[derive(Component)]
pub struct IsFamiqTextInputPlaceholder;
#[derive(Component)]
pub struct IsFamiqTextInputBufferTexture;
#[derive(Component)]
pub struct FaTextInputPlaceholderEntity(pub Entity);
#[derive(Component)]
pub struct FaTextInputBufferTextureEntity(pub Entity);
#[derive(Component)]
pub struct FaTextInputToggleIconEntity(pub Entity);
#[derive(Component)]
pub struct FaTextInputEntity(pub Entity);
#[derive(PartialEq, Clone)]
pub enum TextInputType {
Text,
Password
}
#[derive(Component, Debug)]
pub struct CursorBlinkTimer {
pub timer: Timer,
pub can_blink: bool,
pub is_transparent: bool
}
impl Default for CursorBlinkTimer {
fn default() -> Self {
CursorBlinkTimer {
timer: Timer::from_seconds(0.6, TimerMode::Repeating),
can_blink: true,
is_transparent: false
}
}
}
#[derive(Component, Clone)]
pub struct CosmicTextData {
pub handle: Handle<Font>,
pub size: f32,
pub color: Color
}