Download

Support

lib/ewl_floater.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_FLOATER_H
00003 #define EWL_FLOATER_H
00004 
00005 #include "ewl_box.h"
00006 
00029 #define EWL_FLOATER_TYPE "floater"
00030 
00035 #define EWL_FLOATER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FLOATER_TYPE))
00036 
00041 typedef struct Ewl_Floater Ewl_Floater;
00042 
00047 #define EWL_FLOATER(floater) ((Ewl_Floater *) floater)
00048 
00053 struct Ewl_Floater
00054 {
00055         Ewl_Box box; 
00056         Ewl_Widget *follows; 
00057         int x; 
00058         int y; 
00059 };
00060 
00061 
00062 Ewl_Widget         *ewl_floater_new(void);
00063 int                   ewl_floater_init(Ewl_Floater *f);
00064 void                  ewl_floater_follow_set(Ewl_Floater *f, Ewl_Widget *p);
00065 Ewl_Widget         *ewl_floater_follow_get(Ewl_Floater *f);
00066 void                  ewl_floater_position_set(Ewl_Floater *parent, int x, int y);
00067 
00068 /*
00069  * Internally used callbacks, override at your own risk.
00070  */
00071 void ewl_floater_cb_destroy(Ewl_Widget *w, void *ev_data, void *user_data);
00072 void ewl_floater_cb_follow_configure(Ewl_Widget *w, void *ev_data,
00073                                                 void *user_data);
00074 void ewl_floater_cb_follow_destroy(Ewl_Widget *w, void *ev_data,
00075                                                    void *user_data);
00076 
00081 #endif

Copyright © Enlightenment.org

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