RightAlignedLabel.h

Go to the documentation of this file.
00001 #ifndef RIGHTALIGNEDLABEL_H_
00002 #define RIGHTALIGNEDLABEL_H_
00003 
00004 #include <gtk/gtklabel.h>
00005 #include "RightAlignment.h"
00006 
00007 namespace gtkutil
00008 {
00009 
00014     class RightAlignedLabel
00015     {
00016             // The label
00017             GtkWidget* _label;
00018 
00019         public:
00020 
00023             RightAlignedLabel (const std::string& text) :
00024                 _label(gtk_label_new(NULL))
00025             {
00026                 gtk_label_set_markup(GTK_LABEL(_label), text.c_str());
00027             }
00028 
00031             operator GtkWidget* ()
00032             {
00033                 GtkWidget* rightAlignedLabel = RightAlignment(_label);
00034                 return rightAlignedLabel;
00035             }
00036     };
00037 
00038 }
00039 
00040 #endif /*RIGHTALIGNEDLABEL_H_*/

Generated by  doxygen 1.6.2