From b0b3390dbe5716907fb862625cb0c9e43fac1cda Mon Sep 17 00:00:00 2001 From: martin-s Date: Tue, 4 Nov 2008 13:12:25 +0000 Subject: Add:Core:Make icons scaleable git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1636 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/graphics.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'navit/graphics.h') 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); -- cgit v1.2.1