summaryrefslogtreecommitdiff
path: root/navit/layout.h
diff options
context:
space:
mode:
authorseralph <seralph@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-10-14 12:05:48 +0000
committerseralph <seralph@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-10-14 12:05:48 +0000
commitd5310034de132ebbc37e97969266e9732858a8dd (patch)
treef90804e754f65f2d06cebe78302339123dd3161d /navit/layout.h
parent3dee96744c8684f9159bc0037c7861d686db75bd (diff)
downloadnavit-d5310034de132ebbc37e97969266e9732858a8dd.tar.gz
Add:Core:Add the possibility to define cursors in layout
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2667 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/layout.h')
-rw-r--r--navit/layout.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/navit/layout.h b/navit/layout.h
index 887c7649b..1b2f1c09d 100644
--- a/navit/layout.h
+++ b/navit/layout.h
@@ -1,6 +1,6 @@
/**
* Navit, a modular navigation system.
- * Copyright (C) 2005-2008 Navit Team
+ * Copyright (C) 2005-2009 Navit Team
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License
@@ -63,11 +63,23 @@ struct itemgra {
struct layer { char *name; int details; GList *itemgras; };
-struct layout { char *name; char *font; struct color color; GList *layers; int order_delta; };
+struct cursor {
+ struct attr **attrs;
+ struct range *sequence_range;
+ char *name;
+ int w,h;
+ int interval;
+};
+
+struct layout { char *name; char *font; struct color color; GList *layers; GList *cursors; int order_delta; };
/* prototypes */
struct layout *layout_new(struct attr *parent, struct attr **attrs);
int layout_add_attr(struct layout *layout, struct attr *attr);
+struct cursor *layout_get_cursor(struct layout *this_, char *name);
+struct cursor *cursor_new(struct attr *parent, struct attr **attrs);
+void cursor_destroy(struct cursor *this_);
+int cursor_add_attr(struct cursor *this_, struct attr *attr);
struct layer *layer_new(struct attr *parent, struct attr **attrs);
int layer_add_attr(struct layer *layer, struct attr *attr);
struct itemgra *itemgra_new(struct attr *parent, struct attr **attrs);