use super::config::{ViewerAudioView, ViewerCanvasBackground, ViewerMode};
use crate::input::{Key, MotionSpeed};
use crate::ui::UiStyle;
#[derive(Clone, Debug)]
pub struct ViewerConfig {
pub mode: ViewerMode,
pub path: String,
pub title: String,
pub width: u32,
pub height: u32,
pub style: UiStyle,
pub motion_speed: MotionSpeed,
pub show_help: bool,
pub show_stats: bool,
pub show_timeline: bool,
pub vsync: bool,
pub loop_media: bool,
pub start_playing: bool,
pub auto_hide_controls: bool,
pub controls_hide_delay_ms: u32,
pub canvas_background: ViewerCanvasBackground,
pub show_canvas_grid: bool,
pub audio_view: ViewerAudioView,
pub audio_waveform_bins: u32,
pub audio_analysis_frames: u32,
pub audio_fft_size: u32,
pub audio_hop_size: u32,
pub audio_mel_bins: u32,
pub audio_ring_ms: u32,
pub key_quit: Key,
pub key_quit_q: Key,
pub key_red: Key,
pub key_green: Key,
pub key_blue: Key,
pub key_alpha: Key,
pub key_rgb: Key,
pub key_zoom_in: Key,
pub key_zoom_out: Key,
pub key_zoom_fit: Key,
pub key_zoom_100: Key,
pub key_canvas_background: Key,
pub key_canvas_grid: Key,
}
#[derive(Clone, Copy, Debug, Default)]
pub struct ViewerLiveCapabilities {
pub receives_events: bool,
pub publishes_render_dependency: bool,
pub retains_consumer_completion: bool,
}
#[derive(Clone, Debug)]
pub struct TrainingViewerConfig {
pub title: String,
pub history_capacity: u32,
pub max_metric_plots: u32,
pub show_gpu_timing: bool,
pub show_wall_timing: bool,
pub show_preview: bool,
}