Public Member Functions | |
StockID () | |
Create an empty StockID. | |
StockID (const BuiltinStockID& id) | |
Create a StockID from one of the build-in stock ids. | |
StockID (const Glib::ustring& id) | |
Create a StockID from its string representation. | |
StockID (const char* id) | |
Create a StockID from its string representation. | |
~StockID () | |
StockID (const StockID& other) | |
Create a StockID as copy from another. | |
StockID& | operator= (const StockID& other) |
Check if the StockIDs are equal. | |
operator bool () const | |
Tests whether the StockID is not empty. | |
bool | equal (const StockID& rhs) const |
Check if two StockIDs are equal. | |
Glib::ustring | get_string () const |
Get the string representation of the StockID. | |
const char* | get_c_str () const |
Get the string representation as a const gchar*. | |
Protected Attributes | |
Glib::ustring | id_ |
Related Functions | |
(Note that these are not member functions.) | |
bool | operator== (const StockID& lhs, const StockID& rhs) |
bool | operator!= (const StockID& lhs, const StockID& rhs) |
Gtk::StockID::StockID | ( | ) |
Create an empty StockID.
Gtk::StockID::StockID | ( | const BuiltinStockID& | id | ) |
Create a StockID from one of the build-in stock ids.
See also Gtk::BuildinStockID.
Gtk::StockID::StockID | ( | const Glib::ustring & | id | ) | [explicit] |
Create a StockID from its string representation.
id | string representation of the stock id. Usually something like "gtk-about". |
Gtk::StockID::StockID | ( | const char * | id | ) | [explicit] |
Gtk::StockID::~StockID | ( | ) |
Gtk::StockID::StockID | ( | const StockID& | other | ) |
bool Gtk::StockID::equal | ( | const StockID& | rhs | ) | const |
Check if two StockIDs are equal.
rhs | Another StockID. |
true
if both ids equal - false
otherwise. const char* Gtk::StockID::get_c_str | ( | ) | const |
Get the string representation as a const gchar*.
Glib::ustring Gtk::StockID::get_string | ( | ) | const |
Gtk::StockID::operator bool | ( | ) | const |
Tests whether the StockID is not empty.
Glib::ustring Gtk::StockID::id_ [protected] |