ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
Modal.hpp File Reference

A full-screen overlay with an animated content panel. More...

#include "Common.hpp"
#include "Layout.hpp"

Go to the source code of this file.

Classes

class  ZenitUI::UI::Modal
 A backdrop + content overlay. More...

Detailed Description

A full-screen overlay with an animated content panel.

Modal is a Stack that covers the screen (once sized to 100% by the caller), paints a semi-transparent black backdrop, and hosts a single content panel in its content slot. Show / hide animate both the backdrop opacity (via inline style transition) and a slide-in of the content (via an imperative UIAnimation named "Intro").