Struct pnmixerlib::ui_tray_icon::TrayIcon [] [src]

pub struct TrayIcon {
    pub volmeter: RefCell<Option<VolMeter>>,
    pub audio_pix: RefCell<AudioPix>,
    pub status_icon: StatusIcon,
    pub icon_size: Cell<i32>,
    // some fields omitted
}

The tray icon struct, describing the complete visual state.

Fields

The volume meter to draw on the actual Pixbuf, if requested.

The actual Pixbuf tray icon.

The gtk StatusIcon widget, used to register callbacks.

The current icon size.

Methods

impl TrayIcon
[src]

Constructor. audio_pix is initialized as empty GdkPixbuf, to save one iteration of png decoding (update_all() is triggered immediately on startup through tray_icon.connect_size_changed.

Update the whole tray icon state.