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

menubar_default.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_default
00010 #define header_menubar_default
00011 
00012 #include "API/GUI/menubar.h"
00013 #include "API/GUI/stylemanager_default.h"
00014 #include "API/GUI/component_style.h"
00015 
00016 class CL_MenuBar_Default : public CL_ComponentStyle
00017 {
00018 public:
00019         CL_MenuBar_Default(
00020                 CL_MenuBar *bar,
00021                 const CL_ComponentOptions &options,
00022                 CL_StyleManager_Default *style);
00023 
00024         virtual ~CL_MenuBar_Default() { return; }
00025 
00026         void adjust_size();
00027         // Adjusts the size of the component to fit the contents. 
00028 
00029 private:
00030         CL_Slot slot_paint;
00031         void on_paint();
00032 
00033         CL_MenuBar *menubar;
00034         bool initialized;
00035         
00036         CL_StyleManager_Default *style;
00037         CL_ResourceManager *resources;
00038 };
00039 
00040 #endif

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