Contract stubs: p4b-app

Written by a Codex stage agent; committed by bin/codex-stubs (the sandbox keeps .git read-only).
This commit is contained in:
Dylan M. Taylor committed 2026-11-26 18:55:22 +00:00
1 parent 6b4b3ed87f
commit 9f4e5ecdaa
4 files changed
+22 -1

No files matched your search

+4
View File
@@ -108,6 +108,10 @@ impl SlideApp {
// P3(shell-w11): sh.A8
palette_recents: Default::default(),
// P3(shell-w11): sh.A8
palette_state: Default::default(),
// P3(shell-w11): cv.A14
guide_selection: Default::default(),
// P3(shell-w11): sh.A8
catalog: catalog,
// P3(shell-w11): sh.A8
catalog_generation: Default::default(),
+1 -1
View File
@@ -16,7 +16,7 @@ use crate::SlideApp;
use crate::theme::{self, Tokens};
pub(crate) mod context_menu;
mod guides;
pub(crate) mod guides; // P3(canvas-w6): cv.A14
mod ime;
mod input;
mod media;
+11
View File
@@ -1,5 +1,16 @@
use super::{Color32, CornerRadius, Point, Rect, SlideApp, Stroke, Tokens, Xf, pos2, theme};
/// Selected guide indices for the active document, cleared on a document switch or unexpected guide-list change.
/// This selection is transient and never saved.
#[derive(Clone, Debug, Default, PartialEq)]
#[allow(dead_code)] // P3(canvas-w10): cv.A14
pub(crate) struct GuideSelection {
/// The active document whose guides are selected.
pub(crate) uid: Option<u64>,
/// Indices passed to the guide control and updated from its selection output.
pub(crate) guides: Vec<usize>,
}
/// The presentation's drawing guides; the one being dragged at its new place, labelled with its
/// distance from the slide's centre in points.
pub(super) fn draw_guides(app: &SlideApp, painter: &egui::Painter, xf: Xf, slide: Rect, t: &Tokens) {
+6
View File
@@ -238,6 +238,12 @@ pub struct SlideApp {
/// Palette recents.
#[allow(dead_code)] // P3(shell-w11): sh.A8
palette_recents: Vec<craft::ui::runtime::commands::CommandRef>,
/// The bound command palette's query and selected navigable row.
#[allow(dead_code)] // P3(shell-w11): sh.A8
palette_state: craft::ui::patterns::panels::PaletteState,
/// Selected guides of the active document, kept transiently and never saved.
#[allow(dead_code)] // P3(shell-w11): cv.A14
pub(crate) guide_selection: canvas::guides::GuideSelection,
/// Catalog.
#[allow(dead_code)] // P3(shell-w11): sh.A8
catalog: craft::ui::runtime::commands::AppCatalog,