XGP::XAttributeLabel< T > Class Template Reference

Class to display an attribute in a formated style while preservering its other abilities. More...

List of all members.

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 ()


Detailed Description

template<class T>
class XGP::XAttributeLabel< T >

Class to display an attribute in a formated style while preservering its other abilities.

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).


Constructor & Destructor Documentation

template<class T >
XGP::XAttributeLabel< T >::XAttributeLabel ( const T &  attr  )  [inline]

Constructor; pass the attribute to manage.

template<class T >
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.

template<class T >
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.

template<class T >
XGP::XAttributeLabel< T >::~XAttributeLabel (  )  [inline]

Destructor.


Member Function Documentation

template<class T >
T& XGP::XAttributeLabel< T >::getAttribute (  )  [inline]

Returns a reference to the handled attribute.

template<class T >
void XGP::XAttributeLabel< T >::update (  )  [inline]

Actualizes the displayed value with that of the attribute.


The documentation for this class was generated from the following file:

XGP Version 0.9.31 - Generated on Wed Nov 18 11:25:29 2009 by doxygen 1.5.8