egui-desktop 0.2.4

Cross-platform GUI for egui applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::{
    collections::HashMap,
    sync::{LazyLock, Mutex, atomic::AtomicUsize},
};

// Global state for submenu management
pub static SUBMENU_CLICK_COUNTER: AtomicUsize = AtomicUsize::new(0);

// Global state for cascading submenu management
pub static MENU_STATE: LazyLock<Mutex<HashMap<String, usize>>> =
    LazyLock::new(|| Mutex::new(HashMap::new()));