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 __UNUSED__, void *data __UNUSED__) |
| 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_Image * | ewl_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_Widget * | ewl_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) |
Function Documentation
| void ewl_histogram_cb_configure | ( | Ewl_Widget * | w, | |
| void *event | __UNUSED__, | |||
| void *data | __UNUSED__ | |||
| ) |
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, DLEAVE_FUNCTION, DLEVEL_STABLE, EWL_HISTOGRAM, and EWL_HISTOGRAM_TYPE.
Referenced by ewl_histogram_init().