]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikwaypoint.h
Optimize: Calculate associated icon of a waypoint only on change.
[andy/viking.git] / src / vikwaypoint.h
index e8fb445b64bd97822e8537138c6e83944028a937..8f8a53afcf8b965ecd43182384c8788f29f153b1 100644 (file)
@@ -24,6 +24,9 @@
 
 #include "vikcoord.h"
 
+#include <gdk-pixbuf/gdk-pixdata.h>
+
+G_BEGIN_DECLS
 /* todo important: put these in their own header file, maybe.probably also rename */
 
 #define VIK_WAYPOINT(x) ((VikWaypoint *)(x))
@@ -44,6 +47,8 @@ struct _VikWaypoint {
   guint8 image_width;
   guint8 image_height;
   gchar *symbol;
+  // Only for GUI display
+  GdkPixbuf *symbol_pixbuf;
 };
 
 VikWaypoint *vik_waypoint_new();
@@ -58,4 +63,6 @@ void vik_waypoint_set_comment_no_copy(VikWaypoint *wp, gchar *comment);
 void vik_waypoint_marshall ( VikWaypoint *wp, guint8 **data, guint *len);
 VikWaypoint *vik_waypoint_unmarshall (guint8 *data, guint datalen);
 
+G_END_DECLS
+
 #endif