Feat: add hidden mode and new documentation

This commit is contained in:
2026-02-26 12:31:56 +01:00
parent e1cf57918e
commit 70032acc75
95 changed files with 1055 additions and 286 deletions

View File

@@ -14,6 +14,7 @@ pub struct ResizableWindow {
}
impl ResizableWindow {
/// Create a resizable window with the given ID source.
pub fn new(id_source: impl std::hash::Hash) -> Self {
Self {
id: Id::new(id_source),
@@ -28,6 +29,7 @@ impl ResizableWindow {
self
}
/// Draw contents inside the resizable window, adding a drag corner.
pub fn show<R>(
self,
context: &Context,
@@ -65,6 +67,7 @@ impl ResizableWindow {
}
}
/// Draw diagonal lines in the corner as a resize affordance.
pub fn paint_resize_corner(ui: &Ui, response: &Response) {
let stroke = ui.style().interact(response).fg_stroke;

View File

@@ -1,3 +1,5 @@
//! Horizontal parameter slider widget with drag, granular drag, and text entry.
use std::sync::{Arc, LazyLock};
use egui_baseview::egui::emath::GuiRounding;