Skip to content

Dual GUI Hosts Win32 and Iced

Andrew Paolucci edited this page Dec 2, 2026 · 2 revisions

Dual GUI Hosts: Win32 (guap-gui-win32) & Iced (guap-gui-iced)

Every GUAP suite provides both an ultra-light native Windows Win32 interface and a cross-platform Iced interface powered by reusable components in guap-kit.


1. guap-gui-win32 (Native Virtual SysListView32)

  • Virtualized LVS_OWNERDATA + LVN_GETDISPINFO: Renders 25,000+ rows with instant scrolling over Remote Desktop (RDP), Hyper-V/VMware sessions, and elevated Administrator shells without WebView2, Chromium, or GPU acceleration.
  • Native System Integration: Supports DWM dark-mode titlebars, UxTheme styling, column header sort indicators, live quick-filter bars, and a synchronized JSON / hex-dump detail pane.
  • Headless Testable State (default-features = false): Pure-Rust Win32GridState, Win32TableHostConfig, format_hex_dump, and write_utf16_into_buf compile cleanly without COMCTL32.dll linkage for cross-platform unit testing.

Important

Common Controls v6 Requirement: Crates enabling guap-gui-win32's default native-host feature link COMCTL32.dll v6 (TaskDialog, SetWindowSubclass, DefSubclassProc). Downstream *-win32 crates must embed a Microsoft.Windows.Common-Controls 6.0.0.0 app.manifest via build.rs for both binaries and test executables (preventing 0xc0000139 STATUS_ENTRYPOINT_NOT_FOUND).


2. guap-gui-iced (#![forbid(unsafe_code)], iced 0.14)

  • Cross-Platform Parity: Compiles identically on Windows, Linux, and macOS, using GPU hardware acceleration (wgpu) when available and falling back seamlessly to tiny-skia CPU software rasterization.
  • IcedDataGrid: Paginated, filterable, sortable table grid with row selection, dark/light themes, export dialog wiring (guap-export), and an interactive detail JSON / raw hex inspector pane.

3. Unified 5-Zone Cockpit & Approval / Undo Hooks (guap_table::shell)

Both guap-gui-win32 and guap-gui-iced embed the shared 5-zone cockpit state machine (GuapShellState) backed by the SuiteWorkbenchHost trait (guap-table::shell):

  • SuiteWorkbenchHost::approve_mutating_card(&self, card_id: &str, actor: &str): Optional host hook (returns Option<Result<ApprovalCardViewModel, String>>) invoked when an operator triggers GuapShellAction::ApproveCard in the AI/Approval Drawer.
  • SuiteWorkbenchHost::undo_executed_card(&self, card_id: &str, actor: &str): Optional host hook invoked when an operator triggers GuapShellAction::UndoExecutedCard on an Executed { can_undo: true, .. } Approval Card.
  • Cockpit Guardrails: Both guap-gui-win32 ("win32-operator") and guap-gui-iced ("iced-operator") enforce effective_policy() (ReadOnlyOnly / ForensicCaseLock / TargetEnvironment::UsbForensics block execution with -32003 SAFETY REFUSAL), validate RollbackContract::IrreversibleConfirmToken typed confirmations, and map host execution results directly onto ApprovalCardViewModel state (Pending, Executed, RolledBack, RefusedReadOnlyLock).