|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
Wraps the editor's raw GLFW scroll callback + native pinch monitor plumbing so the advanced editor shell can consume queued gesture events without owning callback lifecycle directly. More...
#include "donner/editor/EditorInputBridge.h"
Public Member Functions | |
| EditorInputBridge (gui::EditorWindow &window, double wheelZoomStep) | |
| EditorInputBridge (const EditorInputBridge &)=delete | |
| EditorInputBridge & | operator= (const EditorInputBridge &)=delete |
| std::vector< RenderPaneScrollEvent > & | events () |
| Returns the queued render-pane scroll events captured since the previous frame. | |
| const std::vector< RenderPaneScrollEvent > & | events () const |
| void | clear () |
| Clears the queued render-pane scroll events. | |
| void | setCanvasScrollCaptureRect (std::optional< Box2d > rect) |
| Publish the screen-pixel rect inside which the canvas owns raw scroll events (they are queued for the render pane and NOT forwarded to the ImGui backend, so scrolling the canvas never also scrolls the surrounding UI). Pass std::nullopt to disable capture, e.g. while a popup/modal is capturing input. The shell updates this every frame. | |
Wraps the editor's raw GLFW scroll callback + native pinch monitor plumbing so the advanced editor shell can consume queued gesture events without owning callback lifecycle directly.