MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / prepare

Method prepare

src/plot_widget.rs:1781–1796  ·  view source on GitHub ↗
(
        &self,
        renderer_state: &mut Self::Pipeline,
        device: &iced::wgpu::Device,
        queue: &iced::wgpu::Queue,
        bounds: &Rectangle,
        viewport: &Viewport,
    )

Source from the content-addressed store, hash-verified

1779 Interaction::Pointer
1780 } else {
1781 Interaction::None
1782 }
1783}
1784
1785impl shader::Program<PlotUiMessage> for PlotWidget {
1786 type State = PlotState;
1787 type Primitive = Primitive;
1788
1789 fn draw(
1790 &self,
1791 state: &Self::State,
1792 _cursor: mouse::Cursor,
1793 _bounds: Rectangle,
1794 ) -> Self::Primitive {
1795 let mut plot_widget = state.clone();
1796 plot_widget.grid_style = self.cached_style().grid;
1797
1798 Primitive {
1799 instance_id: self.instance_id,

Callers

nothing calls this directly

Calls 3

prepare_frameMethod · 0.80
service_pickingMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected