Skip to content

Commit

Permalink
Note that tags are transient
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jun 5, 2024
1 parent 820645c commit e7f335e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/egui/src/ui_stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ impl UiStackInfo {
/// for the existence of this tag up the [`UiStack`].
///
/// Note that egui never sets any tags itself, so this is purely for user code.
///
/// All tagging is transient, and will only live as long as the parent [`crate::Ui`], i.e. within a single render frame.
#[derive(Clone, Default, Debug)]
pub struct UiTags(pub ahash::HashMap<String, Option<Arc<dyn Any + Send + Sync + 'static>>>);

Expand Down

0 comments on commit e7f335e

Please sign in to comment.