summaryrefslogtreecommitdiff
path: root/navit/graphics.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-11-04 13:12:25 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-11-04 13:12:25 +0000
commitb0b3390dbe5716907fb862625cb0c9e43fac1cda (patch)
tree328209983b28157e208bc46fdd3cf4a954acdec0 /navit/graphics.h
parente0f90fc14893d8d6e769ad6b1dc602f9d03799ff (diff)
downloadnavit-svn-b0b3390dbe5716907fb862625cb0c9e43fac1cda.tar.gz
Add:Core:Make icons scaleable
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1636 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.h')
-rw-r--r--navit/graphics.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/navit/graphics.h b/navit/graphics.h
index 5838ee5f..ea1d2c16 100644
--- a/navit/graphics.h
+++ b/navit/graphics.h
@@ -120,15 +120,13 @@ struct item;
struct layout;
struct point;
struct transformation;
+struct callback;
struct graphics *graphics_new(struct attr *parent, struct attr **attrs);
int graphics_get_attr(struct graphics *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
struct graphics *graphics_overlay_new(struct graphics *parent, struct point *p, int w, int h);
void graphics_init(struct graphics *this_);
void *graphics_get_data(struct graphics *this_, char *type);
-void graphics_register_resize_callback(struct graphics *this_, void (*callback)(void *data, int w, int h), void *data);
-void graphics_register_button_callback(struct graphics *this_, void (*callback)(void *data, int pressed, int button, struct point *p), void *data);
-void graphics_register_motion_callback(struct graphics *this_, void (*callback)(void *data, struct point *p), void *data);
-void graphics_register_keypress_callback(struct graphics *this_, void (*callback)(void *data, char *key), void *data);
+void graphics_add_callback(struct graphics *this_, struct callback *cb);
struct graphics_font *graphics_font_new(struct graphics *gra, int size, int flags);
void graphics_font_destroy_all(struct graphics *gra);
struct graphics_gc *graphics_gc_new(struct graphics *gra);