Download

Support

lib/ewl_statusbar.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_STATUSBAR_H
00003 #define EWL_STATUSBAR_H
00004 
00005 #include "ewl_box.h"
00006 
00028 #define EWL_STATUSBAR_TYPE "statusbar"
00029 
00034 #define EWL_STATUSBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_STATUSBAR_TYPE))
00035 
00039 typedef struct Ewl_Statusbar Ewl_Statusbar;
00040 
00045 #define EWL_STATUSBAR(statusbar) ((Ewl_Statusbar *) statusbar)
00046 
00051 struct Ewl_Statusbar
00052 {
00053         Ewl_Box                         outer_box;        
00054         Ewl_Widget                *left;                
00055         Ewl_Widget                *status;        
00056         Ewl_Widget                *right;                
00057         Ecore_List                *stack;                
00058         Ewl_Widget                *current;        
00059 };
00060 
00061 Ewl_Widget        *ewl_statusbar_new(void);
00062 int                 ewl_statusbar_init(Ewl_Statusbar *sb);
00063 
00064 void                 ewl_statusbar_left_hide(Ewl_Statusbar *sb);
00065 void                 ewl_statusbar_left_show(Ewl_Statusbar *sb);
00066 void                 ewl_statusbar_right_hide(Ewl_Statusbar *sb);
00067 void                 ewl_statusbar_right_show(Ewl_Statusbar *sb);
00068 
00069 void                 ewl_statusbar_active_set(Ewl_Statusbar *sb, Ewl_Position pos);
00070 void                 ewl_statusbar_left_append(Ewl_Statusbar *sb, Ewl_Widget *w);
00071 void                 ewl_statusbar_left_prepend(Ewl_Statusbar *sb, Ewl_Widget *w);
00072 void                 ewl_statusbar_right_append(Ewl_Statusbar *sb, Ewl_Widget *w);
00073 void                 ewl_statusbar_right_prepend(Ewl_Statusbar *sb, Ewl_Widget *w);
00074 
00075 void                 ewl_statusbar_push(Ewl_Statusbar *sb, char *txt);
00076 void                 ewl_statusbar_pop(Ewl_Statusbar *sb);
00077 
00078 /*
00079  * Internal functions
00080  */
00081 void ewl_statusbar_cb_destroy(Ewl_Widget *w, void *ev, void *data);
00082 
00087 #endif
00088 

Copyright © Enlightenment.org

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