XGP::XAttributeLabel2< 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

 XAttributeLabel2 (const T &attr)
 XAttributeLabel2 (const T &attr, gfloat x, gfloat y)
 XAttributeLabel2 (const T &attr, Gtk::AlignmentEnum xalign, Gtk::AlignmentEnum yalign=Gtk::ALIGN_CENTER)
 ~XAttributeLabel2 ()
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::XAttributeLabel2< 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 the attribute itself (meaning: the value of the provided attribute is copied). Use this class (instead of XAttributeLabel) if you only want to display something without storing the displayed value by yourself.


Constructor & Destructor Documentation

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

Constructor; pass the attribute to manage.

It is aligned according to the values.

template<class T >
XGP::XAttributeLabel2< T >::XAttributeLabel2 ( 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::XAttributeLabel2< T >::XAttributeLabel2 ( 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::XAttributeLabel2< T >::~XAttributeLabel2 (  )  [inline]

Destructor.


Member Function Documentation

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

Returns a reference to the handled attribute.

template<class T >
void XGP::XAttributeLabel2< 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