notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

view_state.rs (346B)


      1 use std::collections::HashMap;
      2 
      3 use crate::login_manager::AcquireKeyState;
      4 
      5 /// Various state for views
      6 #[derive(Default)]
      7 pub struct ViewState {
      8     pub login: AcquireKeyState,
      9     pub id_state_map: HashMap<egui::Id, AcquireKeyState>,
     10 }
     11 
     12 impl ViewState {
     13     pub fn login_mut(&mut self) -> &mut AcquireKeyState {
     14         &mut self.login
     15     }
     16 }