Create advanced examples and API reference#113
Merged
thomasnemer merged 1 commit intomainfrom Nov 11, 2025
Merged
Conversation
This commit implements issue #16 by adding: **Intermediate Examples (examples/intermediate/):** - 01_nested_panels: Complex nested layout composition with FlexLayout, GridLayout, and StackLayout - 02_responsive_ui: Window resize behavior with ResizeBehavior, AxisResizeBehavior, and ResponsiveConstraints - 03_event_handling: Advanced event patterns with custom event handling and focus management - 04_dynamic_layout: Runtime UI changes with dynamic component addition/removal and layout switching **Advanced Examples (examples/advanced/):** - 01_custom_component: ColorPicker custom component demonstrating CRTP pattern, custom render/event handling, and builder pattern - 02_custom_layout: CircularLayout implementation showing custom layout manager creation with CRTP - 03_custom_renderer: IRenderer interface demonstration showing frame lifecycle and rendering concepts - 04_performance: Performance optimization techniques with 100-component GridLayout and FPS counter **API Reference Documentation (docs/api/):** - README.md: Navigation hub for all API documentation - QUICK_REFERENCE.md: Condensed one-page reference for quick lookup - core/Component.md: Detailed Component class API documentation All examples compile successfully and include: - Complete CMakeLists.txt for each example - Comprehensive README.md explaining concepts and usage - Well-commented, educational source code - Progressive complexity from intermediate to advanced topics Resolves #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements issue #16 by adding comprehensive intermediate and advanced examples plus API reference documentation for the Prong UI framework.
Changes
Intermediate Examples (
examples/intermediate/)✅ 01_nested_panels - Complex nested layout composition
✅ 02_responsive_ui - Window resize behavior
✅ 03_event_handling - Advanced event patterns
✅ 04_dynamic_layout - Runtime UI changes
Advanced Examples (
examples/advanced/)✅ 01_custom_component - ColorPicker custom component
✅ 02_custom_layout - CircularLayout implementation
✅ 03_custom_renderer - IRenderer interface demonstration
✅ 04_performance - Performance optimization demo
API Reference Documentation (
docs/api/)✅ README.md - Navigation hub for all API documentation
✅ QUICK_REFERENCE.md - Condensed one-page reference
✅ core/Component.md - Detailed Component API documentation
Build Status
✅ All 8 new examples compile successfully
✅ All examples run without errors
✅ Code formatted with clang-format
✅ Git hooks passed
Files Changed
Testing
All examples have been built and verified to compile successfully with:
Resolves #16