1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 21:00:03 -04:00

LayerId compat

This commit is contained in:
charburgx
2022-12-19 04:44:24 -06:00
parent 45336eaf62
commit 57f65b7be6

View File

@@ -74,6 +74,10 @@ pub struct AreaLayerId {
pub id: Id,
}
/// For backwards-compatibility with `AreaLayerId`
#[deprecated(note = "Use `AreaLayerId` instead")]
pub type LayerId = AreaLayerId;
impl AreaLayerId {
pub fn new(order: Order, id: Id) -> Self {
Self { order, id }