Public Member Functions | |
XAttributeLabel (const T &attr) | |
XAttributeLabel (const T &attr, gfloat x, gfloat y) | |
XAttributeLabel (const T &attr, Gtk::AlignmentEnum xalign, Gtk::AlignmentEnum yalign=Gtk::ALIGN_CENTER) | |
~XAttributeLabel () | |
void | update () |
T & | getAttribute () |
template<> | |
void | update () |
template<> | |
void | update () |
template<> | |
void | update () |
template<> | |
void | update () |
template<> | |
void | update () |
template<> | |
void | update () |
template<> | |
void | update () |
An "attribute" is any of the standard C++ data types (except of strings, as they don't have a defined formattation) and the types of the YGP library (such as ADate, ANumeric, ...).
This class only stores a reference to the attribute (which means it must not be deleted before this widget).
XGP::XAttributeLabel< T >::XAttributeLabel | ( | const T & | attr | ) | [inline] |
Constructor; pass the attribute to manage.
XGP::XAttributeLabel< T >::XAttributeLabel | ( | const T & | attr, | |
gfloat | x, | |||
gfloat | y | |||
) | [inline] |
Constructor; pass the attribute to manage.
It is aligned according to the values.
XGP::XAttributeLabel< T >::XAttributeLabel | ( | const T & | attr, | |
Gtk::AlignmentEnum | xalign, | |||
Gtk::AlignmentEnum | yalign = Gtk::ALIGN_CENTER | |||
) | [inline] |
Constructor; pass the attribute to manage.
It is aligned according to the values.
XGP::XAttributeLabel< T >::~XAttributeLabel | ( | ) | [inline] |
Destructor.
T& XGP::XAttributeLabel< T >::getAttribute | ( | ) | [inline] |
Returns a reference to the handled attribute.
void XGP::XAttributeLabel< T >::update | ( | ) | [inline] |
Actualizes the displayed value with that of the attribute.