use crate::layout::TcyPlace;
use crate::markup::{Outline, Shadow, TextEvent};
use crate::text::metrics::LineKind;
#[derive(Debug, Clone, PartialEq)]
#[non_exhaustive]
pub struct Step {
pub at: f32,
pub kind: StepKind,
}
#[derive(Debug, Clone, PartialEq)]
#[non_exhaustive]
pub enum StepKind {
Show(usize),
Emit(TextEvent),
}
#[derive(Debug, Clone, PartialEq)]
#[non_exhaustive]
pub struct GlyphInstance {
pub ch: char,
pub tail: String,
pub x: f32,
pub width: f32,
pub line: usize,
pub size: f32,
pub baseline_size: f32,
pub rise: f32,
pub color: Option<String>,
pub bold: bool,
pub alpha: f32,
pub offset: (f32, f32),
pub rotation: f32,
pub tcy: Option<TcyPlace>,
pub glow: f32,
pub outline: Option<Outline>,
pub shadow: Option<Shadow>,
pub icon: Option<String>,
}
#[derive(Debug, Clone, PartialEq)]
#[non_exhaustive]
pub struct DecorationInstance {
pub kind: LineKind,
pub line: usize,
pub x0: f32,
pub x1: f32,
pub y: f32,
pub thickness: f32,
pub color: Option<String>,
pub alpha: f32,
pub size: f32,
}
#[derive(Debug, Clone, Copy, PartialEq)]
#[non_exhaustive]
pub struct Cursor {
pub x: f32,
pub line: usize,
pub since: f32,
pub kind: WaitKind,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[non_exhaustive]
pub enum WaitKind {
Click,
Page,
End,
}