|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
Renders the editor's tree view and inspector panes. More...
#include "donner/editor/SidebarPresenter.h"
Public Member Functions | |
| void | refreshSnapshot (const EditorApp &app) |
| Refresh the tree / inspector snapshot from live app state. Safe to call only when the async renderer is idle. | |
| void | renderTreeView (EditorApp *liveApp, TreeViewState &state) const |
Render the tree pane from the current snapshot. When liveApp is non-null, click-induced selection mutations are applied to it; when null, clicks are dropped (the render is "read-only" because the worker thread owns the document). | |
| void | renderInspector (const ViewportState &viewport) const |
| Render the inspector pane from the current snapshot. | |
Renders the editor's tree view and inspector panes.
The panes are always rendered from an internal snapshot so they stay visible even while the async renderer is mutating the document (the "(rendering…)" placeholder used to cover this gap, which made the panes flash to a disabled message on every render). The snapshot is refreshed from the live EditorApp when the caller indicates the worker thread isn't touching the document; otherwise the most recent capture is replayed unchanged. Click handling is gated the same way so mutations can't race the worker.