fawkes::Throbber Class Reference
Simple Gtk Throbber/Spinner. More...
#include <gui_utils/throbber.h>
Public Member Functions | |
| Throbber (Gtk::IconSize &icon_size) | |
| Constructor. | |
| Throbber (BaseObjectType *cobject, const Glib::RefPtr< Gnome::Glade::Xml > &ref_glade) | |
| Constructor. | |
| void | set_timeout (unsigned int timeout) |
| Set the animation timeout. | |
| bool | anim_running () |
| Check if animation is running. | |
| void | start_anim () |
| Start animation. | |
| void | stop_anim () |
| Stop animation. | |
| void | set_stock (const Gtk::StockID &stock_id) |
| Set image from stock ID. | |
Detailed Description
Simple Gtk Throbber/Spinner.The throbber shows a spinning icon as a small image. It has been specifically prepared to be used as a custom image Gtk::ToolItem in a Gtk::Toolbar. The icon is defined by the currently active Gtk theme.
Definition at line 32 of file throbber.h.
Constructor & Destructor Documentation
| fawkes::Throbber::Throbber | ( | Gtk::IconSize & | icon_size | ) |
Constructor.
- Parameters:
-
icon_size desired icon size. Be aware that the icon may not be available in all sizes in the current theme.
Definition at line 71 of file throbber.cpp.
| fawkes::Throbber::Throbber | ( | BaseObjectType * | cobject, | |
| const Glib::RefPtr< Gnome::Glade::Xml > & | refxml | |||
| ) |
Constructor.
Special ctor to be used with Glade's get_widget_derived().
- Parameters:
-
cobject Gtk C object refxml Glade's XML reference
Definition at line 52 of file throbber.cpp.
Member Function Documentation
| bool fawkes::Throbber::anim_running | ( | ) |
Check if animation is running.
- Returns:
- true if animation is currently running, false otherwise.
Definition at line 170 of file throbber.cpp.
| void fawkes::Throbber::set_stock | ( | const Gtk::StockID & | stock_id | ) |
Set image from stock ID.
The image will be overwritten by a running animation or when the animation is started again. It will not be automatically reset to this stock ID if the animation stops, rather you have to do this by yourself.
- Parameters:
-
stock_id stock ID of image to set
Definition at line 205 of file throbber.cpp.
| void fawkes::Throbber::set_timeout | ( | unsigned int | timeout | ) |
Set the animation timeout.
The animation timeout is the time between two frames. It defaults to 100ms.
- Parameters:
-
timeout new timeout for animation in ms
Definition at line 160 of file throbber.cpp.
| void fawkes::Throbber::start_anim | ( | ) |
| void fawkes::Throbber::stop_anim | ( | ) |
The documentation for this class was generated from the following files:
- src/libs/gui_utils/throbber.h
- src/libs/gui_utils/throbber.cpp

