MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ inspect_events()

MAYAFLUX_API void MayaFlux::Portal::Forma::inspect_events ( )

Open or show the EventManager inspection window.

First call creates a dedicated window, builds the InspectResult, and schedules tap_all() via Bridge. Subsequent calls show() the existing window.

Definition at line 210 of file Forma.cpp.

211{
212 if (g_inspect_events_window) {
213 g_inspect_events_window->show();
214 return;
215 }
216
217 auto& atelier = internal::atelier();
218
219 g_inspect_events_window = atelier.create_window(
220 Core::WindowCreateInfo { .title = "EventManager", .width = k_inspect_w, .height = k_inspect_h });
221
222 auto surface = atelier.create_surface(g_inspect_events_window, "EventManager");
223 LayoutCursor cursor;
224 auto& result = atelier.inspector().event_manager(surface, cursor);
225 atelier.bridge().spawn_sync(result.group.header.header_id, [&result] { result.tap_all(); });
226}
void spawn_sync(uint32_t id, std::function< void()> sync_fn)
Spawn a per-frame GraphicsRoutine that calls sync_fn each tick.
Definition Bridge.cpp:368
InspectResult & event_manager(Surface &surface, LayoutCursor &cursor, float x_min=-0.95F, float x_max=0.95F, float row_h=0.05F)
Inspect the full EventManager state.
std::shared_ptr< Core::Window > create_window(const Core::WindowCreateInfo &info)
Create a window through the stored WindowManager and show it.
Definition Atelier.cpp:101
Inspector & inspector()
Inspector instance constructed during initialize.
Definition Atelier.cpp:87
Surface create_surface(std::shared_ptr< Core::Window > window, std::string name)
create_layer plus ownership of the window, as a Surface.
Definition Atelier.cpp:146
Bridge & bridge()
Bridge instance constructed during initialize.
Definition Atelier.cpp:77
std::string title
Window title/identifier.
Configuration for creating a single window instance.

References MayaFlux::Portal::Forma::internal::atelier(), MayaFlux::Portal::Forma::internal::Atelier::bridge(), MayaFlux::Portal::Forma::internal::Atelier::create_surface(), MayaFlux::Portal::Forma::internal::Atelier::create_window(), MayaFlux::Portal::Forma::Inspector::event_manager(), MayaFlux::Portal::Forma::internal::Atelier::inspector(), MayaFlux::Portal::Forma::Bridge::spawn_sync(), and MayaFlux::Core::WindowCreateInfo::title.

+ Here is the call graph for this function: