forked from old/legacy-imlib2
27 lines
691 B
C
27 lines
691 B
C
#ifndef __GRAD
|
|
#define __GRAD 1
|
|
|
|
typedef struct _imlib_range ImlibRange;
|
|
typedef struct _imlib_range_color ImlibRangeColor;
|
|
|
|
struct _imlib_range_color
|
|
{
|
|
DATA8 red, green, blue, alpha;
|
|
int distance;
|
|
ImlibRangeColor *next;
|
|
};
|
|
|
|
struct _imlib_range
|
|
{
|
|
ImlibRangeColor *color;
|
|
};
|
|
|
|
ImlibRange *__imlib_CreateRange(void);
|
|
void __imlib_FreeRange(ImlibRange *rg);
|
|
void __imlib_AddRangeColor(ImlibRange *rg, DATA8 r, DATA8 g, DATA8 b,
|
|
DATA8 a, int dist);
|
|
DATA32 *__imlib_MapRange(ImlibRange *rg, int len);
|
|
void __imlib_DrawGradient(ImlibImage *im, int x, int y, int w, int h, ImlibRange *rg, double angle, ImlibOp op);
|
|
|
|
#endif
|