core/vgui/impl/gtk2/vgui_gtk2_statusbar.h
Go to the documentation of this file.
00001 // This is core/vgui/impl/gtk2/vgui_gtk2_statusbar.h
00002 #ifndef vgui_gtk2_statusbar_h_
00003 #define vgui_gtk2_statusbar_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007 //:
00008 // \file
00009 // \brief  The GTK implementation of vgui_statusbar.
00010 // \author Robotics Research Group, University of Oxford
00011 // \date   21 Nov 99
00012 //
00013 //  Contains class  vgui_gtk2_statusbar
00014 //
00015 // \verbatim
00016 //  Modifications
00017 //   13-SEP-2002 K.Y.McGaul - Changed to Doxygen style documentation.
00018 // \endverbatim
00019 
00020 #include <vcl_string.h>
00021 #include <vcl_iosfwd.h>
00022 #include <gtk/gtk.h>
00023 #include <vgui/vgui_statusbuf.h>
00024 #include <vgui/vgui_statusbar.h>
00025 
00026 //: The GTK implementation of vgui_statusbar.
00027 //  The GTK status bar for the main window of the application.
00028 class vgui_gtk2_statusbar : public vgui_statusbar
00029 {
00030  public:
00031   //: Constructor, creates a GTK status bar and displays it.
00032   vgui_gtk2_statusbar();
00033 
00034   //: Destructor.
00035  ~vgui_gtk2_statusbar();
00036 
00037   //: Append given text (of given length) to the status bar.
00038   int write(const char* text, int n);
00039 
00040   //: Append given text to the status bar.
00041   int write(const char* text);
00042 
00043   GtkWidget *widget;
00044   vcl_string linebuffer;
00045   vgui_statusbuf* statusbuf;
00046   vcl_ostream out;
00047 };
00048 
00049 #endif // vgui_gtk2_statusbar_h_