Download

Support

lib/ewl_toolbar.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_TOOLBAR_H
00003 #define EWL_TOOLBAR_H
00004 
00005 #include "ewl_menubar.h"
00006 
00023 #define EWL_TOOLBAR_TYPE "toolbar"
00024 
00029 #define EWL_TOOLBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TOOLBAR_TYPE))
00030 
00034 typedef struct Ewl_Toolbar Ewl_Toolbar;
00035 
00040 #define EWL_TOOLBAR(toolbar) ((Ewl_Toolbar *) toolbar)
00041 
00045 struct Ewl_Toolbar
00046 {
00047         Ewl_Menubar     menubar; 
00048         Ewl_Icon_Part   hidden;  
00049 };
00050 
00051 Ewl_Widget     *ewl_htoolbar_new(void);
00052 Ewl_Widget     *ewl_vtoolbar_new(void);
00053 
00054 Ewl_Widget     *ewl_toolbar_new(void);
00055 int             ewl_toolbar_init(Ewl_Toolbar *t);
00056 
00057 void            ewl_toolbar_orientation_set(Ewl_Toolbar *t, Ewl_Orientation o);
00058 Ewl_Orientation ewl_toolbar_orientation_get(Ewl_Toolbar *t);
00059 
00060 void            ewl_toolbar_icon_part_hide(Ewl_Toolbar *t, Ewl_Icon_Part part);
00061 Ewl_Icon_Part   ewl_toolbar_icon_part_hidden_get(Ewl_Toolbar *t);
00062 
00063 /*
00064  * Internal functions
00065  */
00066 void            ewl_toolbar_cb_child_add(Ewl_Container *c, Ewl_Widget *w);
00067 
00072 #endif
00073 

Copyright © Enlightenment.org

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