How philosoph228/reimu works
gfx is a Windows-oriented virtual GUI lab: it combines an in-process desktop/widget system with a deterministic headless window machine and a Win32 compatibility projection. The main interactive workflow sends pointer and key input through the sandbox viewer into virtual windows and Natsu’s docking interaction/controller logic; synchronized layout becomes a painted snapshot. A separate desktop path hosts shell applications, while the projection routes ordinary Win32 calls into virtual windows. The README documents these capabilities; several implementation links below are necessarily omitted because their source was not sampled.
Main entry points: NatsuDockSandbox.cpp Dock sandbox · GfxStart.hpp Start menu · GfxShell.hpp Virtual desktop · NatsuDockSandboxViewer.cpp Sandbox viewer
Components 20
Virtual machine
- GfxVM
gfx/src/gfx/GfxVM.hpp - Virtual User32
gfx/src/gfx/win32emu/VirtualUser32.cpp
Docking
- Sandbox viewer
gfx/src/gfx/dock/NatsuDockSandboxViewer.cpp - Dock sandbox
gfx/src/gfx/dock/NatsuDockSandbox.cpp - Dock scenarios
gfx/src/gfx/dock/NatsuDockScenario.cpp - Natsu dock core
Desktop apps
- Virtual desktop
gfx/src/gfx/shell/GfxShell.hpp - Start menu
gfx/src/gfx/shell/GfxStart.hpp - Taskbar
gfx/src/gfx/shell/GfxTaskbar.hpp - Dock app
gfx/src/gfx/shell/apps/natsu_dock/NatsuDockApp.hpp - Notepad
gfx/src/gfx/shell/accessories/notepad/NotepadApp.hpp - Panit.ent
gfx/src/panitent/PanitentApp.hpp
Widget system
- Widget environment
gfx/src/gfx/ui/EnvBase.hpp - Widget toolkit
gfx/src/gfx/ui/Widget.hpp - Canvas host
gfx/src/gfx/ui/CanvasHost.hpp - Graphics context
gfx/src/gfx/GraphicsContext.hpp
Win32 projection
- Win32 redirect
gfx/src/gfx/win32emu/Win32Redirect.hpp - Win32 demo
gfx/src/gfx/shell/apps/win32_demo/Win32DemoApp.hpp
Other components
- User
- Native Win32
Connections 23
- User → Sandbox viewer: interacts with
- Sandbox viewer → Dock sandbox: routes input
- Dock sandbox → Natsu dock core: executes commands
- Dock sandbox → Natsu dock core: reads layout
- Dock sandbox → GfxVM: creates windows
- Sandbox viewer → Dock sandbox: paints snapshot
- Dock scenarios → Dock sandbox: drives scenarios
- Virtual desktop → GfxVM: hosts virtual UI
- Virtual desktop → Start menu: shows
- Virtual desktop → Taskbar: shows
- Start menu → Dock app: launches
- Start menu → Notepad: launches
- Start menu → Panit.ent: launches
- Start menu → Win32 demo: launches
- Dock app → Dock sandbox: uses
- Win32 demo → Win32 redirect: calls projected APIs
- Win32 redirect → Virtual User32: redirects calls
- Virtual User32 → GfxVM: manages windows
- Native Win32 → Win32 demo: runs natively
- Widget environment → Widget toolkit: manages widgets
- Widget environment → Canvas host: draws through
- Canvas host → Graphics context: renders with
- User → Virtual desktop: uses