#include <cairo.h>
#include "mb_types.h"
#include "mb_redraw_man.h"
#include "mb_tools.h"
Go to the source code of this file.
Classes | |
struct | _grad_stop |
Defines | |
#define | paint_init(_paint, _prepare, _free) |
#define | grad_stop_init(stop, _offset, _r, _g, _b, _a) |
Typedefs | |
typedef float | co_comp_t |
typedef struct _grad_stop | grad_stop_t |
Functions | |
paint_t * | rdman_paint_color_new (redraw_man_t *rdman, co_comp_t r, co_comp_t g, co_comp_t b, co_comp_t a) |
void | paint_color_set (paint_t *paint, co_comp_t r, co_comp_t g, co_comp_t b, co_comp_t a) |
void | paint_color_get (paint_t *paint, co_comp_t *r, co_comp_t *g, co_comp_t *b, co_comp_t *a) |
paint_t * | rdman_paint_linear_new (redraw_man_t *rdman, co_aix x1, co_aix y1, co_aix x2, co_aix y2) |
grad_stop_t * | paint_linear_stops (paint_t *paint, int n_stops, grad_stop_t *stops) |
Setup color stop for a linear radient paint. | |
paint_t * | rdman_paint_radial_new (redraw_man_t *rdman, co_aix cx, co_aix cy, co_aix r) |
grad_stop_t * | paint_radial_stops (paint_t *paint, int n_stops, grad_stop_t *stops) |
Setup color stop for a radial radient paint. |
#define grad_stop_init | ( | stop, | |||
_offset, | |||||
_r, | |||||
_g, | |||||
_b, | |||||
_a | ) |
Value:
do { \ (stop)->offset = _offset; \ (stop)->r = _r; \ (stop)->g = _g; \ (stop)->b = _b; \ (stop)->a = _a; \ } while(0)
Definition at line 47 of file mb_paint.h.
#define paint_init | ( | _paint, | |||
_prepare, | |||||
_free | ) |
Value:
do { \ (_paint)->flags = 0; \ (_paint)->prepare = _prepare; \ (_paint)->free = _free; \ STAILQ_INIT((_paint)->members); \ (_paint)->pnt_next = NULL; \ } while(0) \
Definition at line 20 of file mb_paint.h.
typedef float co_comp_t |
Definition at line 9 of file mb_paint.h.
typedef struct _grad_stop grad_stop_t |
grad_stop_t* paint_linear_stops | ( | paint_t * | paint, | |
int | n_stops, | |||
grad_stop_t * | stops | |||
) |
grad_stop_t* paint_radial_stops | ( | paint_t * | paint, | |
int | n_stops, | |||
grad_stop_t * | stops | |||
) |
paint_t* rdman_paint_radial_new | ( | redraw_man_t * | rdman, | |
co_aix | cx, | |||
co_aix | cy, | |||
co_aix | r | |||
) |