|
Freya
0.0.1
A Gtk3 MPD Client
|
Manages the VolumeSlider. More...
#include <VolumeSlider.hh>
Public Member Functions | |
| VolumeSlider (MPD::Client &client, const Glib::RefPtr< Gtk::Builder > &builder) | |
Protected Member Functions | |
| bool | on_draw (const Cairo::RefPtr< Cairo::Context > &cr) |
| Override to draw the widget. | |
| void | on_percent_change () |
| Called whenever the percentage changes. | |
Manages the VolumeSlider.
Updates on the mixer event, only updates every 0.05 seconds to prevent high ressource-usage. Also schedules an Glib::signal_idle() event instead of executing it directly.
Definition at line 47 of file VolumeSlider.hh.
| GManager::VolumeSlider::VolumeSlider | ( | MPD::Client & | client, |
| const Glib::RefPtr< Gtk::Builder > & | builder | ||
| ) |
| bool GManager::VolumeSlider::on_draw | ( | const Cairo::RefPtr< Cairo::Context > & | cr | ) | [protected, virtual] |
Override to draw the widget.
on_draw() is always called when the widget needs to be redrawn, therefore all drawing logic should happen here, possibly in a optimized way.
See also: http://developer.gnome.org/gtkmm-tutorial/3.0/chapter-drawingarea.html
| cr | a Cairo::Context |
Implements CairoSlider.
| void GManager::VolumeSlider::on_percent_change | ( | ) | [protected, virtual] |
Called whenever the percentage changes.
Implements CairoSlider.
1.8.0