MCPcopy Create free account
hub / github.com/baldurk/renderdoc / window_callback

Function window_callback

docs/python_api/ui_extension_tutorial/__init__.py:85–95  ·  view source on GitHub ↗
(ctx: qrd.CaptureContext, data)

Source from the content-addressed store, hash-verified

83
84
85def window_callback(ctx: qrd.CaptureContext, data):
86 global cur_window
87
88 if cur_window is None:
89 cur_window = Window(ctx, extiface_version)
90 if ctx.HasEventBrowser():
91 ctx.AddDockWindow(cur_window.topWindow, qrd.DockReference.TopOf, ctx.GetEventBrowser().Widget(), 0.1)
92 else:
93 ctx.AddDockWindow(cur_window.topWindow, qrd.DockReference.MainToolArea, None)
94
95 ctx.RaiseDockWindow(cur_window.topWindow)
96
97
98def menu_callback(ctx: qrd.CaptureContext, data):

Callers

nothing calls this directly

Calls 6

WindowClass · 0.70
HasEventBrowserMethod · 0.45
AddDockWindowMethod · 0.45
WidgetMethod · 0.45
GetEventBrowserMethod · 0.45
RaiseDockWindowMethod · 0.45

Tested by

no test coverage detected