Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

menubar_generic.h

Go to the documentation of this file.
00001 /*
00002         ClanGUI, copyrights by various people. Have a look in the CREDITS file.
00003         
00004         This sourcecode is distributed using the Library GNU Public Licence,
00005         version 2 or (at your option) any later version. Please read LICENSE
00006         for details.
00007 */
00008 
00009 #ifndef header_menubar
00010 #define header_menubar
00011 
00012 #include "component_options.h"
00013 #include "stylemanager.h"
00014 #include "menudata.h"
00015 
00016 class CL_Component;
00017 class CL_MenuItem;
00018 class CL_PopupMenu;
00019 
00020 class CL_MenuBar : public CL_MenuData
00021 {
00022 public:
00023         static CL_MenuBar *create(
00024                 const CL_ComponentOptions &options,
00025                 CL_Component *parent,
00026                 CL_StyleManager *style);
00027 
00028         CL_MenuBar(const CL_ComponentOptions &options, CL_Component *parent);
00029         CL_MenuBar(CL_Component *parent) : CL_MenuData(parent) { ; }
00030         virtual ~CL_MenuBar() { return; }
00031 
00032 //      virtual void adjust_size() = 0;
00033         // Adjusts the size of the component to fit the contents. 
00034 
00035 //      virtual void update();
00036 
00037 protected:
00038         virtual void on_item_activated(CL_MenuItem *item, CL_PopupMenu *child);
00039         virtual void on_item_highlighted(CL_MenuItem *item);
00040 };  
00041 
00042 #endif

Generated at Wed Apr 4 19:54:01 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001