Struct pnmixerlib::app_state::AppS
[−]
[src]
pub struct AppS { pub gui: Gui, pub audio: Audio, pub prefs: RefCell<Prefs>, pub notif: Notif, // some fields omitted }
The global application state struct.
Fields
gui: Gui
Mostly static GUI state.
audio: Audio
Audio state.
prefs: RefCell<Prefs>
Preferences state.
notif: Notif
Notification 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) -> Result<()>
Update the notification state.
fn update_audio(&self, user: AudioUser) -> Result<()>
Update the audio state.
fn update_config(&self) -> Result<()>
Update the config file.