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

Method bottom_shapes

examples/plot_overlays.rs:70–84  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

68 }
69
70 fn bottom_shapes(&self) -> impl Iterator<Item = PlotOverlay<'_, Message>> {
71 let region = container(text("axes-space region\n (on bottom)").size(13.0))
72 .width(Length::Fixed(190.0))
73 .height(Length::Fixed(76.0))
74 .align_x(alignment::Horizontal::Center)
75 .align_y(alignment::Vertical::Center)
76 .style(region_style);
77
78 std::iter::once(
79 PlotOverlay::new(region, [0.5, 0.5])
80 .with_axes_transform()
81 .align_to_anchor(alignment::Horizontal::Center, alignment::Vertical::Center)
82 .map(Message::Shape),
83 )
84 }
85
86 fn top_shapes(&self) -> impl Iterator<Item = PlotOverlay<'_, Message>> {
87 let label = if self.annotation_expanded {

Callers 1

viewMethod · 0.80

Calls 5

sizeMethod · 0.80
mapMethod · 0.80
align_to_anchorMethod · 0.80
newFunction · 0.70
with_axes_transformMethod · 0.45

Tested by

no test coverage detected