|
Freya
0.0.1
A Gtk3 MPD Client
|
The namespace provide utility functions. More...
Data Structures | |
| class | CompileSymbols |
Functions | |
| Glib::ustring | seconds_to_duration (unsigned long) |
| converts a given time in seconds to a duration ustring | |
| Glib::ustring | seconds_to_timestamp (const long) |
| converts a given time in seconds to a "timestamp" | |
| std::string | int_to_string (int num) |
| Simply converts any integer to a std::string. | |
| void | builder_internal_fetch (Glib::RefPtr< Gtk::Builder > &ref, const char *file) |
| Fetches ui definitions either from file or from compiled-in glade xml. | |
| Glib::RefPtr< Gdk::Pixbuf > | create_pixbuf_from_data (const guchar *data, gsize len, int width=150, int height=150, bool aspect=false) |
| Glib::RefPtr< Gdk::Pixbuf > | pixbuf_internal_fetch (const char *file, int width=150, int height=150, bool aspect=false) |
The namespace provide utility functions.
| void Utils::builder_internal_fetch | ( | Glib::RefPtr< Gtk::Builder > & | ref, |
| const char * | file | ||
| ) |
Fetches ui definitions either from file or from compiled-in glade xml.
| ref | the builder to add to |
| file | the file, Freya maintains a lookup table in release mode. |
| Glib::RefPtr<Gdk::Pixbuf> Utils::create_pixbuf_from_data | ( | const guchar * | data, |
| gsize | len, | ||
| int | width = 150, |
||
| int | height = 150, |
||
| bool | aspect = false |
||
| ) |
| std::string Utils::int_to_string | ( | int | num | ) |
Simply converts any integer to a std::string.
| num | the integer |
| Glib::RefPtr<Gdk::Pixbuf> Utils::pixbuf_internal_fetch | ( | const char * | file, |
| int | width = 150, |
||
| int | height = 150, |
||
| bool | aspect = false |
||
| ) |
| Glib::ustring Utils::seconds_to_duration | ( | unsigned | long | ) |
converts a given time in seconds to a duration ustring
| long,duration | in seconds to convert |
| Glib::ustring Utils::seconds_to_timestamp | ( | const long | ) |
converts a given time in seconds to a "timestamp"
| long,duration | in seconds to convert |
1.8.0