mirror of
https://github.com/emilk/egui.git
synced 2026-06-28 07:23:13 -04:00
Change several methods from pub(crate) to pub (#2051)
* Change several methods from pub(crate) to pub * document next_auto_id Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -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<IdSource>(&self, id_source: IdSource) -> Id
|
||||
pub fn auto_id_with<IdSource>(&self, id_source: IdSource) -> Id
|
||||
where
|
||||
IdSource: Hash + std::fmt::Debug,
|
||||
{
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user