diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-03-06 12:44:56 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-03-06 12:44:56 +0000 |
commit | b5d1c4d83ef5bcf3fc7c9394a6a44decb70527fd (patch) | |
tree | 37170dbc407e8b652138153e505564b5d76a3635 /navit/graphics.h | |
parent | 52b80c8828e1c1c9c48a145064a6228d2a63e41e (diff) | |
download | navit-b5d1c4d83ef5bcf3fc7c9394a6a44decb70527fd.tar.gz |
Add:Core:Code to highlight object at view on map
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2083 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/graphics.h')
-rw-r--r-- | navit/graphics.h | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/navit/graphics.h b/navit/graphics.h index 8e245b094..00e1c4216 100644 --- a/navit/graphics.h +++ b/navit/graphics.h @@ -108,6 +108,7 @@ enum attr_type; enum draw_mode_num; struct attr; struct attr_iter; +struct callback; struct color; struct displayitem; struct displaylist; @@ -117,13 +118,12 @@ struct graphics_font; struct graphics_gc; struct graphics_image; struct item; +struct itemgra; struct layout; struct point; +struct point_rect; struct transformation; -struct callback; -struct itemgra; void graphics_set_rect(struct graphics *gra, struct point_rect *pr); -void graphics_resize(struct graphics *gra, int w, int h); 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, int alpha, int wraparound); @@ -132,15 +132,15 @@ void *graphics_get_data(struct graphics *this_, char *type); void graphics_add_callback(struct graphics *this_, struct callback *cb); void graphics_remove_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); +void graphics_font_destroy_all(struct graphics *gra); struct graphics_gc *graphics_gc_new(struct graphics *gra); void graphics_gc_destroy(struct graphics_gc *gc); void graphics_gc_set_foreground(struct graphics_gc *gc, struct color *c); void graphics_gc_set_background(struct graphics_gc *gc, struct color *c); void graphics_gc_set_linewidth(struct graphics_gc *gc, int width); void graphics_gc_set_dashes(struct graphics_gc *gc, int width, int offset, unsigned char dash_list[], int n); -struct graphics_image * graphics_image_new_scaled(struct graphics *gra, char *path, int w, int h); -struct graphics_image * graphics_image_new_scaled_rotated(struct graphics *gra, char *path, int w, int h, int rotate); +struct graphics_image *graphics_image_new_scaled(struct graphics *gra, char *path, int w, int h); +struct graphics_image *graphics_image_new_scaled_rotated(struct graphics *gra, char *path, int w, int h, int rotate); struct graphics_image *graphics_image_new(struct graphics *gra, char *path); void graphics_image_free(struct graphics *gra, struct graphics_image *img); void graphics_draw_restore(struct graphics *this_, struct point *p, int w, int h); @@ -148,16 +148,15 @@ void graphics_draw_mode(struct graphics *this_, enum draw_mode_num mode); void graphics_draw_lines(struct graphics *this_, struct graphics_gc *gc, struct point *p, int count); void graphics_draw_circle(struct graphics *this_, struct graphics_gc *gc, struct point *p, int r); void graphics_draw_rectangle(struct graphics *this_, struct graphics_gc *gc, struct point *p, int w, int h); +void graphics_draw_rectangle_rounded(struct graphics *this_, struct graphics_gc *gc, struct point *plu, int w, int h, int r, int fill); void graphics_draw_text(struct graphics *this_, struct graphics_gc *gc1, struct graphics_gc *gc2, struct graphics_font *font, char *text, struct point *p, int dx, int dy); void graphics_get_text_bbox(struct graphics *this_, struct graphics_font *font, char *text, int dx, int dy, struct point *ret, int estimate); void graphics_overlay_disable(struct graphics *this_, int disable); void graphics_draw_image(struct graphics *this_, struct graphics_gc *gc, struct point *p, struct graphics_image *img); int graphics_draw_drag(struct graphics *this_, struct point *p); void graphics_background_gc(struct graphics *this_, struct graphics_gc *gc); -int graphics_ready(struct graphics *this_); -void graphics_displaylist_draw(struct graphics *gra, struct displaylist *displaylist, struct transformation *trans, struct layout *l, int callback); -void graphics_displaylist_move(struct displaylist *displaylist, int dx, int dy); void graphics_draw_itemgra(struct graphics *gra, struct itemgra *itm, struct transformation *t); +void graphics_displaylist_draw(struct graphics *gra, struct displaylist *displaylist, struct transformation *trans, struct layout *l, int callback); void graphics_draw(struct graphics *gra, struct displaylist *displaylist, GList *mapsets, struct transformation *trans, struct layout *l, int async, struct callback *cb); int graphics_draw_cancel(struct graphics *gra, struct displaylist *displaylist); struct displaylist_handle *graphics_displaylist_open(struct displaylist *displaylist); @@ -167,6 +166,9 @@ struct displaylist *graphics_displaylist_new(void); struct item *graphics_displayitem_get_item(struct displayitem *di); char *graphics_displayitem_get_label(struct displayitem *di); int graphics_displayitem_within_dist(struct displaylist *displaylist, struct displayitem *di, struct point *p, int dist); +void graphics_add_selection(struct graphics *gra, struct item *item, struct displaylist *dl); +void graphics_remove_selection(struct graphics *gra, struct item *item, struct displaylist *dl); +void graphics_clear_selection(struct graphics *gra, struct displaylist *dl); /* end of prototypes */ #ifdef __cplusplus } |