blob: 2f19390c41f7fc519bcdfe74fdc1fb3911628cdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#ifndef __graphics_qt_h
#define __graphics_qt_h
#include <glib.h>
#include <QApplication>
#include <QPixmap>
#include <QPainter>
#include <QPen>
#include <QBrush>
#include "QNavitWidget.h"
#ifndef QT_QPAINTER_USE_FREETYPE
#define QT_QPAINTER_USE_FREETYPE 1
#endif
#ifndef SAILFISH_OS
#define SAILFISH_OS 1
#endif
#ifdef QT_QPAINTER_USE_FREETYPE
#include "navit/font/freetype/font_freetype.h"
#endif
struct graphics_gc_priv;
struct graphics_priv;
struct graphics_priv {
QNavitWidget * widget;
QPixmap * pixmap;
QPainter * painter;
int use_count;
struct graphics_gc_priv * background_graphics_gc_priv;
#ifdef QT_QPAINTER_USE_FREETYPE
struct font_priv * (*font_freetype_new)(void *meth);
struct font_freetype_methods freetype_methods;
#endif
#ifdef SAILFISH_OS
struct callback *display_on_cb;
struct event_timeout *display_on_ev;
#endif
GHashTable *overlays;
struct graphics_priv * parent;
bool root;
int argc;
char * argv[4];
};
struct graphics_gc_priv {
struct graphics_priv * graphics_priv;
QPen * pen;
QBrush * brush;
};
/* central exported application info */
extern QApplication * navit_app;
/* navit callback list */
extern struct callback_list* callbacks;
void
resize_callback(int w, int h);
#endif
|