diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-11-04 13:12:25 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-11-04 13:12:25 +0000 |
commit | 308febaaf88c105f06acd19e68c36858f5bec9e3 (patch) | |
tree | 328209983b28157e208bc46fdd3cf4a954acdec0 /navit/graphics.h | |
parent | 0aab444415109930632c7313a5912d18e13d1036 (diff) | |
download | navit-308febaaf88c105f06acd19e68c36858f5bec9e3.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.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/navit/graphics.h b/navit/graphics.h index 5838ee5fe..ea1d2c16c 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); |