diff --git a/crates/egui/src/ui.rs b/crates/egui/src/ui.rs index 4588c65d..8d78b0d6 100644 --- a/crates/egui/src/ui.rs +++ b/crates/egui/src/ui.rs @@ -586,11 +586,12 @@ impl Ui { self.id.with(&id_source) } - pub(crate) fn next_auto_id(&self) -> Id { + /// This is the `Id` that will be assigned to the next widget added to this `Ui`. + pub fn next_auto_id(&self) -> Id { Id::new(self.next_auto_id_source) } - pub(crate) fn auto_id_with(&self, id_source: IdSource) -> Id + pub fn auto_id_with(&self, id_source: IdSource) -> Id where IdSource: Hash + std::fmt::Debug, { diff --git a/crates/egui/src/widgets/button.rs b/crates/egui/src/widgets/button.rs index 1964f7f7..0ed1fd5e 100644 --- a/crates/egui/src/widgets/button.rs +++ b/crates/egui/src/widgets/button.rs @@ -116,7 +116,7 @@ impl Button { self } - pub(crate) fn min_size(mut self, min_size: Vec2) -> Self { + pub fn min_size(mut self, min_size: Vec2) -> Self { self.min_size = min_size; self }