cargo-port 0.1.4

A TUI for inspecting and managing Rust projects
//! Finder overlay render state.
//!
//! Finder is app-owned, so its viewport remains in `Overlays`.
//! Settings and Keymap are framework-owned and carry their viewport
//! state on `tui_pane::SettingsPane` / `tui_pane::KeymapPane`.
//!
//! Render is a no-op (the popup body lives in `finder.rs`); this
//! struct exists so the Finder viewport has a typed home that impls
//! `Pane` and `Hittable`. The impls live in `pane.rs`.

use tui_pane::RenderFocus;
use tui_pane::Viewport;

pub(crate) struct FinderPane {
    pub viewport: Viewport,
    pub focus:    RenderFocus,
}

impl FinderPane {}

impl Default for FinderPane {
    fn default() -> Self {
        Self {
            viewport: Viewport::new(),
            focus:    RenderFocus::inactive(),
        }
    }
}