core/vgui/vgui_button.cxx
Go to the documentation of this file.
00001 // This is core/vgui/vgui_button.cxx
00002 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00003 #pragma implementation
00004 #endif
00005 //:
00006 // \file
00007 // \brief See vgui_button.h for a description of this file.
00008 
00009 #include "vgui_button.h"
00010 #include <vcl_iostream.h>
00011 
00012 vcl_ostream& operator<<(vcl_ostream& s, vgui_button b)
00013 {
00014   char const *spc = "";
00015   if (b & vgui_LEFT)   { s << spc << "left";   spc=" "; }
00016   if (b & vgui_MIDDLE) { s << spc << "middle"; spc=" "; }
00017   if (b & vgui_RIGHT)  { s << spc << "right";           }
00018   return s;
00019 }