Skip to content

PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust

Forms: doc comments for the functions this change touches

Eric Kaden77eb328c834f
diff --git a/crates/ui-egui/src/canvas.rs b/crates/ui-egui/src/canvas.rs
index 8980a5b7e..eaaf01624 100644
--- a/crates/ui-egui/src/canvas.rs
+++ b/crates/ui-egui/src/canvas.rs
@@ -2365,6 +2365,8 @@ fn page_scroll<R>(
ui.scope_builder(egui::UiBuilder::new().id(id), |ui| scroll.show_viewport(ui, draw)).inner
}
+/// Draws the document tab at `index`: its notice bars, then its pages (or the Organize grid) in a
+/// scroll area with this frame's zoom, scrolling, tool input, overlays and render requests.
pub fn document_area(app: &mut PdfCraftApp, index: usize, ui: &mut egui::Ui) {
let t = Tokens::get(ui.ctx());
// Keyboard scrolling applies to this frame's page view only, never later.