ZLay is a native C/C++ library that helps developers create user interfaces. It takes care of the math and logic behind positioning on-screen elements (like arranging buttons, panels, and text), applying visual styles (colors, shadows, rounded corners), and generating graphics commands. The library supports multiple rendering systems and can run on Windows, macOS, and Linux. It's designed for game engines, tool editors, and any application that needs custom UI without depending on web technologies.
How It Works
While researching how to build custom user interfaces for your application, you find ZLay: a library that handles positioning and styling of on-screen elements.
You include ZLay's core files in your application. The library gives you simple building blocks like boxes, rows, and text elements you can arrange on screen.
You write code that declares how your UI should look: spacing between elements, colors, rounded corners, shadows, and how things should stack or align.
ZLay figures out exactly where each element should go based on your design, handling flexible layouts and responsive sizing automatically.
The library produces drawing commands that your chosen graphics system (like OpenGL or Vulkan) uses to render everything to the screen.
Your UI runs in its own window on your desktop
Your UI becomes part of a larger program, like a game or editor
Everything works together: users see beautifully laid out, styled interfaces that respond smoothly to interaction.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.