Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/gtk-engine/src/cairo-support.h
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-engine/src/cairo-support.h')
-rw-r--r--gtk-engine/src/cairo-support.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/gtk-engine/src/cairo-support.h b/gtk-engine/src/cairo-support.h
deleted file mode 100644
index 2094688..0000000
--- a/gtk-engine/src/cairo-support.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/* Helpful functions when dealing with cairo in gtk engines */
-
-#include <gtk/gtk.h>
-#include <math.h>
-
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
-#ifndef M_PI_2
-#define M_PI_2 1.57079632679489661923
-#endif
-
-#ifndef M_PI_4
-#define M_PI_4 0.78539816339744830962
-#endif
-
-typedef struct
-{
- gdouble r;
- gdouble g;
- gdouble b;
- gdouble a;
-} CairoColor;
-
-typedef struct
-{
- CairoColor bg[5];
- CairoColor fg[5];
-
- CairoColor dark[5];
- CairoColor light[5];
- CairoColor mid[5];
-
- CairoColor base[5];
- CairoColor text[5];
- CairoColor text_aa[5];
-
- CairoColor black;
- CairoColor white;
-} CairoColorCube;
-
-typedef enum
-{
- CR_CORNER_NONE = 0,
- CR_CORNER_TOPLEFT = 1,
- CR_CORNER_TOPRIGHT = 2,
- CR_CORNER_BOTTOMLEFT = 4,
- CR_CORNER_BOTTOMRIGHT = 8,
- CR_CORNER_ALL = 15
-} CairoCorners;
-
-typedef enum
-{
- CR_MIRROR_NONE = 0,
- CR_MIRROR_HORIZONTAL = 1 << 0,
- CR_MIRROR_VERTICAL = 1 << 1
-} CairoMirror;
-
-GE_INTERNAL void ge_hsb_from_color (const CairoColor *color, gdouble *hue, gdouble *saturation, gdouble *brightness);
-GE_INTERNAL void ge_color_from_hsb (gdouble hue, gdouble saturation, gdouble brightness, CairoColor *color);
-
-GE_INTERNAL void ge_gdk_color_to_cairo (GdkColor * gc, CairoColor * cc);
-GE_INTERNAL void ge_cairo_color_to_gtk (CairoColor *cc, GdkColor *c);
-GE_INTERNAL void ge_gtk_style_to_cairo_color_cube (GtkStyle * style, CairoColorCube *cube);
-
-GE_INTERNAL void ge_shade_color(const CairoColor *base, gdouble shade_ratio, CairoColor *composite);
-GE_INTERNAL void ge_saturate_color (const CairoColor * base, gdouble saturate_level, CairoColor *composite);
-
-GE_INTERNAL cairo_t * ge_gdk_drawable_to_cairo (GdkDrawable *window, GdkRectangle *area);
-GE_INTERNAL void ge_cairo_set_color (cairo_t *cr, CairoColor *color);
-GE_INTERNAL void ge_cairo_pattern_add_color_stop_color (cairo_pattern_t *pattern, gfloat offset, CairoColor *color);
-
-GE_INTERNAL void ge_cairo_rounded_rectangle (cairo_t *cr, double x, double y, double w, double h, double radius, CairoCorners corners);
-
-GE_INTERNAL void ge_cairo_simple_border (cairo_t *cr, CairoColor * tl, CairoColor * br, gint x, gint y, gint width, gint height, gboolean topleft_overlap);
-
-GE_INTERNAL void ge_cairo_line (cairo_t *cr, CairoColor *color, gint x1, gint y1, gint x2, gint y2);
-GE_INTERNAL void ge_cairo_polygon (cairo_t *cr, CairoColor *color, GdkPoint *points, gint npoints);
-
-GE_INTERNAL void ge_cairo_mirror (cairo_t *cr, CairoMirror mirror, gint *x, gint *y, gint *width, gint *height);