ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::Test::Env Struct Reference

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

Detailed Description

Scoped test fixture that binds MockRenderer, MockPlatform, and MockAssetProvider into UIContext and restores clean state on destruction.


The documentation for this struct was generated from the following file: