TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 230 subscribers
Post #25323 14
ViewDesign: A C++ GUI framework

(a personal project of mine)

ViewDesign: A C++ GUI framework

ViewDesign is a general-purpose, object-oriented, highly modular, minimal and flexible cross-platform C++ GUI framework with multi-backend support. It ships with an easily extensible component library for explicit and intuitive UI building, featuring compile-time layout compatibility check via C++ concepts, which is particularly helpful for designing complex UI components with minimal runtime overhead.

# Highlight

(https://github.com/hchenqi/ViewDesign#highlight)

(core library of ViewDesign)

a single static library in native C++, built with CMake (using standard C++23)
cross-platform, with multi-backend support
easy to setup and integrate, no boilerplate, no special tooling
minimal, clear and efficient logic for component management, layout calculation and rendering
intrinsically DPI-aware
fit for both 'immediate-mode' and 'retained-mode' GUI programming, supporting hot reload with ease (see example HotReload)

(standard component library of ViewDesign, bundled together with the core library)

object-oriented, modular and extensible
conceptual separation of components as control, frame and layout
explicit declaration of component layout with size traits
compile-time check of layout compatibility between components

Examples, build instructions and explanation of concepts/algorithms can be found in the repository. Suggestions or feedbacks are very welcome!

https://redd.it/1ts3vgs
@r_cpp
GitHub GitHub - hchenqi/ViewDesign: A C++ GUI framework A C++ GUI framework. Contribute to hchenqi/ViewDesign development by creating an account on GitHub.
More from @r_cpp
  1. Sep 29, 2026Boost.Graph 1.95 will be C++17 Dear Boost.Graph community, In two release cycles (Boost re…
  2. Sep 26, 2026Token Sequence Injection & Modern Macros: The Most Game-Changing Compile-Time Feature in C…
  3. Sep 25, 2026myStringStream.str("") Considered Harmful Under C++20 I was recently looking at some (rath…
  4. Sep 20, 2026A clever branch free optimization I'm the developer of memlz which is an extremely fast co…
  5. Sep 15, 2026Inside Boost.PolyCollection https://bannalia.blogspot.com/2026/09/inside-boostpolycollecti…
  6. Sep 11, 2026C++26: Standard Library Hardening Experiments https://www.cppstories.com/2026/hardening-ex…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →