Download

Support

lib/ewl_histogram.h

Go to the documentation of this file.
00001 /* vim: set sw=8 ts=8 sts=8 expandtab: */
00002 #ifndef EWL_HISTOGRAM_H
00003 #define EWL_HISTOGRAM_H
00004 
00005 #include "ewl_image.h"
00006 
00022 #define EWL_HISTOGRAM_TYPE "histogram"
00023 
00028 #define EWL_HISTOGRAM_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_HISTOGRAM_TYPE))
00029 
00034 #define EWL_HISTOGRAM(histogram) ((Ewl_Histogram *)histogram)
00035 
00039 typedef struct Ewl_Histogram Ewl_Histogram;
00040 
00044 struct Ewl_Histogram
00045 {
00046         Ewl_Image image; 
00047         Ewl_Image *source; 
00048         Ewl_Color_Set color; 
00050         int graph[256]; 
00051         int maxv; 
00052         Ewl_Histogram_Channel channel; 
00053 };
00054 
00055 Ewl_Widget         *ewl_histogram_new(void);
00056 int                  ewl_histogram_init(Ewl_Histogram *histogram);
00057 
00058 void                  ewl_histogram_color_set(Ewl_Histogram *histogram,
00059                                                 unsigned int r, unsigned int g,
00060                                                 unsigned int b, unsigned int a);
00061 void                  ewl_histogram_color_get(Ewl_Histogram *histogram,
00062                                                 unsigned int *r, unsigned int *g,
00063                                                 unsigned int *b, unsigned int *a);
00064 
00065 void                  ewl_histogram_image_set(Ewl_Histogram *histogram,
00066                                                 Ewl_Image *image);
00067 Ewl_Image         *ewl_histogram_image_get(Ewl_Histogram *histogram);
00068 
00069 void                  ewl_histogram_channel_set(Ewl_Histogram *histogram,
00070                                                 Ewl_Histogram_Channel channel);
00071 Ewl_Histogram_Channel ewl_histogram_channel_get(Ewl_Histogram *histogram);
00072 
00073 /*
00074  * Internally used callbacks, override at your own risk
00075  */
00076 void ewl_histogram_cb_configure(Ewl_Widget *w, void *event, void *data);
00077 
00082 #endif
00083 

Copyright © Enlightenment.org

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