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 CHECK_SIZE 10 |
Referenced by draw_checkerboard().
| #define N_COLORS 4 |
| #define N_COLORS 5 |
Referenced by render_interwoven_func(), and render_multi().
| #define SPACING 2 |
Referenced by draw_checkerboard().
| typedef void(* RenderGradientFunc)(GdkDrawable *drawable, GdkGC *gc, int width, int height) |
Definition at line 26 of file testgradient.c.
| 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 | |||
| ) |
| static void meta_gradient_test | ( | void | ) | [static] |
Definition at line 307 of file testgradient.c.
References create_gradient_window(), render_diagonal_alpha_func(), render_diagonal_func(), render_diagonal_multi_func(), render_horizontal_func(), render_horizontal_multi_func(), render_interwoven_func(), render_vertical_func(), and render_vertical_multi_func().
Referenced by main().
| 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] |
Definition at line 178 of file testgradient.c.
References meta_gradient_create_multi(), and N_COLORS.
Referenced by render_diagonal_multi_func(), render_horizontal_multi_func(), and render_vertical_multi_func().
| static void render_simple | ( | GdkDrawable * | drawable, | |
| GdkGC * | gc, | |||
| int | width, | |||
| int | height, | |||
| MetaGradientType | type, | |||
| gboolean | with_alpha | |||
| ) | [static] |
Definition at line 98 of file testgradient.c.
References draw_checkerboard(), FALSE, meta_gradient_add_alpha(), meta_gradient_create_simple(), and META_GRADIENT_HORIZONTAL.
Referenced by render_diagonal_alpha_func(), render_diagonal_func(), render_horizontal_func(), and render_vertical_func().
| 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().
1.5.5