Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
Loading...
Searching...
No Matches
donner::editor::EditorInputBridge Class Reference

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.
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.

Detailed Description

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.


The documentation for this class was generated from the following file: