RightAlignment.h

Go to the documentation of this file.
00001 #ifndef RIGHTALIGNMENT_H_
00002 #define RIGHTALIGNMENT_H_
00003 
00004 #include <gtk/gtkalignment.h>
00005 
00006 namespace gtkutil
00007 {
00008 
00012     class RightAlignment
00013     {
00014             // The alignment widget
00015             GtkWidget* _widget;
00016 
00017         public:
00018 
00021             RightAlignment (GtkWidget* w) :
00022                 _widget(gtk_alignment_new(1.0, 0.5, 0, 0))
00023             {
00024                 gtk_container_add(GTK_CONTAINER(_widget), w);
00025             }
00026 
00029             operator GtkWidget* ()
00030             {
00031                 return _widget;
00032             }
00033     };
00034 
00035 }
00036 
00037 #endif /*RIGHTALIGNMENT_H_*/

Generated by  doxygen 1.6.2