testgradient.c File Reference

Go to the source code of this file.

Defines

#define CHECK_SIZE   10
#define SPACING   2
#define N_COLORS   5
#define N_COLORS   4

Typedefs

typedef void(* RenderGradientFunc )(GdkDrawable *drawable, GdkGC *gc, int width, int height)

Functions

static void draw_checkerboard (GdkDrawable *drawable, int width, int height)
static void render_simple (GdkDrawable *drawable, GdkGC *gc, int width, int height, MetaGradientType type, gboolean with_alpha)
static void render_vertical_func (GdkDrawable *drawable, GdkGC *gc, int width, int height)
static void render_horizontal_func (GdkDrawable *drawable, GdkGC *gc, int width, int height)
static void render_diagonal_func (GdkDrawable *drawable, GdkGC *gc, int width, int height)
static void render_diagonal_alpha_func (GdkDrawable *drawable, GdkGC *gc, int width, int height)
static void render_multi (GdkDrawable *drawable, GdkGC *gc, int width, int height, MetaGradientType type)
static void render_vertical_multi_func (GdkDrawable *drawable, GdkGC *gc, int width, int height)
static void render_horizontal_multi_func (GdkDrawable *drawable, GdkGC *gc, int width, int height)
static void render_diagonal_multi_func (GdkDrawable *drawable, GdkGC *gc, int width, int height)
static void render_interwoven_func (GdkDrawable *drawable, GdkGC *gc, int width, int height)
static gboolean expose_callback (GtkWidget *widget, GdkEventExpose *event, gpointer data)
static GtkWidget * create_gradient_window (const char *title, RenderGradientFunc func)
static void meta_gradient_test (void)
int main (int argc, char **argv)


Define Documentation

#define CHECK_SIZE   10

Referenced by draw_checkerboard().

#define N_COLORS   4

#define N_COLORS   5

#define SPACING   2

Referenced by draw_checkerboard().


Typedef Documentation

typedef void(* RenderGradientFunc)(GdkDrawable *drawable, GdkGC *gc, int width, int height)

Definition at line 26 of file testgradient.c.


Function Documentation

static GtkWidget* create_gradient_window ( const char *  title,
RenderGradientFunc  func 
) [static]

Definition at line 278 of file testgradient.c.

References expose_callback().

Referenced by meta_gradient_test().

static void draw_checkerboard ( GdkDrawable *  drawable,
int  width,
int  height 
) [static]

Definition at line 32 of file testgradient.c.

References CHECK_SIZE, SPACING, and TRUE.

Referenced by render_simple().

static gboolean expose_callback ( GtkWidget *  widget,
GdkEventExpose *  event,
gpointer  data 
) [static]

Definition at line 263 of file testgradient.c.

References TRUE.

Referenced by create_gradient_window().

int main ( int  argc,
char **  argv 
)

Definition at line 338 of file testgradient.c.

References meta_gradient_test().

static void meta_gradient_test ( void   )  [static]

static void render_diagonal_alpha_func ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height 
) [static]

Definition at line 170 of file testgradient.c.

References META_GRADIENT_DIAGONAL, render_simple(), and TRUE.

Referenced by meta_gradient_test().

static void render_diagonal_func ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height 
) [static]

Definition at line 162 of file testgradient.c.

References FALSE, META_GRADIENT_DIAGONAL, and render_simple().

Referenced by meta_gradient_test().

static void render_diagonal_multi_func ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height 
) [static]

Definition at line 226 of file testgradient.c.

References META_GRADIENT_DIAGONAL, and render_multi().

Referenced by meta_gradient_test().

static void render_horizontal_func ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height 
) [static]

Definition at line 154 of file testgradient.c.

References FALSE, META_GRADIENT_HORIZONTAL, and render_simple().

Referenced by meta_gradient_test().

static void render_horizontal_multi_func ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height 
) [static]

Definition at line 218 of file testgradient.c.

References META_GRADIENT_HORIZONTAL, and render_multi().

Referenced by meta_gradient_test().

static void render_interwoven_func ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height 
) [static]

Definition at line 234 of file testgradient.c.

References meta_gradient_create_interwoven(), and N_COLORS.

Referenced by meta_gradient_test().

static void render_multi ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height,
MetaGradientType  type 
) [static]

static void render_simple ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height,
MetaGradientType  type,
gboolean  with_alpha 
) [static]

static void render_vertical_func ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height 
) [static]

Definition at line 146 of file testgradient.c.

References FALSE, META_GRADIENT_VERTICAL, and render_simple().

Referenced by meta_gradient_test().

static void render_vertical_multi_func ( GdkDrawable *  drawable,
GdkGC *  gc,
int  width,
int  height 
) [static]

Definition at line 210 of file testgradient.c.

References META_GRADIENT_VERTICAL, and render_multi().

Referenced by meta_gradient_test().


Generated on Sat Aug 23 22:04:23 2008 for metacity by  doxygen 1.5.5