diff options
Diffstat (limited to 'navit/graphics/qt5/graphics_qt5.h')
-rw-r--r-- | navit/graphics/qt5/graphics_qt5.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/navit/graphics/qt5/graphics_qt5.h b/navit/graphics/qt5/graphics_qt5.h new file mode 100644 index 000000000..2f19390c4 --- /dev/null +++ b/navit/graphics/qt5/graphics_qt5.h @@ -0,0 +1,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 + |