(label: S)
| 16 | |
| 17 | impl Button { |
| 18 | pub fn new<S: Into<String>>(label: S) -> Self { |
| 19 | Self { |
| 20 | label: label.into(), |
| 21 | style: Style::default() |
| 22 | .set_background(Color::rgb(0.2, 0.2, 0.2)) |
| 23 | .set_padding(10.0), |
| 24 | bounds: Rect::default(), |
| 25 | on_click: None, |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | pub fn with_style(mut self, style: Style) -> Self { |
| 30 | self.style = style; |
nothing calls this directly
no test coverage detected