/[zanavi_public1]/navit/navit/layout.h
ZANavi

Diff of /navit/navit/layout.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 26 Revision 27
1/**
2 * ZANavi, Zoff Android Navigation system.
3 * Copyright (C) 2011 Zoff <zoff@zoff.cc>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * version 2 as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19
1/** 20/**
2 * Navit, a modular navigation system. 21 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2009 Navit Team 22 * Copyright (C) 2005-2009 Navit Team
4 * 23 *
5 * This program is free software; you can redistribute it and/or 24 * This program is free software; you can redistribute it and/or
21#define NAVIT_LAYOUT_H 40#define NAVIT_LAYOUT_H
22 41
23#include "item.h" 42#include "item.h"
24#include "color.h" 43#include "color.h"
25 44
26struct element { 45struct element
46{
27 enum { element_point, element_polyline, element_polygon, element_circle, element_text, element_icon, element_image, element_arrows } type; 47 enum { element_point, element_polyline, element_polygon, element_circle, element_text, element_icon, element_image, element_arrows } type;
28 struct color color; 48 struct color color;
29 int text_size; 49 int text_size;
30 union { 50 union {
31 struct element_point { 51 struct element_point {
32 char stub; 52 char stub;
33 } point; 53 } point;
34 struct element_polyline { 54 struct element_polyline
55 {
35 int width; 56 int width;
36 int directed; 57 int directed;
37 int dash_num; 58 int dash_num;
38 int offset; 59 int offset;
39 unsigned char dash_table[4]; 60 //unsigned char dash_table[4];
61 short dash_table[4];
40 } polyline; 62 } polyline;
41 struct element_polygon { 63 struct element_polygon {
42 char stub; 64 char stub;
43 } polygon; 65 } polygon;
44 struct element_circle { 66 struct element_circle {

Legend:
Removed from v.26  
changed lines
  Added in v.27

   
Visit the ZANavi Wiki