synfig-studio  1.0.3
Classes | Namespaces | Macros | Functions
helpers.hpp File Reference
#include <glib.h>
#include <assert.h>

Go to the source code of this file.

Classes

struct  brushlib::Rect

Namespaces

namespace  brushlib

Macros

#define ROUND(x)   ((int) ((x) + 0.5))
#define SIGN(x)   ((x)>0?1:(-1))
#define SQR(x)   ((x)*(x))
#define MAX3(a, b, c)   ((a)>(b)?MAX((a),(c)):MAX((b),(c)))
#define MIN3(a, b, c)   ((a)<(b)?MIN((a),(c)):MIN((b),(c)))

Functions

void brushlib::ExpandRectToIncludePoint (Rect *r, int x, int y)
float brushlib::rand_gauss (GRand *rng)
void brushlib::rgb_to_hsv_float (float *r_, float *g_, float *b_)
void brushlib::hsv_to_rgb_float (float *h_, float *s_, float *v_)
void brushlib::rgb_to_hsl_float (float *r_, float *g_, float *b_)
static double brushlib::hsl_value (gdouble n1, gdouble n2, gdouble hue)
void brushlib::hsl_to_rgb_float (float *h_, float *s_, float *l_)

Macro Definition Documentation

#define ROUND (   x)    ((int) ((x) + 0.5))
#define SIGN (   x)    ((x)>0?1:(-1))
#define SQR (   x)    ((x)*(x))
#define MAX3 (   a,
  b,
 
)    ((a)>(b)?MAX((a),(c)):MAX((b),(c)))
#define MIN3 (   a,
  b,
 
)    ((a)<(b)?MIN((a),(c)):MIN((b),(c)))