Struct egui::widgets::Separator [−][src]
#[must_use = "You should put this widget in an ui with `ui.add(widget);`"]pub struct Separator { /* fields omitted */ }
A visual separator. A horizontal or vertical line (depending on Layout
).
Usually you’d use the shorter version Ui::separator
.
// These are equivalent: ui.separator(); ui.add(egui::Separator::default());
Implementations
impl Separator
[src]
impl Separator
[src]pub fn new() -> Self
[src]
👎 Deprecated:
Use Separator::default() instead
pub fn spacing(self, spacing: f32) -> Self
[src]
pub fn spacing(self, spacing: f32) -> Self
[src]How much space we take up. The line is painted in the middle of this.
pub fn horizontal(self) -> Self
[src]
pub fn horizontal(self) -> Self
[src]Explicitly ask for a horizontal line. By default you will get a horizontal line in vertical layouts, and a vertical line in horizontal layouts.