Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CEGUIMenubar.h

Go to the documentation of this file.
00001 /************************************************************************
00002         filename:       CEGUIMenubar.h
00003         created:        27/3/2005
00004         author:         Tomas Lindquist Olsen (based on code by Paul D Turner)
00005         
00006         purpose:        Interface to base class for Menubar widget
00007 *************************************************************************/
00008 /*************************************************************************
00009     Crazy Eddie's GUI System (http://www.cegui.org.uk)
00010     Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk)
00011 
00012     This library is free software; you can redistribute it and/or
00013     modify it under the terms of the GNU Lesser General Public
00014     License as published by the Free Software Foundation; either
00015     version 2.1 of the License, or (at your option) any later version.
00016 
00017     This library is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020     Lesser General Public License for more details.
00021 
00022     You should have received a copy of the GNU Lesser General Public
00023     License along with this library; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 *************************************************************************/
00026 #ifndef _CEGUIMenubar_h_
00027 #define _CEGUIMenubar_h_
00028 
00029 #include "CEGUIBase.h"
00030 #include "CEGUIWindow.h"
00031 #include "elements/CEGUIMenuBase.h"
00032 
00033 
00034 #if defined(_MSC_VER)
00035 #       pragma warning(push)
00036 #       pragma warning(disable : 4251)
00037 #endif
00038 
00039 
00040 // Start of CEGUI namespace section
00041 namespace CEGUI
00042 {
00043 
00048 class CEGUIEXPORT Menubar : public MenuBase
00049 {
00050 public:
00051         static const String EventNamespace;                             
00052 
00053         /*************************************************************************
00054                 Construction and Destruction
00055         *************************************************************************/
00060         Menubar(const String& type, const String& name);
00061 
00062 
00067         virtual ~Menubar(void);
00068 
00069 
00070 protected:
00071         /*************************************************************************
00072                 Implementation Functions
00073         *************************************************************************/
00081         virtual void    layoutItemWidgets();
00082 
00083 
00091         virtual Size getContentSize();
00092 
00093 
00104         virtual bool    testClassName_impl(const String& class_name) const
00105         {
00106                 if (class_name==(const utf8*)"Menubar") return true;
00107                 return MenuBase::testClassName_impl(class_name);
00108         }
00109 
00110 };
00111 
00112 } // End of  CEGUI namespace section
00113 
00114 
00115 #if defined(_MSC_VER)
00116 #       pragma warning(pop)
00117 #endif
00118 
00119 #endif  // end of guard _CEGUIMenubar_h_

Generated on Wed Sep 7 09:56:32 2005 for Crazy Eddies GUI System by  doxygen 1.4.3