Download

Support

lib/ewl_spinner.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_SPINNER_H
00003 #define EWL_SPINNER_H
00004 
00005 #include "ewl_range.h"
00006 
00029 #define EWL_SPINNER_TYPE "spinner"
00030 
00035 #define EWL_SPINNER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPINNER_TYPE))
00036 
00041 typedef struct Ewl_Spinner Ewl_Spinner;
00042 
00047 #define EWL_SPINNER(spinner) ((Ewl_Spinner *) spinner)
00048 
00052 struct Ewl_Spinner
00053 {
00054         Ewl_Range range;         
00055         unsigned char digits;         
00056         Ewl_Widget *entry;         
00057         Ewl_Widget *vbox;          
00058         Ewl_Widget *increment;         
00059         Ewl_Widget *decrement;         
00060         double start_time;         
00061         double last_value;         
00062         int direction;                 
00063         Ecore_Timer *timer;         
00064 };
00065 
00066 Ewl_Widget         *ewl_spinner_new(void);
00067 int                  ewl_spinner_init(Ewl_Spinner *s);
00068 
00069 void                  ewl_spinner_digits_set(Ewl_Spinner *s, unsigned char digits);
00070 unsigned char          ewl_spinner_digits_get(Ewl_Spinner *s);
00071 
00072 /*
00073  * Internally used callbacks, override at your own risk.
00074  */
00075 void ewl_spinner_cb_realize(Ewl_Widget *widget, void *ev_data,
00076                                                 void *user_data);
00077 void ewl_spinner_cb_value_changed(Ewl_Widget *widget, void *ev_data,
00078                                                 void *user_data);
00079 void ewl_spinner_cb_configure(Ewl_Widget *widget, void *ev_data,
00080                                                 void *user_data);
00081 void ewl_spinner_cb_key_down(Ewl_Widget *widget, void *ev_data,
00082                                                 void *user_data);
00083 void ewl_spinner_cb_focus_out(Ewl_Widget *w, void *ev_data,
00084                                                 void *user_data);
00085 void ewl_spinner_cb_wheel(Ewl_Widget *w, void *ev_data,
00086                                                 void *user_data);
00087 
00088 void ewl_spinner_cb_increase_value(Ewl_Widget *widget, void *ev_data,
00089                                                 void *user_data);
00090 void ewl_spinner_cb_decrease_value(Ewl_Widget *widget, void *ev_data,
00091                                                 void *user_data);
00092 void ewl_spinner_cb_value_stop(Ewl_Widget *w, void *ev_data, void *user_data);
00093 void ewl_spinner_cb_destroy(Ewl_Widget *w, void *ev_data, void *user_data);
00094 void ewl_spinner_cb_child_show(Ewl_Container *c, Ewl_Widget *w);
00095 void ewl_spinner_cb_child_resize(Ewl_Container *c, Ewl_Widget *w, int size,
00096                                         Ewl_Orientation o);
00101 #endif
00102 

Copyright © Enlightenment.org

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