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, Ewl_Menubar_Info *info);
00079 
00080 void                 ewl_menubar_orientation_set(Ewl_Menubar *mb, Ewl_Orientation o);
00081 Ewl_Orientation         ewl_menubar_orientation_get(Ewl_Menubar *mb);
00082 
00083 void                ewl_menubar_cb_child_add(Ewl_Container *c, Ewl_Widget *w);
00084 
00089 #endif
00090 

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:49:05 2008