How z-ze489/zekit works
Zekit is a self-contained C++ GUI toolkit. The principal workflow is that an application creates a window and value-semantic widgets, shows the window, and runs its event loop; platform code translates native input while the shared widget layer lays out and paints through a per-window rendering backend. The graph also includes documented layout, theme, text, shape, and image-preview capabilities. Most implementation files were not sampled, so documented relationships use README evidence and uncertain implementation links are omitted.
Main entry points: ZeWidget.h Widget tree · Zekit.h Window and loop · ZeRenderBackend.h Backend interface · ZeFrameCollector.h Frame collector
Components 20
Application and windows
- Window and loop
Zekit/include/Zekit.h
Widget and presentation
- Widget tree
Zekit/include/ZeWidget.h - Layouts
Zekit/ZeLayoutBase.cpp - Theme and styles
Zekit/include/ZeTheme.h - UI controls
Zekit/ZeButton.cpp - Image preview
Zekit/ZeImagePreview.cpp
Display and text
- Shapes
Zekit/Shape.h - Frame collector
Zekit/ZeFrameCollector.h - Font rendering
Zekit/ZeFontRenderer.cpp - Drawing utilities
Zekit/ZeDrawUtil.h - Image resources
Zekit/ZeImageStore.cpp
Platform and rendering
- Native windows
Zekit/ZeWindowWin32.cpp - Input and IME
Zekit/include/ZeInputEvents.h - Backend interface
Zekit/include/ZeRenderBackend.h - OpenGL backends
Zekit/ZeGLContext.cpp - Vulkan backend
Zekit/ZeVulkanContext.cpp - D3D12 backend
Zekit/ZeD3D12Context.cpp - Android backend
Zekit/ZeRenderBackendAndroid.cpp - Harmony backend
Zekit/ZeRenderBackendHarmony.cpp
Other components
- Application
Connections 22
- Application → Window and loop: creates and configures
README.md - Application → Widget tree: adds widgets
README.md - Application → Window and loop: shows and runs
README.md - Window and loop → Native windows: uses native window
README.md - Native windows → Input and IME: translates input
README.md - Input and IME → Widget tree: dispatches events
README.md - Window and loop → Widget tree: hosts tree
README.md - Widget tree → Layouts: supports layout
README.md - Window and loop → Theme and styles: provides defaults
Zekit/include/ZeTheme.h - Widget tree → UI controls: specializes as
- Widget tree → Image preview: hosts overlay
- Image preview → Frame collector: adds image and text
Zekit/ZeImagePreview.cpp - Widget tree → Frame collector: collects display data
- Shapes → Drawing utilities: paints primitives
- Drawing utilities → Frame collector: records drawing
Zekit/ZeDrawUtil.h - Frame collector → Font rendering: measures text
Zekit/ZeFrameCollector.h - Window and loop → Backend interface: selects renderer
README.md - Backend interface → OpenGL backends: implemented by
README.md - Backend interface → Vulkan backend: implemented by
README.md - Backend interface → D3D12 backend: implemented by
README.md - Backend interface → Android backend: platform variant
- Image resources → Frame collector: supplies images