|
ZenitUI
Retained-mode C++20 UI framework
|
Scoped test fixture that binds MockRenderer, MockPlatform, and MockAssetProvider into UIContext and restores clean state on destruction. More...
#include <MockBackend.hpp>
Public Member Functions | |
| void | reset () |
| void | frame (std::shared_ptr< Layout > root, float dt=1.0f/60.0f) |
| void | click (std::shared_ptr< Layout > root, Vec2 pos) |
Public Attributes | |
| MockRenderer | renderer |
| MockPlatform | platform |
| MockAssetProvider | assets |
| UIContext | ctx |
Scoped test fixture that binds MockRenderer, MockPlatform, and MockAssetProvider into UIContext and restores clean state on destruction.