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:
parent
12dc61ed0f
commit
4aae638e15
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue