navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
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

static void background_gc ( struct graphics_priv gr,
struct graphics_gc_priv gc 
)
static
static void disable_suspend ( struct window win)
static

References graphics_priv::app, and window::priv.

Referenced by get_data().

static void draw_circle ( struct graphics_priv gr,
struct graphics_gc_priv gc,
struct point p,
int  r 
)
static
static void draw_drag ( struct graphics_priv gr,
struct point p 
)
static
static void draw_image ( struct graphics_priv gr,
struct graphics_gc_priv fg,
struct point p,
struct graphics_image_priv img 
)
static
static void draw_lines ( struct graphics_priv gr,
struct graphics_gc_priv gc,
struct point p,
int  count 
)
static
static void draw_polygon ( struct graphics_priv gr,
struct graphics_gc_priv gc,
struct point p,
int  count 
)
static
static void draw_rectangle ( struct graphics_priv gr,
struct graphics_gc_priv gc,
struct point p,
int  w,
int  h 
)
static
static void font_destroy ( struct graphics_font_priv font)
static
static struct graphics_font_priv* font_new ( struct graphics_priv gr,
struct graphics_font_methods meth,
char *  fontfamily,
int  size,
int  flags 
)
static
static void gc_destroy ( struct graphics_gc_priv gc)
static
static struct graphics_gc_priv* gc_new ( struct graphics_priv gr,
struct graphics_gc_methods meth 
)
static
static void gc_set_background ( struct graphics_gc_priv gc,
struct color c 
)
static
static void gc_set_dashes ( struct graphics_gc_priv gc,
int  w,
int  offset,
unsigned char *  dash_list,
int  n 
)
static
static void gc_set_foreground ( struct graphics_gc_priv gc,
struct color c 
)
static
static void gc_set_linewidth ( struct graphics_gc_priv gc,
int  w 
)
static

References graphics_gc_priv::pen.

static void* get_data ( struct graphics_priv this_,
const char *  type 
)
static
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
static void graphics_destroy ( struct graphics_priv gr)
static
static void image_free ( struct graphics_priv gr,
struct graphics_image_priv priv 
)
static
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
static void overlay_disable ( struct graphics_priv gr,
int  disable 
)
static
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, graphics_priv::pclean, graphics_priv::widget, graphics_priv::wraparound, point::x, and point::y.

Referenced by draw_mode(), and qt_qpainter_draw().

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

Variable Documentation

char* argv[] ={NULL,NULL,NULL}
static
struct graphics_font_methods font_methods
static
Initial value:
= {
}
static void font_destroy(struct graphics_font_priv *font)
Definition: graphics_qt_qpainter.cpp:160

Referenced by font_new().

struct graphics_gc_methods gc_methods
static
Initial value:
= {
}
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:214
static void gc_destroy(struct graphics_gc_priv *gc)
Definition: graphics_qt_qpainter.cpp:192
static void gc_set_background(struct graphics_gc_priv *gc, struct color *c)
Definition: graphics_qt_qpainter.cpp:236
static void gc_set_foreground(struct graphics_gc_priv *gc, struct color *c)
Definition: graphics_qt_qpainter.cpp:223
static void gc_set_linewidth(struct graphics_gc_priv *gc, int w)
Definition: graphics_qt_qpainter.cpp:204

Referenced by gc_new().

Initial value:
= {
NULL,
NULL,
NULL,
NULL,
}
static void draw_mode(struct graphics_priv *gr, enum draw_mode_num mode)
Definition: graphics_qt_qpainter.cpp:497
static void * get_data(struct graphics_priv *this_, const char *type)
Definition: graphics_qt_qpainter.cpp:570
static int set_attr(struct graphics_priv *gr, struct attr *attr)
Definition: graphics_qt_qpainter.cpp:649
static void draw_drag(struct graphics_priv *gr, struct point *p)
Definition: graphics_qt_qpainter.cpp:463
static struct graphics_gc_priv * gc_new(struct graphics_priv *gr, struct graphics_gc_methods *meth)
Definition: graphics_qt_qpainter.cpp:258
static void image_free(struct graphics_priv *gr, struct graphics_image_priv *priv)
Definition: graphics_qt_qpainter.cpp:610
static void overlay_disable(struct graphics_priv *gr, int disable)
Definition: graphics_qt_qpainter.cpp:639
static void draw_polygon(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)
Definition: graphics_qt_qpainter.cpp:343
static void draw_circle(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int r)
Definition: graphics_qt_qpainter.cpp:371
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:360
static void draw_lines(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int count)
Definition: graphics_qt_qpainter.cpp:327
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:383
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:457
static void background_gc(struct graphics_priv *gr, struct graphics_gc_priv *gc)
Definition: graphics_qt_qpainter.cpp:482
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:272
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:617
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:708
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:179
static void graphics_destroy(struct graphics_priv *gr)
Definition: graphics_qt_qpainter.cpp:146

Referenced by graphics_qt_qpainter_new(), and overlay_new().