Skip to main content

Crate ruviz_gpui

Crate ruviz_gpui 

Source
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

  • RuvizPlot for 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.

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

Re-exports§

pub use gpui;
pub use ruviz;

Structs§

GpuiContextMenuActionContext
GpuiContextMenuConfig
GpuiContextMenuItem
InteractionOptions
Time and interaction settings for the embedded plot.
PerformanceOptions
Performance tuning options for the shared interactive session.
PlotStats
PresentationStats
Presentation cadence measured from GPUI’s paint phase.
RuvizPlot
GPUI view that renders a ruviz plot into a cached RenderImage.
RuvizPlotBuilder
RuvizPlotOptions
Top-level configuration for the GPUI plot component.

Enums§

ActiveBackend
ImageFit
Image-fit policy used by the image-backed presentation mode.
PerformancePreset
PresentationMode
Presentation backend for the GPUI embed.
SizingPolicy
Layout policy for the embedded plot.

Traits§

IntoPlotSession
IntoRuvizSessionDeprecated

Functions§

plot
plot_builder