mirror of
https://github.com/herdrdev/herdr.git
synced 2026-09-22 00:01:06 +00:00
26 lines
803 B
Rust
26 lines
803 B
Rust
use crate::kitty_graphics::surface::DeliveryCache;
|
|
use crate::protocol::{ClientShellPopupSurface, SurfaceGraphicsScene};
|
|
|
|
pub(crate) fn collect(
|
|
app: &crate::app::App,
|
|
pane_infos: &[crate::layout::PaneInfo],
|
|
split_borders: &[crate::layout::SplitBorder],
|
|
popup: Option<&ClientShellPopupSurface>,
|
|
cell_size: crate::kitty_graphics::HostCellSize,
|
|
delivered: &DeliveryCache,
|
|
client_id: u64,
|
|
) -> (SurfaceGraphicsScene, DeliveryCache) {
|
|
let popup_content_size = popup.map(|popup| (popup.frame.width, popup.frame.height));
|
|
crate::kitty_graphics::surface::collect_scene(
|
|
app,
|
|
crate::ui::TabSurfaceView {
|
|
pane_infos,
|
|
split_borders,
|
|
},
|
|
popup_content_size,
|
|
cell_size,
|
|
delivered,
|
|
client_id,
|
|
)
|
|
}
|