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

◆ inspect_buffers()

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

Open or show the BufferManager 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 315 of file Forma.cpp.

316{
317 if (g_inspect_buffers_window) {
318 g_inspect_buffers_window->show();
319 return;
320 }
321 g_inspect_buffers_window = g_window_manager->create_window(
322 Core::WindowCreateInfo { .title = "BufferManager", .width = k_inspect_w, .height = k_inspect_h });
323 g_inspect_buffers_window->show();
324 auto surface = create_surface(g_inspect_buffers_window, "BufferManager");
325 LayoutCursor cursor;
326 auto& result = g_inspect->buffer_manager(surface, cursor);
327 g_bridge->spawn_sync(result.group.header.header_id, [&result] { result.tap_all(); });
328}
std::string title
Window title/identifier.
Configuration for creating a single window instance.

References create_surface(), and MayaFlux::Core::WindowCreateInfo::title.

+ Here is the call graph for this function: