#[must_use]
pub struct Skeleton {
pub(crate) width: f32,
pub(crate) height: f32,
pub(crate) circle: bool,
}
impl Skeleton {
pub fn new(width: f32, height: f32) -> Self {
Self {
width,
height,
circle: false,
}
}
pub fn circle(mut self) -> Self {
self.circle = true;
self
}
pub fn show(self, ui: &mut egui::Ui) -> egui::Response {
ui.add(self)
}
}