Expand description
GPUI component adapter for ruviz.
ruviz-gpui embeds a shared ruviz interactive plot session inside a GPUI
application. It is intended for native desktop apps that want the plot
interaction model from ruviz while keeping presentation and layout inside a
GPUI view tree.
§What This Crate Provides
RuvizPlotfor embedding static or interactive plots in GPUI views- configurable presentation modes for image-backed and hybrid rendering
- built-in pan, zoom, hover, selection, and context-menu behavior
- clipboard and PNG save helpers routed through the host platform
§Platform Support
ruviz-gpui currently supports macOS, Linux, and Windows. Unsupported
targets fail at compile time.
§Recommended Usage
Add both crates to your application:
[dependencies]
ruviz = "0.4.19"
ruviz-gpui = "0.4.19"Then build a normal ruviz::Plot or PreparedPlot and hand it to the GPUI
component. See the repository examples under
crates/ruviz-gpui/examples/ for end-to-end setups.
§Documentation
- Repository README: https://github.com/Ameyanagi/ruviz/blob/main/README.md
- Adapter README: https://github.com/Ameyanagi/ruviz/tree/main/crates/ruviz-gpui
Re-exports§
Structs§
- Gpui
Context Menu Action Context - Gpui
Context Menu Config - Gpui
Context Menu Item - Interaction
Options - Time and interaction settings for the embedded plot.
- Performance
Options - Performance tuning options for the shared interactive session.
- Plot
Stats - Presentation
Stats - Presentation cadence measured from GPUI’s paint phase.
- Ruviz
Plot - GPUI view that renders a
ruvizplot into a cachedRenderImage. - Ruviz
Plot Builder - Ruviz
Plot Options - Top-level configuration for the GPUI plot component.
Enums§
- Active
Backend - Image
Fit - Image-fit policy used by the image-backed presentation mode.
- Performance
Preset - Presentation
Mode - Presentation backend for the GPUI embed.
- Sizing
Policy - Layout policy for the embedded plot.
Traits§
- Into
Plot Session - Into
Ruviz Session Deprecated