navit  0.5.3-trunk
graphics_qt_qpainter.cpp File Reference
#include "graphics_qt_qpainter.h"
#include "RenderArea.h"

Data Structures

struct  graphics_font_priv
 
struct  graphics_image_priv
 

Functions

static void overlay_rect (struct graphics_priv *parent, struct graphics_priv *overlay, int clean, QRect *r)
 
void qt_qpainter_draw (struct graphics_priv *gr, const QRect *r, int paintev)
 
static void graphics_destroy (struct graphics_priv *gr)
 
static void font_destroy (struct graphics_font_priv *font)
 
static struct graphics_font_privfont_new (struct graphics_priv *gr, struct graphics_font_methods *meth, char *fontfamily, int size, int flags)
 
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_privgc_new (struct graphics_priv *gr, struct graphics_gc_methods *meth)
 
static struct graphics_image_privimage_new (struct graphics_priv *gr, struct graphics_image_methods *meth, char *path, 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_privoverlay_new (struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound)
 
static int fullscreen (struct window *win, int on)
 
static void disable_suspend (struct window *win)
 
static void * get_data (struct graphics_priv *this_, const char *type)
 
static void image_free (struct graphics_priv *gr, struct graphics_image_priv *priv)
 
static void get_text_bbox (struct graphics_priv *gr, struct graphics_font_priv *font, char *text, int dx, int dy, struct point *ret, int estimate)
 
static void overlay_disable (struct graphics_priv *gr, int disable)
 
static int set_attr (struct graphics_priv *gr, struct attr *attr)
 
static struct graphics_privgraphics_qt_qpainter_new (struct navit *nav, struct graphics_methods *meth, struct attr **attrs, struct callback_list *cbl)
 
void plugin_init (void)
 

Variables

static struct graphics_font_methods font_methods
 
static struct graphics_gc_methods gc_methods
 
static int argc = 1
 
static char * argv [] = {NULL,NULL,NULL}
 
static struct graphics_methods graphics_methods
 

Function Documentation

◆ background_gc()

static void background_gc ( struct graphics_priv gr,
struct graphics_gc_priv gc 
)
static

◆ disable_suspend()

static void disable_suspend ( struct window win)
static

◆ draw_circle()

static void draw_circle ( struct graphics_priv gr,
struct graphics_gc_priv gc,
struct point p,
int  r 
)
static

◆ draw_drag()

static void draw_drag ( struct graphics_priv gr,
struct point p 
)
static

◆ draw_image()

static void draw_image ( struct graphics_priv gr,
struct graphics_gc_priv fg,
struct point p,
struct graphics_image_priv img 
)
static

◆ draw_lines()

static void draw_lines ( struct graphics_priv gr,
struct graphics_gc_priv gc,
struct point p,
int  count 
)
static

◆ draw_mode()

◆ draw_polygon()

static void draw_polygon ( struct graphics_priv gr,
struct graphics_gc_priv gc,
struct point p,
int  count 
)
static

◆ draw_rectangle()

static void draw_rectangle ( struct graphics_priv gr,
struct graphics_gc_priv gc,
struct point p,
int  w,
int  h 
)
static

◆ draw_text()

◆ font_destroy()

static void font_destroy ( struct graphics_font_priv font)
static

◆ font_new()

static struct graphics_font_priv* font_new ( struct graphics_priv gr,
struct graphics_font_methods meth,
char *  fontfamily,
int  size,
int  flags 
)
static

◆ fullscreen()

◆ gc_destroy()

static void gc_destroy ( struct graphics_gc_priv gc)
static

◆ gc_new()

static struct graphics_gc_priv* gc_new ( struct graphics_priv gr,
struct graphics_gc_methods meth 
)
static

◆ gc_set_background()

static void gc_set_background ( struct graphics_gc_priv gc,
struct color c 
)
static

◆ gc_set_dashes()

static void gc_set_dashes ( struct graphics_gc_priv gc,
int  w,
int  offset,
unsigned char *  dash_list,
int  n 
)
static

◆ gc_set_foreground()

static void gc_set_foreground ( struct graphics_gc_priv gc,
struct color c 
)
static

◆ gc_set_linewidth()

static void gc_set_linewidth ( struct graphics_gc_priv gc,
int  w 
)
static

References graphics_gc_priv::pen.

◆ get_data()

static void* get_data ( struct graphics_priv this_,
const char *  type 
)
static

◆ get_text_bbox()

static void get_text_bbox ( struct graphics_priv gr,
struct graphics_font_priv font,
char *  text,
int  dx,
int  dy,
struct point ret,
int  estimate 
)
static

◆ graphics_destroy()

static void graphics_destroy ( struct graphics_priv gr)
static

◆ graphics_qt_qpainter_new()

◆ image_free()

static void image_free ( struct graphics_priv gr,
struct graphics_image_priv priv 
)
static

References window::priv.

◆ image_new()

static struct graphics_image_priv* image_new ( struct graphics_priv gr,
struct graphics_image_methods meth,
char *  path,
int *  w,
int *  h,
struct point hot,
int  rotation 
)
static

◆ overlay_disable()

static void overlay_disable ( struct graphics_priv gr,
int  disable 
)
static

◆ overlay_new()

◆ overlay_rect()

static void overlay_rect ( struct graphics_priv parent,
struct graphics_priv overlay,
int  clean,
QRect *  r 
)
static

Navit, a modular navigation system. Copyright (C) 2005-2008 Navit Team

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

References graphics_priv::p, p, graphics_priv::pclean, graphics_priv::widget, and graphics_priv::wraparound.

Referenced by draw_mode(), and qt_qpainter_draw().

◆ plugin_init()

void plugin_init ( void  )

◆ qt_qpainter_draw()

◆ set_attr()

static int set_attr ( struct graphics_priv gr,
struct attr attr 
)
static

Variable Documentation

◆ argc

◆ argv

◆ font_methods

struct graphics_font_methods font_methods
static
Initial value:
= {
}
static void font_destroy(struct graphics_font_priv *font)
Definition: graphics_qt_qpainter.cpp:155

Referenced by font_new().

◆ gc_methods

struct graphics_gc_methods gc_methods
static
Initial value:
= {
}
static void gc_destroy(struct graphics_gc_priv *gc)
Definition: graphics_qt_qpainter.cpp:185
static void gc_set_foreground(struct graphics_gc_priv *gc, struct color *c)
Definition: graphics_qt_qpainter.cpp:213
static void gc_set_background(struct graphics_gc_priv *gc, struct color *c)
Definition: graphics_qt_qpainter.cpp:225
static void gc_set_dashes(struct graphics_gc_priv *gc, int w, int offset, unsigned char *dash_list, int n)
Definition: graphics_qt_qpainter.cpp:205
static void gc_set_linewidth(struct graphics_gc_priv *gc, int w)
Definition: graphics_qt_qpainter.cpp:196

Referenced by gc_new().

◆ graphics_methods

Initial value:
= {
NULL,
NULL,
NULL,
NULL,
}
static struct graphics_priv * overlay_new(struct graphics_priv *gr, struct graphics_methods *meth, struct point *p, int w, int h, int wraparound)
Definition: graphics_qt_qpainter.cpp:675
static void draw_drag(struct graphics_priv *gr, struct point *p)
Definition: graphics_qt_qpainter.cpp:441
static void overlay_disable(struct graphics_priv *gr, int disable)
Definition: graphics_qt_qpainter.cpp:608
static void draw_rectangle(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int w, int h)
Definition: graphics_qt_qpainter.cpp:342
static void draw_image(struct graphics_priv *gr, struct graphics_gc_priv *fg, struct point *p, struct graphics_image_priv *img)
Definition: graphics_qt_qpainter.cpp:436
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)
Definition: graphics_qt_qpainter.cpp:362
static void background_gc(struct graphics_priv *gr, struct graphics_gc_priv *gc)
Definition: graphics_qt_qpainter.cpp:459
static int set_attr(struct graphics_priv *gr, struct attr *attr)
Definition: graphics_qt_qpainter.cpp:617
static struct graphics_image_priv * image_new(struct graphics_priv *gr, struct graphics_image_methods *meth, char *path, int *w, int *h, struct point *hot, int rotation)
Definition: graphics_qt_qpainter.cpp:259
static void draw_lines(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)
Definition: graphics_qt_qpainter.cpp:311
static void get_text_bbox(struct graphics_priv *gr, struct graphics_font_priv *font, char *text, int dx, int dy, struct point *ret, int estimate)
Definition: graphics_qt_qpainter.cpp:586
static void draw_mode(struct graphics_priv *gr, enum draw_mode_num mode)
Definition: graphics_qt_qpainter.cpp:473
static void * get_data(struct graphics_priv *this_, const char *type)
Definition: graphics_qt_qpainter.cpp:543
static void draw_polygon(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)
Definition: graphics_qt_qpainter.cpp:326
static void image_free(struct graphics_priv *gr, struct graphics_image_priv *priv)
Definition: graphics_qt_qpainter.cpp:581
static struct graphics_gc_priv * gc_new(struct graphics_priv *gr, struct graphics_gc_methods *meth)
Definition: graphics_qt_qpainter.cpp:246
static void draw_circle(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int r)
Definition: graphics_qt_qpainter.cpp:352
static struct graphics_font_priv * font_new(struct graphics_priv *gr, struct graphics_font_methods *meth, char *fontfamily, int size, int flags)
Definition: graphics_qt_qpainter.cpp:172
static void graphics_destroy(struct graphics_priv *gr)
Definition: graphics_qt_qpainter.cpp:142

Referenced by graphics_qt_qpainter_new(), and overlay_new().