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

Method is_fill_endpoint_available

src/plot_widget.rs:1166–1170  ·  view source on GitHub ↗
(&self, id: ShapeId)

Source from the content-addressed store, hash-verified

1164 let centering_offset = 2.0 * (label_text.len() as f32); // A bit of a fudge.
1165 let text_widget = tick_text(label_text);
1166 let positioned_label = container(text_widget)
1167 .width(Length::Fill)
1168 .height(Length::Fill)
1169 .padding(padding::left(tick.screen_pos - centering_offset))
1170 .align_x(Horizontal::Left)
1171 .align_y(Vertical::Bottom)
1172 .style(container::transparent);
1173 tick_elements.push(positioned_label.into());

Callers 1

add_fillMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected