navit
0.5.3-trunk
|
#include <glib.h>
#include <gd.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "config.h"
#include "point.h"
#include "graphics.h"
#include "color.h"
#include "plugin.h"
#include "callback.h"
#include "window.h"
#include "navit.h"
#include "debug.h"
#include "navit/font/freetype/font_freetype.h"
Data Structures | |
struct | shmem_header |
struct | graphics_priv |
struct | graphics_gc_priv |
struct | graphics_image_priv |
Functions | |
static void | emit_callback (struct graphics_priv *priv) |
static void | image_setup (struct graphics_priv *gr) |
static struct shmem_header * | shm_next (struct graphics_priv *gr) |
static void | add_overlays (struct graphics_priv *overlay, gdImagePtr im) |
static void | graphics_destroy (struct graphics_priv *gr) |
static void | gc_destroy (struct graphics_gc_priv *gc) |
static void | gc_set_linewidth (struct graphics_gc_priv *gc, int w) |
static void | gc_set_dashes (struct graphics_gc_priv *gc, int w, int offset, unsigned char *dash_list, int n) |
static void | gc_set_foreground (struct graphics_gc_priv *gc, struct color *c) |
static void | gc_set_background (struct graphics_gc_priv *gc, struct color *c) |
static struct graphics_gc_priv * | gc_new (struct graphics_priv *gr, struct graphics_gc_methods *meth) |
static struct graphics_image_priv * | image_new (struct graphics_priv *gr, struct graphics_image_methods *meth, char *name, int *w, int *h, struct point *hot, int rotation) |
static void | draw_lines (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count) |
static void | draw_polygon (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count) |
static void | draw_rectangle (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int w, int h) |
static void | draw_circle (struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int r) |
static void | draw_text (struct graphics_priv *gr, struct graphics_gc_priv *fg, struct graphics_gc_priv *bg, struct graphics_font_priv *font, char *text, struct point *p, int dx, int dy) |
static void | draw_image (struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, struct graphics_image_priv *img) |
static void | draw_drag (struct graphics_priv *gr, struct point *p) |
static void | background_gc (struct graphics_priv *gr, struct graphics_gc_priv *gc) |
static void | draw_mode (struct graphics_priv *gr, enum draw_mode_num mode) |
static struct graphics_priv * | overlay_new (struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound) |
static void * | get_data (struct graphics_priv *this, char *type) |
static void | image_free (struct graphics_priv *gr, struct graphics_image_priv *priv) |
static void | overlay_disable (struct graphics_priv *gr, int disable) |
static void | overlay_resize (struct graphics_priv *gr, struct point *p, int w, int h, int wraparound) |
static void | image_create (struct graphics_priv *gr) |
static void | image_destroy (struct graphics_priv *gr) |
static int | set_attr_do (struct graphics_priv *gr, struct attr *attr, int init) |
static int | set_attr (struct graphics_priv *gr, struct attr *attr) |
static struct graphics_priv * | graphics_gd_new (struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl) |
void | plugin_init (void) |
Variables | |
static struct graphics_gc_methods | gc_methods |
static struct graphics_methods | graphics_methods |
|
static |
References graphics_priv::im, graphics_priv::overlay, graphics_priv::x, and graphics_priv::y.
Referenced by draw_mode(), and get_data().
|
static |
References graphics_priv::background.
|
static |
References graphics_gc_priv::color, graphics_priv::flags, graphics_priv::im, p, and graphics_gc_priv::width.
|
static |
References graphics_priv::p, p, point::x, and point::y.
|
static |
References graphics_priv::im, graphics_image_priv::im, and p.
|
static |
|
static |
References add_overlays(), graphics_priv::background, graphics_gc_priv::color, data, dbg, draw_mode_begin, draw_mode_end, shmem_header::flag, graphics_priv::flags, graphics_priv::h, graphics_priv::im, image_setup(), lvl_debug, lvl_error, next, graphics_priv::overlay, graphics_priv::overlays, graphics_priv::shm_header, shm_next(), size, graphics_priv::sockets, and graphics_priv::w.
|
static |
References graphics_gc_priv::color, graphics_priv::flags, graphics_priv::im, and p.
|
static |
|
static |
References color::a, graphics_gc_priv::color2, font_freetype_glyph::dx, font_freetype_glyph::dy, graphics_priv::freetype_methods, color::g, font_freetype_methods::get_glyph, font_freetype_methods::get_shadow, font_freetype_text::glyph, font_freetype_text::glyph_count, font_freetype_glyph::h, graphics_priv::im, p, font_freetype_methods::text_destroy, font_freetype_methods::text_new, font_freetype_glyph::w, font_freetype_glyph::x, and font_freetype_glyph::y.
|
static |
References callback_list_call_attr_2, graphics_priv::cbl, graphics_priv::h, and graphics_priv::w.
Referenced by graphics_gd_new(), and set_attr_do().
|
static |
|
static |
|
static |
|
static |
|
static |
References c, graphics_gc_priv::color, graphics_gc_priv::color2, graphics_gc_priv::gr, and graphics_priv::im.
|
static |
References graphics_gc_priv::width.
|
static |
|
static |
References font_freetype_methods::destroy, and graphics_priv::freetype_methods.
|
static |
References callback_cast, callback_new_attr_1, graphics_priv::cb, graphics_priv::cbl, cbl, emit_callback(), event_request_system(), font_freetype_new(), font_freetype_methods::font_new, graphics_methods::font_new, graphics_priv::freetype_methods, font_freetype_methods::get_text_bbox, graphics_methods::get_text_bbox, graphics_methods, graphics_priv::h, graphics_priv::im, image_create(), graphics_priv::nav, navit_add_callback(), set_attr_do(), and graphics_priv::w.
Referenced by plugin_init().
|
static |
References dbg, graphics_priv::h, graphics_priv::im, image_setup(), lvl_debug, graphics_priv::shm, graphics_priv::shm_header, graphics_priv::shmkey, size, and graphics_priv::w.
Referenced by graphics_gd_new(), and set_attr_do().
|
static |
References graphics_priv::im, graphics_priv::shm, and graphics_priv::shmkey.
Referenced by set_attr_do().
|
static |
References graphics_image_priv::im.
|
static |
References file, graphics_image_priv::h, graphics_image_priv::hot, graphics_image_priv::im, name, graphics_image_priv::w, point::x, and point::y.
|
static |
References shmem_header::bpp, shmem_header::flag, graphics_priv::h, shmem_header::h, graphics_priv::im, graphics_priv::shm_header, graphics_priv::shmkey, graphics_priv::w, and shmem_header::w.
Referenced by draw_mode(), and image_create().
|
static |
|
static |
|
static |
void plugin_init | ( | void | ) |
References graphics_gd_new().
|
static |
|
static |
References c, dbg, emit_callback(), graphics_priv::flags, graphics_priv::h, graphics_priv::im, image_create(), image_destroy(), lvl_debug, lvl_error, attr::num, p, graphics_priv::shmkey, graphics_priv::shmoffset, graphics_priv::shmsize, graphics_priv::sockets, attr::str, attr::type, attr::u, and graphics_priv::w.
Referenced by graphics_gd_new().
|
static |
References dbg, lvl_debug, next, graphics_priv::shm, graphics_priv::shm_header, graphics_priv::shmoffset, and graphics_priv::shmsize.
Referenced by draw_mode().
|
static |
Referenced by gc_new().
|
static |
Referenced by graphics_gd_new(), and overlay_new().