/* grrobot - Ricochet Robot using GTK+ and Xr
*
- * Copyright © 2003 Carl Worth
+ * Copyright © 2003 Carl Worth
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without
#define GRR_ICON_H
#include <rr.h>
-#include <xsvg.h>
+#include <librsvg/rsvg.h>
+#include <librsvg/rsvg-cairo.h>
typedef struct grr_icon {
- xsvg_t *xsvg;
-
+ RsvgHandle *rsvg;
cairo_surface_t *surface;
int surface_width;
int surface_height;
grr_icon_predraw (grr_icon_t *icon, cairo_t *xrs, int width, int height);
void
-grr_icon_draw_predrawn (grr_icon_t *icon, cairo_t *xrs);
+grr_icon_draw_predrawn (grr_icon_t *icon, cairo_t *xrs, double alpha);
char *
grr_icon_robot_name (rr_robot_t robot);