Expand description
TitleBar โ a custom window title bar (for borderless / custom-chrome apps).
Renders a draggable bar with the app title on the left, a closure for your
own right-aligned content, and optional minimize / maximize / close buttons
wired to the platform via egui::ViewportCommand. Double-clicking the bar
toggles maximize; dragging it moves the window.
โ
sc::TitleBar::new("My App").show(ui, |ui| {
ui.add(sc::Button::ghost("Help"));
});