Download

Support

lib/ewl_menubar.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_MENUBAR_H
00003 #define EWL_MENUBAR_H
00004 
00005 #include "ewl_box.h"
00006 #include "ewl_menu.h"
00007 
00029 #define EWL_MENUBAR_TYPE "menubar"
00030 
00035 #define EWL_MENUBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENUBAR_TYPE))
00036 
00040 typedef struct Ewl_Menubar Ewl_Menubar;
00041 
00046 #define EWL_MENUBAR(menubar) ((Ewl_Menubar *) menubar)
00047 
00052 struct Ewl_Menubar
00053 {
00054         Ewl_Box                 outer_box;  
00055         Ewl_Widget         *inner_box; 
00056 };
00057 
00061 typedef struct Ewl_Menubar_Info Ewl_Menubar_Info;
00062 
00066 struct Ewl_Menubar_Info
00067 {
00068         char *name;                
00069         Ewl_Menu_Info *menu;        
00070 };
00071 
00072 Ewl_Widget              *ewl_menubar_new(void);
00073 Ewl_Widget              *ewl_hmenubar_new(void);
00074 Ewl_Widget              *ewl_vmenubar_new(void);
00075 
00076 int                      ewl_menubar_init(Ewl_Menubar *mb);
00077 
00078 void                     ewl_menubar_from_info(Ewl_Menubar *mb,
00079                                         Ewl_Menubar_Info *info);
00080 
00081 void                     ewl_menubar_orientation_set(Ewl_Menubar *mb,
00082                                         Ewl_Orientation o);
00083 Ewl_Orientation          ewl_menubar_orientation_get(Ewl_Menubar *mb);
00084 
00085 void                     ewl_menubar_cb_child_add(Ewl_Container *c,
00086                                         Ewl_Widget *w);
00087 
00092 #endif
00093 

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Fri Jan 23 21:56:24 2009