AI SummaryIf anything is unclear or you want this tailored to specific agent roles (refactoring, feature, doc-only), tell me which role and I'll iterate.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "wxUI — Copilot Instructions" prompt rules to my project. Repository: https://github.com/rmpowell77/wxUI Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
C++ header-only library to make declarative UIs for wxWidgets.
Build, tests and examples (concrete commands and flags)
• CMake minimum: 3.23 (declared in CMakeLists.txt). Project requires C++20. In-source builds are explicitly rejected by CMake. • Build (out-of-source). To enable tests/examples set CMake options: • WXUI_WITH_TESTS=ON to build unit tests • WXUI_WITH_EXAMPLE=ON to build examples • The project uses FetchContent for dependencies (see cmake/dependencies.cmake): enabling tests/examples will fetch and build wxWidgets and Catch2. • Debug builds set AddressSanitizer when ENABLE_ASAN=ON (default) via cmake/compiler.cmake. • Test executable: wxUI_Tests (built when WXUI_WITH_TESTS=ON). Tests are wired to CTest via add_test(NAME UnitTest COMMAND wxUI_Tests) in the tests CMake file.
Useful examples to reference in code suggestions
• examples/HelloWidgets/HelloWidgets.cpp — full usage of Menu, VSizer/HSizer, Controllers, Proxy and bind examples. • docs/ProgrammersGuide.md — detailed patterns (Menu, Layout, ForEach, Proxy, Bind) to mirror in code changes or tests. • tests/ — unit tests show intended usage and edge cases. Adding tests should follow the Catch2 style used in tests/CMakeLists.txt.
Quick orientation (what this repo is)
• wxUI is a C++ header-only library that provides a declarative layer over wxWidgets. The public API is in include/wxUI/*.hpp and the INTERFACE target is declared in CMakeLists.txt. • Key docs: docs/ProgrammersGuide.md (patterns & examples) and examples/HelloWidgets/HelloWidgets.cpp (runnable example).
Big-picture architecture
• Header-only INTERFACE library: CMake target wxUI (INTERFACE) wraps headers in include/. • Runtime behavior: wxUI builds a tree of "Layouts" (VSizer/HSizer/FlexGrid) composed of Controllers (Button, TextCtrl, Choice, etc.) which then instantiate wxWidgets objects when .fitTo(...) is called (see docs/ProgrammersGuide.md). • Important flows: Layout -> Controller -> concrete wxWindow/wxSizer creation at fit time; Proxy objects attach to named Controllers to access underlying controls after creation.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts