Commit Graph
5 Commits
Author SHA1 Message Date
Martino Ferrari 1ee2dd9c3d feat(qt6): QOpenGLWidget-based plot widget and demo 2026-09-28 01:17:45 +02:00
Martino Ferrari b5b9b42be1 fix(imgui): keep the plot inside the child's clip rect and reject unusable input
The widget drew a region derived from the child's content rect alone, so a child
the hosting window cut off cleared and painted over the host's pixels; it also
scaled ImGui's (-FLT_MAX, -FLT_MAX) no-pointer sentinel and differenced it against
the last real position, turning a drag out of the window into a ~1e35 pan, and it
forgot the host's button levels across a re-bind, handing the next plot a press
that never happened.

The region is now the content rect intersected with the child's clip rect (a
no-op when nothing clips it), an invalid position is no position update, and the
button levels survive a re-bind. The controller sanitises non-finite coordinates
and deltas for any host, and the widget's input translation now has a committed
test on the headless EGL context.
2026-09-28 00:54:25 +02:00
Martino Ferrari 15931a2405 feat(imgui): embeddable plot widget and demo 2026-09-28 00:38:31 +02:00
Martino Ferrari c8a97e4a1b fix(glfw): report a zero framebuffer size so the no-drawable guard is reachable 2026-09-28 00:07:51 +02:00
Martino Ferrari 4b649a2783 feat(glfw): adapter and 1 MS/s streaming demo 2026-09-27 23:44:30 +02:00