Feat: add hidden mode and new documentation
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user