Download

Support

lib/ewl_histogram.c File Reference

#include "ewl_base.h"
#include "ewl_histogram.h"
#include "ewl_macros.h"
#include "ewl_private.h"
#include "ewl_debug.h"
#include <Evas.h>

Include dependency graph for ewl_histogram.c:


Defines

#define A_CALC(color)   ((color) >> 24)
#define B_CALC(color)   ((color << 24) >> 24)
#define G_CALC(color)   ((color << 16) >> 24)
#define R_CALC(color)   ((color << 8) >> 24)
#define Y_CALC(color)   (((R_CALC(color) * 299) + (G_CALC(color) * 587) + (B_CALC(color) * 114)) / 1000)

Functions

void ewl_histogram_cb_configure (Ewl_Widget *w, void *event, void *data)
Ewl_Histogram_Channel ewl_histogram_channel_get (Ewl_Histogram *hist)
 Sets the color channel to graph in the histogram.
void ewl_histogram_channel_set (Ewl_Histogram *hist, Ewl_Histogram_Channel channel)
 Sets the color channel to graph in the histogram.
void ewl_histogram_color_get (Ewl_Histogram *hist, unsigned int *r, unsigned int *g, unsigned int *b, unsigned int *a)
 Get the current color values for drawing the histogram.
void ewl_histogram_color_set (Ewl_Histogram *hist, unsigned int r, unsigned int g, unsigned int b, unsigned int a)
 Changes the drawing color of a histogram.
Ewl_Imageewl_histogram_image_get (Ewl_Histogram *hist)
 Get the source image used to generate the histogram.
void ewl_histogram_image_set (Ewl_Histogram *hist, Ewl_Image *image)
 Change the source image used to generate the histogram.
int ewl_histogram_init (Ewl_Histogram *hist)
 Initialize a histogram widget to starting values.
Ewl_Widgetewl_histogram_new (void)
 Create a new Ewl_Histogram widget.

Define Documentation

#define A_CALC ( color   )     ((color) >> 24)

#define B_CALC ( color   )     ((color << 24) >> 24)

#define G_CALC ( color   )     ((color << 16) >> 24)

#define R_CALC ( color   )     ((color << 8) >> 24)

#define Y_CALC ( color   )     (((R_CALC(color) * 299) + (G_CALC(color) * 587) + (B_CALC(color) * 114)) / 1000)


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sat May 17 16:50:01 2008