Struct pnmixerlib::app_state::AppS
[−]
[src]
pub struct AppS { pub gui: Gui, pub audio: Rc<Audio>, pub prefs: RefCell<Prefs>, pub notif: Option<Notif>, pub hotkeys: RefCell<Box<Hotkeys>>, // some fields omitted }
The global application state struct.
Fields
gui: Gui
Mostly static GUI state.
audio: Rc<Audio>
Audio state.
prefs: RefCell<Prefs>
Preferences state.
notif: Option<Notif>
Notification state. In case of initialization failure, this
is set to None
.
hotkeys: RefCell<Box<Hotkeys>>
Hotkey state.
Methods
impl AppS
[src]
fn new() -> AppS
Create an application state instance. There should really only be one.
fn update_tray_icon(&self) -> Result<()>
Update the tray icon state.
fn update_popup_window(&self) -> Result<()>
Update the Popup Window state.
fn update_notify(&self)
Update the notification state.
fn update_audio(&self, user: AudioUser) -> Result<()>
Update the audio state.
fn update_config(&self) -> Result<()>
Update the config file.
fn update_hotkeys(&self) -> Result<()>
Update hotkey state.