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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>navit: map.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">navit
 <span id="projectnumber">0.5.3-trunk</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('map_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">map.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="map_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#ifndef NAVIT_MAP_H</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#define NAVIT_MAP_H</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> </div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">struct </span><a class="code" href="structmap__priv.html">map_priv</a>;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">struct </span><a class="code" href="structattr.html">attr</a>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="coord_8h.html">coord.h</a>"</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "<a class="code" href="point_8h.html">point.h</a>"</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="preprocessor">#include "<a class="code" href="layer_8h.html">layer.h</a>"</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="preprocessor">#include "<a class="code" href="debug_8h.html">debug.h</a>"</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="map_8h.html#a9e0c5c959b1a06f90c551c785337f817"> 42</a></span> <span class="preprocessor">#define WORLD_BOUNDINGBOX_MIN_X -20000000</span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="map_8h.html#abb70b58f472425b0bf52fbd375d26f90"> 43</a></span> <span class="preprocessor">#define WORLD_BOUNDINGBOX_MAX_X 20000000</span></div><div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="map_8h.html#a75bbd087b7538154ca4af73ea87ff7f5"> 44</a></span> <span class="preprocessor">#define WORLD_BOUNDINGBOX_MIN_Y -20000000</span></div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="map_8h.html#aa30d735c414cefebdc18c4562a6039a4"> 45</a></span> <span class="preprocessor">#define WORLD_BOUNDINGBOX_MAX_Y 20000000</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structmap__selection.html"> 57</a></span> <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> {</div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25"> 58</a></span>  <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> *<a class="code" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">next</a>; </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keyword">union </span>{</div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structmap__selection.html#ae00c4fb58fffa37688d33f864310a7b5"> 60</a></span>  <span class="keyword">struct </span><a class="code" href="structcoord__rect.html">coord_rect</a> <a class="code" href="structmap__selection.html#ae00c4fb58fffa37688d33f864310a7b5">c_rect</a>; </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structmap__selection.html#a44ee52f47e0e4fa0a0384985b0c0fa7d"> 61</a></span>  <span class="keyword">struct </span><a class="code" href="structpoint__rect.html">point_rect</a> <a class="code" href="structmap__selection.html#a44ee52f47e0e4fa0a0384985b0c0fa7d">p_rect</a>; </div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  } <a class="code" href="structmap__selection.html#a0f7fd983dfb06bf8aba44c212bc8a78f">u</a>;</div><div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structmap__selection.html#a1983d9d4a5df17d7a8d70fc7a7f1d9bf"> 63</a></span>  <span class="keywordtype">int</span> <a class="code" href="structmap__selection.html#a1983d9d4a5df17d7a8d70fc7a7f1d9bf">order</a>; </div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structmap__selection.html#a9b160a76565e6f18e27042d4f06feeaa"> 64</a></span>  <span class="keyword">struct </span><a class="code" href="structitem__range.html">item_range</a> <a class="code" href="structrange.html">range</a>; </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> };</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structmap__methods.html"> 79</a></span> <span class="keyword">struct </span><a class="code" href="structmap__methods.html">map_methods</a> {</div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structmap__methods.html#a22a82fd1148cb3a43d06178dfc8792e4"> 80</a></span>  <span class="keyword">enum</span> <a class="code" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> pro; </div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structmap__methods.html#af1b08a1287899114eba4a47645799da6"> 81</a></span>  <span class="keywordtype">char</span> *<a class="code" href="structmap__methods.html#af1b08a1287899114eba4a47645799da6">charset</a>; </div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structmap__methods.html#a76c56851b8df128e4f9ba9fc403245fd"> 82</a></span>  void (*<a class="code" href="map_8h.html#a06f624f20492c8e9e9f3c7eb43b70396">map_destroy</a>)(<span class="keyword">struct </span><a class="code" href="structmap__priv.html">map_priv</a> *priv); </div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structmap__methods.html#a13645adfaaee14b99a906e5301f1ccfd"> 83</a></span>  <span class="keyword">struct </span><a class="code" href="structmap__rect__priv.html">map_rect_priv</a> * (*map_rect_new)(<span class="keyword">struct </span><a class="code" href="structmap__priv.html">map_priv</a> *<a class="code" href="structmap.html">map</a>, <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> *sel); </div><div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="structmap__methods.html#abe8d868238ee2bb772b9d21cd2518ced"> 84</a></span>  void (*<a class="code" href="map_8h.html#afe7311d63f1e8a4a697634cf79329f7d">map_rect_destroy</a>)(<span class="keyword">struct </span><a class="code" href="structmap__rect__priv.html">map_rect_priv</a> *mr); </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structmap__methods.html#aedaa58c789c901f15fcca841262fdf13"> 85</a></span>  <span class="keyword">struct </span><a class="code" href="structitem.html">item</a> * (*map_rect_get_item)(<span class="keyword">struct </span><a class="code" href="structmap__rect__priv.html">map_rect_priv</a> *mr); </div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structmap__methods.html#a9f504c5e87c97b42f8c959abf466f2ef"> 86</a></span>  <span class="keyword">struct </span><a class="code" href="structitem.html">item</a> * (*map_rect_get_item_byid)(<span class="keyword">struct </span><a class="code" href="structmap__rect__priv.html">map_rect_priv</a> *mr, <span class="keywordtype">int</span> id_hi, <span class="keywordtype">int</span> id_lo); </div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structmap__methods.html#a2cbf733a76399b4ba3e38f24ad69a0dd"> 87</a></span>  <span class="keyword">struct </span><a class="code" href="structmap__search__priv.html">map_search_priv</a> *(*map_search_new)(<span class="keyword">struct </span><a class="code" href="structmap__priv.html">map_priv</a> *map, <span class="keyword">struct </span><a class="code" href="structitem.html">item</a> *<a class="code" href="osm_8c.html#a1b6910c37842678ed6084354f57f6260">item</a>, <span class="keyword">struct </span><a class="code" href="structattr.html">attr</a> *search, <span class="keywordtype">int</span> partial); </div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structmap__methods.html#ab50739cba039a5510f24ad301d54acb1"> 88</a></span>  void (*<a class="code" href="map_8h.html#a17363cc27a950b21d4a10c1e4977f750">map_search_destroy</a>)(<span class="keyword">struct </span><a class="code" href="structmap__search__priv.html">map_search_priv</a> *<a class="code" href="structmap__search__priv.html#a0830aa2ad4e811208e7a21f0950f95e6">ms</a>); </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structmap__methods.html#a09f1a32f9c981f83fdf30532be560772"> 89</a></span>  <span class="keyword">struct </span>item * (*map_search_get_item)(<span class="keyword">struct </span><a class="code" href="structmap__search__priv.html">map_search_priv</a> *<a class="code" href="structmap__search__priv.html#a0830aa2ad4e811208e7a21f0950f95e6">ms</a>); </div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structmap__methods.html#a6edbe52ef7e313dffb657df009344bdd"> 90</a></span>  <span class="keyword">struct </span>item * (*map_rect_create_item)(<span class="keyword">struct </span><a class="code" href="structmap__rect__priv.html">map_rect_priv</a> *mr, <span class="keyword">enum</span> <a class="code" href="item_8h.html#a2679318a14061852e50df3c6e4e42f62">item_type</a> <a class="code" href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a>); </div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structmap__methods.html#afc7aa463b2f4ec48d9366ca794b49903"> 91</a></span>  int (*<a class="code" href="map_8h.html#aea4bb45171274a8b6bd4de3d33606f35">map_get_attr</a>)(<span class="keyword">struct </span><a class="code" href="structmap__priv.html">map_priv</a> *priv, <span class="keyword">enum</span> <a class="code" href="attr_8h.html#a9a9ab3c12bda86add06f89976f36f98c">attr_type</a> <a class="code" href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a>, <span class="keyword">struct </span><a class="code" href="structattr.html">attr</a> *<a class="code" href="structattr.html">attr</a>); </div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="structmap__methods.html#af882e201643dee76188aeb53b449ea43"> 92</a></span>  int (*<a class="code" href="map_8h.html#a6a56a78da425713d4fe965e724d9e09e">map_set_attr</a>)(<span class="keyword">struct </span><a class="code" href="structmap__priv.html">map_priv</a> *priv, <span class="keyword">struct </span><a class="code" href="structattr.html">attr</a> *<a class="code" href="structattr.html">attr</a>); </div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> };</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span></div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="map_8h.html#a3ccfd220166d9f6057ac5b5c56471ec0"> 109</a></span> <a class="code" href="map_8h.html#a3ccfd220166d9f6057ac5b5c56471ec0">map_selection_contains_point</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel, <span class="keyword">struct</span> <a class="code" href="structcoord.html">coord</a> *<a class="code" href="popup_8c.html#aafe71b070668214be9b4b4849985dc6b">c</a>)</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> *curr=sel;</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <span class="keywordflow">while</span> (curr) {</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">struct </span><a class="code" href="structcoord__rect.html">coord_rect</a> *r=&curr-><a class="code" href="structmap__selection.html#a0f7fd983dfb06bf8aba44c212bc8a78f">u</a>.<a class="code" href="structmap__selection.html#ae00c4fb58fffa37688d33f864310a7b5">c_rect</a>;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keywordflow">if</span> (c-><a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> >= r-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> && c-><a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> <= r-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> &&</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  c-><a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> <= r-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> && c-><a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> >= r-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>)</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  curr=curr-><a class="code" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">next</a>;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  }</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">return</span> sel ? 0:1;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> }</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span></div><div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="map_8h.html#a93557370977ccde9812d10e2392b3521"> 133</a></span> <a class="code" href="map_8h.html#a93557370977ccde9812d10e2392b3521">map_selection_contains_polyline</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel, <span class="keyword">struct</span> <a class="code" href="structcoord.html">coord</a> *<a class="code" href="popup_8c.html#aafe71b070668214be9b4b4849985dc6b">c</a>, <span class="keywordtype">int</span> count)</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span> {</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordtype">int</span> i,x_mi,x_ma,y_mi,y_ma;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> *curr;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">if</span> (! sel)</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <span class="keywordflow">for</span> (i = 0 ; i < count-1 ; i++) {</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  x_mi=c[i].<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keywordflow">if</span> (c[i+1].x < x_mi)</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  x_mi=c[i+1].<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  x_ma=c[i].<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>;</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keywordflow">if</span> (c[i+1].x > x_ma)</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  x_ma=c[i+1].<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>;</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  y_mi=c[i].<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>;</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keywordflow">if</span> (c[i+1].y < y_mi)</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  y_mi=c[i+1].<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>;</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  y_ma=c[i].<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  <span class="keywordflow">if</span> (c[i+1].y > y_ma)</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  y_ma=c[i+1].<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  curr=sel;</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordflow">while</span> (curr) {</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keyword">struct </span><a class="code" href="structcoord__rect.html">coord_rect</a> *sr=&curr-><a class="code" href="structmap__selection.html#a0f7fd983dfb06bf8aba44c212bc8a78f">u</a>.<a class="code" href="structmap__selection.html#ae00c4fb58fffa37688d33f864310a7b5">c_rect</a>;</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordflow">if</span> (x_mi <= sr-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> && x_ma >= sr-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> &&</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  y_ma >= sr-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> && y_mi <= sr-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>)</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  curr=curr-><a class="code" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">next</a>;</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  }</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  }</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> }</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span></div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="map_8h.html#a32a7b56771f57d4da0e35ce243cfda21"> 175</a></span> <a class="code" href="map_8h.html#a32a7b56771f57d4da0e35ce243cfda21">map_selection_contains_rect</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel, <span class="keyword">struct</span> <a class="code" href="structcoord__rect.html">coord_rect</a> *r)</div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> {</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> *curr;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <a class="code" href="debug_8h.html#aa1ea27a449d096a072c270f9276a8f9f">dbg_assert</a>(r-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> <= r-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="debug_8h.html#aa1ea27a449d096a072c270f9276a8f9f">dbg_assert</a>(r-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> >= r-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>);</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keywordflow">if</span> (! sel)</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>  curr=sel;</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">while</span> (curr) {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>  <span class="keyword">struct </span><a class="code" href="structcoord__rect.html">coord_rect</a> *sr=&curr-><a class="code" href="structmap__selection.html#a0f7fd983dfb06bf8aba44c212bc8a78f">u</a>.<a class="code" href="structmap__selection.html#ae00c4fb58fffa37688d33f864310a7b5">c_rect</a>;</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <a class="code" href="debug_8h.html#aa1ea27a449d096a072c270f9276a8f9f">dbg_assert</a>(sr-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> <= sr-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>);</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  <a class="code" href="debug_8h.html#aa1ea27a449d096a072c270f9276a8f9f">dbg_assert</a>(sr-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> >= sr-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>);</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordflow">if</span> (r-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> <= sr-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> && r-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> >= sr-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a> &&</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  r-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> >= sr-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> && r-><a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a> <= sr-><a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>)</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  curr=curr-><a class="code" href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">next</a>;</div><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  }</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> }</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keywordtype">int</span></div><div class="line"><a name="l00209"></a><span class="lineno"><a class="line" href="map_8h.html#ab246ef55459cb22fa2665b8d7c52af65"> 209</a></span> <a class="code" href="map_8h.html#ab246ef55459cb22fa2665b8d7c52af65">map_selection_contains_polygon</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel, <span class="keyword">struct</span> <a class="code" href="structcoord.html">coord</a> *<a class="code" href="popup_8c.html#aafe71b070668214be9b4b4849985dc6b">c</a>, <span class="keywordtype">int</span> count)</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> {</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <span class="keyword">struct </span><a class="code" href="structcoord__rect.html">coord_rect</a> r;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordtype">int</span> i;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">if</span> (! sel)</div><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <span class="keywordflow">if</span> (! count)</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  r.<a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>=c[0];</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  r.<a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>=c[0];</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <span class="keywordflow">for</span> (i = 1 ; i < count ; i++) {</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">if</span> (c[i].x < r.<a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>)</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  r.<a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>=c[i].<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  <span class="keywordflow">if</span> (c[i].x > r.<a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>)</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  r.<a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>=c[i].<a class="code" href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">x</a>;</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">if</span> (c[i].y < r.<a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>)</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  r.<a class="code" href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">rl</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>=c[i].<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>;</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span> (c[i].y > r.<a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>)</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  r.<a class="code" href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">lu</a>.<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>=c[i].<a class="code" href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">y</a>;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  }</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">return</span> <a class="code" href="map_8h.html#a32a7b56771f57d4da0e35ce243cfda21">map_selection_contains_rect</a>(sel, &r);</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span> }</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> <span class="comment">/* prototypes */</span></div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> <span class="keyword">enum</span> <a class="code" href="attr_8h.html#a9a9ab3c12bda86add06f89976f36f98c">attr_type</a>;</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="keyword">enum</span> <a class="code" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a>;</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="keyword">struct </span><a class="code" href="structattr.html">attr</a>;</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> <span class="keyword">struct </span><a class="code" href="structattr__iter.html">attr_iter</a>;</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> <span class="keyword">struct </span><a class="code" href="structcallback.html">callback</a>;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> <span class="keyword">struct </span><a class="code" href="structitem.html">item</a>;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span> <span class="keyword">struct </span><a class="code" href="structmap.html">map</a>;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> <span class="keyword">struct </span><a class="code" href="structmap__priv.html">map_priv</a>;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> <span class="keyword">struct </span><a class="code" href="structmap__rect.html">map_rect</a>;</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span> <span class="keyword">struct </span><a class="code" href="structmap__search.html">map_search</a>;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a>;</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span> <span class="keyword">struct </span><a class="code" href="structpcoord.html">pcoord</a>;</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> <span class="keyword">struct </span><a class="code" href="structmap.html">map</a> *<a class="code" href="map_8h.html#a9a8864bcc7e1f687fe52c38b36bcad63">map_new</a>(<span class="keyword">struct</span> <a class="code" href="structattr.html">attr</a> *<a class="code" href="structparent.html">parent</a>, <span class="keyword">struct</span> <a class="code" href="structattr.html">attr</a> **attrs);</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> <span class="keyword">struct </span><a class="code" href="structmap.html">map</a> *<a class="code" href="map_8h.html#aa51067d7bfb0baa6a4d874099665bc7c">map_ref</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a>* m);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a0509d13a34059e444149286053bd8136">map_unref</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a>* m);</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span> <span class="keywordtype">int</span> <a class="code" href="map_8h.html#aea4bb45171274a8b6bd4de3d33606f35">map_get_attr</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_, <span class="keyword">enum</span> <a class="code" href="attr_8h.html#a9a9ab3c12bda86add06f89976f36f98c">attr_type</a> <a class="code" href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a>, <span class="keyword">struct</span> <a class="code" href="structattr.html">attr</a> *<a class="code" href="structattr.html">attr</a>, <span class="keyword">struct</span> <a class="code" href="structattr__iter.html">attr_iter</a> *iter);</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> <span class="keywordtype">int</span> <a class="code" href="map_8h.html#a6a56a78da425713d4fe965e724d9e09e">map_set_attr</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_, <span class="keyword">struct</span> attr *attr);</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a878e29885a9aa78e417e56354dc64845">map_add_callback</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_, <span class="keyword">struct</span> <a class="code" href="structcallback.html">callback</a> *cb);</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#af9f95fd57301452f5a93c0ffd75e13e0">map_remove_callback</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_, <span class="keyword">struct</span> <a class="code" href="structcallback.html">callback</a> *cb);</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> <span class="keywordtype">int</span> <a class="code" href="map_8h.html#adacb9c6f689c49cea9651adecef9dbdb">map_requires_conversion</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_);</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span> <span class="keywordtype">char</span> *<a class="code" href="map_8h.html#a7a181e682ec4a9174897686bd91a89b9">map_convert_string_tmp</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_, <span class="keywordtype">char</span> *str);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> <span class="keywordtype">char</span> *<a class="code" href="map_8h.html#af44c00a5c0938889e420cd8c5b87a92a">map_convert_string</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_, <span class="keywordtype">char</span> *str);</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="keywordtype">char</span> *<a class="code" href="map_8h.html#a23f07c7eafbdd5994dfdb8038d356516">map_convert_dup</a>(<span class="keywordtype">char</span> *str);</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a4615d67b2a27e13f2341f278e9631c54">map_convert_free</a>(<span class="keywordtype">char</span> *str);</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="keyword">enum</span> <a class="code" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> <a class="code" href="map_8h.html#a956c6e8398f832e31fe90634fa982dbf">map_projection</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_);</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a1eb8e44290e34baa9b178624fc32beec">map_set_projection</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *this_, <span class="keyword">enum</span> <a class="code" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> pro);</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a06f624f20492c8e9e9f3c7eb43b70396">map_destroy</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *m);</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="keyword">struct </span><a class="code" href="structmap__rect.html">map_rect</a> *<a class="code" href="map_8h.html#a52e6ae5ec3beaec49ce12ce603d7d72a">map_rect_new</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *m, <span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel);</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="keyword">struct </span><a class="code" href="structitem.html">item</a> *<a class="code" href="map_8h.html#ae025c855207536977afd84d39b316e9c">map_rect_get_item</a>(<span class="keyword">struct</span> <a class="code" href="structmap__rect.html">map_rect</a> *mr);</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> <span class="keyword">struct </span><a class="code" href="structitem.html">item</a> *<a class="code" href="map_8h.html#a9e27d0888db14bf9b88727ead943eaf6">map_rect_get_item_byid</a>(<span class="keyword">struct</span> <a class="code" href="structmap__rect.html">map_rect</a> *mr, <span class="keywordtype">int</span> <a class="code" href="structitem.html#a193c3e2ec0076325a4f3139f9d33e06e">id_hi</a>, <span class="keywordtype">int</span> <a class="code" href="structitem.html#a8be73452bc1e39e9054361ab579c9dc1">id_lo</a>);</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> <span class="keyword">struct </span><a class="code" href="structitem.html">item</a> *<a class="code" href="map_8h.html#a62e56af95eabfab1632e6888676a8127">map_rect_create_item</a>(<span class="keyword">struct</span> <a class="code" href="structmap__rect.html">map_rect</a> *mr, <span class="keyword">enum</span> <a class="code" href="item_8h.html#a2679318a14061852e50df3c6e4e42f62">item_type</a> type_);</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#afe7311d63f1e8a4a697634cf79329f7d">map_rect_destroy</a>(<span class="keyword">struct</span> <a class="code" href="structmap__rect.html">map_rect</a> *mr);</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span> <span class="keyword">struct </span><a class="code" href="structmap__search.html">map_search</a> *<a class="code" href="map_8h.html#a3192f982f537a0eb5cc0e32f306ead2d">map_search_new</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *m, <span class="keyword">struct</span> <a class="code" href="structitem.html">item</a> *<a class="code" href="structitem.html">item</a>, <span class="keyword">struct</span> attr *<a class="code" href="structmap__search.html#a67ba4b14a20caf5d46a9031fccc6cd97">search_attr</a>, <span class="keywordtype">int</span> partial);</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> <span class="keyword">struct </span>item *<a class="code" href="map_8h.html#a2a6f7023b430cc03af1a8d72e8f6a09b">map_search_get_item</a>(<span class="keyword">struct</span> <a class="code" href="structmap__search.html">map_search</a> *this_);</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a17363cc27a950b21d4a10c1e4977f750">map_search_destroy</a>(<span class="keyword">struct</span> <a class="code" href="structmap__search.html">map_search</a> *this_);</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> *<a class="code" href="map_8h.html#ac0160cd214565dad3584739d44fafed8">map_selection_rect_new</a>(<span class="keyword">struct</span> <a class="code" href="structpcoord.html">pcoord</a> *<a class="code" href="garmin__img_8c.html#a3bce700a88a243b80b791686799ae5f7">center</a>, <span class="keywordtype">int</span> distance, <span class="keywordtype">int</span> <a class="code" href="structmap__selection.html#a1983d9d4a5df17d7a8d70fc7a7f1d9bf">order</a>);</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span> <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> *<a class="code" href="map_8h.html#a95b6e2263b7e7aed66a4a5d8ce8028c8">map_selection_dup_pro</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel, <span class="keyword">enum</span> <a class="code" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> from, <span class="keyword">enum</span> <a class="code" href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a> to);</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> <span class="keyword">struct </span><a class="code" href="structmap__selection.html">map_selection</a> *<a class="code" href="map_8h.html#a41d391414ab9d50fd2e10a072a7e24fa">map_selection_dup</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel);</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a51455e36692349b9fecdd677a40c6c4f">map_selection_destroy</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="keywordtype">int</span> <a class="code" href="map_8h.html#ae555f508f81a2cab83100a675ddeb131">map_selection_contains_item_rect</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel, <span class="keyword">struct</span> item *item);</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> <span class="keywordtype">int</span> <a class="code" href="map_8h.html#a8ea9fcf03c34c4caf035f6597af9921f">map_selection_contains_item_range</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel, <span class="keywordtype">int</span> follow, <span class="keyword">struct</span> <a class="code" href="structitem__range.html">item_range</a> *range, <span class="keywordtype">int</span> count);</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> <span class="keywordtype">int</span> <a class="code" href="map_8h.html#ae3e1e05fd13705105196919d3060ac5f">map_selection_contains_item</a>(<span class="keyword">struct</span> <a class="code" href="structmap__selection.html">map_selection</a> *sel, <span class="keywordtype">int</span> follow, <span class="keyword">enum</span> <a class="code" href="item_8h.html#a2679318a14061852e50df3c6e4e42f62">item_type</a> type);</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> <span class="keywordtype">int</span> <a class="code" href="map_8h.html#a8337c095972c7c8f69679577668d6b5b">map_priv_is</a>(<span class="keyword">struct</span> <a class="code" href="structmap.html">map</a> *<a class="code" href="structmap.html">map</a>, <span class="keyword">struct</span> <a class="code" href="structmap__priv.html">map_priv</a> *priv);</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a8aa5e993e64e51a2d90b3be0251412cc">map_dump_filedesc</a>(<span class="keyword">struct</span> map *map, FILE *out);</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#ae69d4a7761530edd56139460233d26c6">map_dump_file</a>(<span class="keyword">struct</span> map *map, <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structfile.html">file</a>);</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#af254bddcffd897fa184fc240eebb7edd">map_dump</a>(<span class="keyword">struct</span> map *map);</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> <span class="keywordtype">void</span> <a class="code" href="map_8h.html#a097fb9b2b756439aaae4bcf1a83fdc88">map_destroy_do</a>(<span class="keyword">struct</span> map *m);</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> <span class="keyword">struct </span><a class="code" href="map_2mg_2map_8c.html#a08e9aa284c02e50708463107a233c4cd">maps</a> * <a class="code" href="map_8h.html#aac1b1796640454998c50c59c45350a87">maps_new</a>(<span class="keyword">struct</span> attr *parent, <span class="keyword">struct</span> attr **attrs);</div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span> <span class="comment">/* end of prototypes */</span></div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> <span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span> }</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="map_8h_html_a9e27d0888db14bf9b88727ead943eaf6"><div class="ttname"><a href="map_8h.html#a9e27d0888db14bf9b88727ead943eaf6">map_rect_get_item_byid</a></div><div class="ttdeci">struct item * map_rect_get_item_byid(struct map_rect *mr, int id_hi, int id_lo)</div><div class="ttdoc">Returns the item specified by the ID. </div><div class="ttdef"><b>Definition:</b> map.c:355</div></div>
<div class="ttc" id="map_8h_html_a62e56af95eabfab1632e6888676a8127"><div class="ttname"><a href="map_8h.html#a62e56af95eabfab1632e6888676a8127">map_rect_create_item</a></div><div class="ttdeci">struct item * map_rect_create_item(struct map_rect *mr, enum item_type type_)</div><div class="ttdef"><b>Definition:</b> map.c:682</div></div>
<div class="ttc" id="map_8h_html_a8337c095972c7c8f69679577668d6b5b"><div class="ttname"><a href="map_8h.html#a8337c095972c7c8f69679577668d6b5b">map_priv_is</a></div><div class="ttdeci">int map_priv_is(struct map *map, struct map_priv *priv)</div><div class="ttdoc">Checks if a pointer points to the private data of a map. </div><div class="ttdef"><b>Definition:</b> map.c:654</div></div>
<div class="ttc" id="attr_8h_html_a9a9ab3c12bda86add06f89976f36f98c"><div class="ttname"><a href="attr_8h.html#a9a9ab3c12bda86add06f89976f36f98c">attr_type</a></div><div class="ttdeci">attr_type</div><div class="ttdef"><b>Definition:</b> attr.h:34</div></div>
<div class="ttc" id="map_2mg_2map_8c_html_a08e9aa284c02e50708463107a233c4cd"><div class="ttname"><a href="map_2mg_2map_8c.html#a08e9aa284c02e50708463107a233c4cd">maps</a></div><div class="ttdeci">GList * maps</div><div class="ttdef"><b>Definition:</b> map.c:29</div></div>
<div class="ttc" id="structmap__search__priv_html"><div class="ttname"><a href="structmap__search__priv.html">map_search_priv</a></div><div class="ttdoc">Represents a search on a map. This struct represents a search on a map; it is created when starting a...</div><div class="ttdef"><b>Definition:</b> binfile.c:164</div></div>
<div class="ttc" id="map_8h_html_afe7311d63f1e8a4a697634cf79329f7d"><div class="ttname"><a href="map_8h.html#afe7311d63f1e8a4a697634cf79329f7d">map_rect_destroy</a></div><div class="ttdeci">void map_rect_destroy(struct map_rect *mr)</div><div class="ttdoc">Destroys a map rect. </div><div class="ttdef"><b>Definition:</b> map.c:371</div></div>
<div class="ttc" id="map_8h_html_a1eb8e44290e34baa9b178624fc32beec"><div class="ttname"><a href="map_8h.html#a1eb8e44290e34baa9b178624fc32beec">map_set_projection</a></div><div class="ttdeci">void map_set_projection(struct map *this_, enum projection pro)</div><div class="ttdoc">Sets the projection of a map. </div><div class="ttdef"><b>Definition:</b> map.c:268</div></div>
<div class="ttc" id="layer_8h_html"><div class="ttname"><a href="layer_8h.html">layer.h</a></div></div>
<div class="ttc" id="structparent_html"><div class="ttname"><a href="structparent.html">parent</a></div><div class="ttdef"><b>Definition:</b> gpx2navit_txt.h:51</div></div>
<div class="ttc" id="structcoord_html_a2b099692d87f98e4844b615136ca37fb"><div class="ttname"><a href="structcoord.html#a2b099692d87f98e4844b615136ca37fb">coord::y</a></div><div class="ttdeci">int y</div><div class="ttdef"><b>Definition:</b> coord.h:36</div></div>
<div class="ttc" id="map_8h_html_ae3e1e05fd13705105196919d3060ac5f"><div class="ttname"><a href="map_8h.html#ae3e1e05fd13705105196919d3060ac5f">map_selection_contains_item</a></div><div class="ttdeci">int map_selection_contains_item(struct map_selection *sel, int follow, enum item_type type)</div><div class="ttdoc">Checks if a selection contains a item. </div><div class="ttdef"><b>Definition:</b> map.c:632</div></div>
<div class="ttc" id="debug_8h_html"><div class="ttname"><a href="debug_8h.html">debug.h</a></div></div>
<div class="ttc" id="map_8h_html_a0509d13a34059e444149286053bd8136"><div class="ttname"><a href="map_8h.html#a0509d13a34059e444149286053bd8136">map_unref</a></div><div class="ttdeci">void map_unref(struct map *m)</div></div>
<div class="ttc" id="coord_8h_html"><div class="ttname"><a href="coord_8h.html">coord.h</a></div></div>
<div class="ttc" id="map_8h_html_a8ea9fcf03c34c4caf035f6597af9921f"><div class="ttname"><a href="map_8h.html#a8ea9fcf03c34c4caf035f6597af9921f">map_selection_contains_item_range</a></div><div class="ttdeci">int map_selection_contains_item_range(struct map_selection *sel, int follow, struct item_range *range, int count)</div><div class="ttdoc">Checks if a selection contains a item range. </div><div class="ttdef"><b>Definition:</b> map.c:606</div></div>
<div class="ttc" id="structmap__selection_html_ae00c4fb58fffa37688d33f864310a7b5"><div class="ttname"><a href="structmap__selection.html#ae00c4fb58fffa37688d33f864310a7b5">map_selection::c_rect</a></div><div class="ttdeci">struct coord_rect c_rect</div><div class="ttdef"><b>Definition:</b> map.h:60</div></div>
<div class="ttc" id="structitem_html"><div class="ttname"><a href="structitem.html">item</a></div><div class="ttdef"><b>Definition:</b> item.h:99</div></div>
<div class="ttc" id="map_8h_html_af44c00a5c0938889e420cd8c5b87a92a"><div class="ttname"><a href="map_8h.html#af44c00a5c0938889e420cd8c5b87a92a">map_convert_string</a></div><div class="ttdeci">char * map_convert_string(struct map *this_, char *str)</div><div class="ttdoc">Converts a string from a map. </div><div class="ttdef"><b>Definition:</b> map.c:230</div></div>
<div class="ttc" id="map_8h_html_ae69d4a7761530edd56139460233d26c6"><div class="ttname"><a href="map_8h.html#ae69d4a7761530edd56139460233d26c6">map_dump_file</a></div><div class="ttdeci">void map_dump_file(struct map *map, const char *file)</div><div class="ttdef"><b>Definition:</b> map.c:667</div></div>
<div class="ttc" id="map_8h_html_a9a8864bcc7e1f687fe52c38b36bcad63"><div class="ttname"><a href="map_8h.html#a9a8864bcc7e1f687fe52c38b36bcad63">map_new</a></div><div class="ttdeci">struct map * map_new(struct attr *parent, struct attr **attrs)</div><div class="ttdoc">Opens a new map. </div><div class="ttdef"><b>Definition:</b> map.c:92</div></div>
<div class="ttc" id="point_8h_html"><div class="ttname"><a href="point_8h.html">point.h</a></div></div>
<div class="ttc" id="map_8h_html_ae025c855207536977afd84d39b316e9c"><div class="ttname"><a href="map_8h.html#ae025c855207536977afd84d39b316e9c">map_rect_get_item</a></div><div class="ttdeci">struct item * map_rect_get_item(struct map_rect *mr)</div><div class="ttdoc">Gets the next item from a map rect. </div><div class="ttdef"><b>Definition:</b> map.c:327</div></div>
<div class="ttc" id="map_8h_html_aa51067d7bfb0baa6a4d874099665bc7c"><div class="ttname"><a href="map_8h.html#aa51067d7bfb0baa6a4d874099665bc7c">map_ref</a></div><div class="ttdeci">struct map * map_ref(struct map *m)</div></div>
<div class="ttc" id="structmap__selection_html_a0f7fd983dfb06bf8aba44c212bc8a78f"><div class="ttname"><a href="structmap__selection.html#a0f7fd983dfb06bf8aba44c212bc8a78f">map_selection::u</a></div><div class="ttdeci">union map_selection::@8 u</div></div>
<div class="ttc" id="item_8h_html_a2679318a14061852e50df3c6e4e42f62"><div class="ttname"><a href="item_8h.html#a2679318a14061852e50df3c6e4e42f62">item_type</a></div><div class="ttdeci">item_type</div><div class="ttdef"><b>Definition:</b> item.h:29</div></div>
<div class="ttc" id="map_8h_html_a878e29885a9aa78e417e56354dc64845"><div class="ttname"><a href="map_8h.html#a878e29885a9aa78e417e56354dc64845">map_add_callback</a></div><div class="ttdeci">void map_add_callback(struct map *this_, struct callback *cb)</div><div class="ttdoc">Registers a new callback for attribute-change. </div><div class="ttdef"><b>Definition:</b> map.c:171</div></div>
<div class="ttc" id="map_8h_html_a8aa5e993e64e51a2d90b3be0251412cc"><div class="ttname"><a href="map_8h.html#a8aa5e993e64e51a2d90b3be0251412cc">map_dump_filedesc</a></div><div class="ttdeci">void map_dump_filedesc(struct map *map, FILE *out)</div><div class="ttdef"><b>Definition:</b> map.c:658</div></div>
<div class="ttc" id="map_8h_html_a32a7b56771f57d4da0e35ce243cfda21"><div class="ttname"><a href="map_8h.html#a32a7b56771f57d4da0e35ce243cfda21">map_selection_contains_rect</a></div><div class="ttdeci">static int map_selection_contains_rect(struct map_selection *sel, struct coord_rect *r)</div><div class="ttdoc">Checks if a rectangle is within a map selection. </div><div class="ttdef"><b>Definition:</b> map.h:175</div></div>
<div class="ttc" id="map_8h_html_af254bddcffd897fa184fc240eebb7edd"><div class="ttname"><a href="map_8h.html#af254bddcffd897fa184fc240eebb7edd">map_dump</a></div><div class="ttdeci">void map_dump(struct map *map)</div><div class="ttdef"><b>Definition:</b> map.c:677</div></div>
<div class="ttc" id="popup_8c_html_aafe71b070668214be9b4b4849985dc6b"><div class="ttname"><a href="popup_8c.html#aafe71b070668214be9b4b4849985dc6b">c</a></div><div class="ttdeci">static struct pcoord c</div><div class="ttdef"><b>Definition:</b> popup.c:375</div></div>
<div class="ttc" id="structitem__range_html"><div class="ttname"><a href="structitem__range.html">item_range</a></div><div class="ttdef"><b>Definition:</b> item.h:108</div></div>
<div class="ttc" id="structcoord__rect_html_a8da493b41946d949510bada53c32667a"><div class="ttname"><a href="structcoord__rect.html#a8da493b41946d949510bada53c32667a">coord_rect::lu</a></div><div class="ttdeci">struct coord lu</div><div class="ttdef"><b>Definition:</b> coord.h:59</div></div>
<div class="ttc" id="map_8h_html_a6a56a78da425713d4fe965e724d9e09e"><div class="ttname"><a href="map_8h.html#a6a56a78da425713d4fe965e724d9e09e">map_set_attr</a></div><div class="ttdeci">int map_set_attr(struct map *this_, struct attr *attr)</div><div class="ttdoc">Sets an attribute of a map. </div><div class="ttdef"><b>Definition:</b> map.c:154</div></div>
<div class="ttc" id="structmap__priv_html"><div class="ttname"><a href="structmap__priv.html">map_priv</a></div><div class="ttdoc">Represents the map from a single binfile. </div><div class="ttdef"><b>Definition:</b> binfile.c:105</div></div>
<div class="ttc" id="map_8h_html_aac1b1796640454998c50c59c45350a87"><div class="ttname"><a href="map_8h.html#aac1b1796640454998c50c59c45350a87">maps_new</a></div><div class="ttdeci">struct maps * maps_new(struct attr *parent, struct attr **attrs)</div><div class="ttdef"><b>Definition:</b> maps.c:31</div></div>
<div class="ttc" id="structmap__rect__priv_html"><div class="ttname"><a href="structmap__rect__priv.html">map_rect_priv</a></div><div class="ttdoc">Implementation-specific map rect data. </div><div class="ttdef"><b>Definition:</b> binfile.c:137</div></div>
<div class="ttc" id="map_8h_html_a93557370977ccde9812d10e2392b3521"><div class="ttname"><a href="map_8h.html#a93557370977ccde9812d10e2392b3521">map_selection_contains_polyline</a></div><div class="ttdeci">static int map_selection_contains_polyline(struct map_selection *sel, struct coord *c, int count)</div><div class="ttdoc">Checks if a polyline is within a map selection. </div><div class="ttdef"><b>Definition:</b> map.h:133</div></div>
<div class="ttc" id="projection_8h_html_a380c9c985eef434d23f9a7b95a52cbc1"><div class="ttname"><a href="projection_8h.html#a380c9c985eef434d23f9a7b95a52cbc1">projection</a></div><div class="ttdeci">projection</div><div class="ttdef"><b>Definition:</b> projection.h:23</div></div>
<div class="ttc" id="garmin__img_8c_html_a3bce700a88a243b80b791686799ae5f7"><div class="ttname"><a href="garmin__img_8c.html#a3bce700a88a243b80b791686799ae5f7">center</a></div><div class="ttdeci">struct tcoord center</div><div class="ttdef"><b>Definition:</b> garmin_img.c:485</div></div>
<div class="ttc" id="structmap__selection_html_a1c83ff016741893133014d58cfc38e25"><div class="ttname"><a href="structmap__selection.html#a1c83ff016741893133014d58cfc38e25">map_selection::next</a></div><div class="ttdeci">struct map_selection * next</div><div class="ttdef"><b>Definition:</b> map.h:58</div></div>
<div class="ttc" id="structattr__iter_html"><div class="ttname"><a href="structattr__iter.html">attr_iter</a></div><div class="ttdef"><b>Definition:</b> config_.c:47</div></div>
<div class="ttc" id="map_8h_html_a95b6e2263b7e7aed66a4a5d8ce8028c8"><div class="ttname"><a href="map_8h.html#a95b6e2263b7e7aed66a4a5d8ce8028c8">map_selection_dup_pro</a></div><div class="ttdeci">struct map_selection * map_selection_dup_pro(struct map_selection *sel, enum projection from, enum projection to)</div><div class="ttdoc">Duplicates a map selection, transforming coordinates. </div><div class="ttdef"><b>Definition:</b> map.c:522</div></div>
<div class="ttc" id="map_8h_html_a52e6ae5ec3beaec49ce12ce603d7d72a"><div class="ttname"><a href="map_8h.html#a52e6ae5ec3beaec49ce12ce603d7d72a">map_rect_new</a></div><div class="ttdeci">struct map_rect * map_rect_new(struct map *m, struct map_selection *sel)</div><div class="ttdoc">Creates a new map rect. </div><div class="ttdef"><b>Definition:</b> map.c:300</div></div>
<div class="ttc" id="structmap__methods_html"><div class="ttname"><a href="structmap__methods.html">map_methods</a></div><div class="ttdoc">Holds all functions a map plugin has to implement to be usable. </div><div class="ttdef"><b>Definition:</b> map.h:79</div></div>
<div class="ttc" id="map_8h_html_a7a181e682ec4a9174897686bd91a89b9"><div class="ttname"><a href="map_8h.html#a7a181e682ec4a9174897686bd91a89b9">map_convert_string_tmp</a></div><div class="ttdeci">char * map_convert_string_tmp(struct map *this_, char *str)</div><div class="ttdoc">Converts a string from a map into a temporary allocated buffer. Conversion is not performed and origi...</div><div class="ttdef"><b>Definition:</b> map.c:209</div></div>
<div class="ttc" id="structmap__rect_html"><div class="ttname"><a href="structmap__rect.html">map_rect</a></div><div class="ttdoc">Describes a rectangular extract of a map. </div><div class="ttdef"><b>Definition:</b> map.c:72</div></div>
<div class="ttc" id="structitem_html_a8be73452bc1e39e9054361ab579c9dc1"><div class="ttname"><a href="structitem.html#a8be73452bc1e39e9054361ab579c9dc1">item::id_lo</a></div><div class="ttdeci">int id_lo</div><div class="ttdef"><b>Definition:</b> item.h:102</div></div>
<div class="ttc" id="map_8h_html_a06f624f20492c8e9e9f3c7eb43b70396"><div class="ttname"><a href="map_8h.html#a06f624f20492c8e9e9f3c7eb43b70396">map_destroy</a></div><div class="ttdeci">void map_destroy(struct map *m)</div><div class="ttdoc">Destroys an opened map. </div><div class="ttdef"><b>Definition:</b> map.c:278</div></div>
<div class="ttc" id="map_8h_html_a956c6e8398f832e31fe90634fa982dbf"><div class="ttname"><a href="map_8h.html#a956c6e8398f832e31fe90634fa982dbf">map_projection</a></div><div class="ttdeci">enum projection map_projection(struct map *this_)</div><div class="ttdoc">Returns the projection of a map. </div><div class="ttdef"><b>Definition:</b> map.c:258</div></div>
<div class="ttc" id="map_8h_html_a3ccfd220166d9f6057ac5b5c56471ec0"><div class="ttname"><a href="map_8h.html#a3ccfd220166d9f6057ac5b5c56471ec0">map_selection_contains_point</a></div><div class="ttdeci">static int map_selection_contains_point(struct map_selection *sel, struct coord *c)</div><div class="ttdoc">Checks if a coordinate is within a map selection. </div><div class="ttdef"><b>Definition:</b> map.h:109</div></div>
<div class="ttc" id="structrange_html"><div class="ttname"><a href="structrange.html">range</a></div><div class="ttdef"><b>Definition:</b> attr.h:153</div></div>
<div class="ttc" id="structattr_html"><div class="ttname"><a href="structattr.html">attr</a></div><div class="ttdef"><b>Definition:</b> attr.h:157</div></div>
<div class="ttc" id="osm_8c_html_a1b6910c37842678ed6084354f57f6260"><div class="ttname"><a href="osm_8c.html#a1b6910c37842678ed6084354f57f6260">item</a></div><div class="ttdeci">static struct item_bin item</div><div class="ttdef"><b>Definition:</b> osm.c:52</div></div>
<div class="ttc" id="structmap__selection_html"><div class="ttname"><a href="structmap__selection.html">map_selection</a></div><div class="ttdoc">Used to select data from a map. </div><div class="ttdef"><b>Definition:</b> map.h:57</div></div>
<div class="ttc" id="map_8h_html_ae555f508f81a2cab83100a675ddeb131"><div class="ttname"><a href="map_8h.html#ae555f508f81a2cab83100a675ddeb131">map_selection_contains_item_rect</a></div><div class="ttdeci">int map_selection_contains_item_rect(struct map_selection *sel, struct item *item)</div><div class="ttdoc">Checks if a selection contains a rectangle containing an item. </div><div class="ttdef"><b>Definition:</b> map.c:575</div></div>
<div class="ttc" id="structmap__selection_html_a44ee52f47e0e4fa0a0384985b0c0fa7d"><div class="ttname"><a href="structmap__selection.html#a44ee52f47e0e4fa0a0384985b0c0fa7d">map_selection::p_rect</a></div><div class="ttdeci">struct point_rect p_rect</div><div class="ttdef"><b>Definition:</b> map.h:61</div></div>
<div class="ttc" id="map_8h_html_ab246ef55459cb22fa2665b8d7c52af65"><div class="ttname"><a href="map_8h.html#ab246ef55459cb22fa2665b8d7c52af65">map_selection_contains_polygon</a></div><div class="ttdeci">static int map_selection_contains_polygon(struct map_selection *sel, struct coord *c, int count)</div><div class="ttdoc">Checks if a polygon is within a map selection. </div><div class="ttdef"><b>Definition:</b> map.h:209</div></div>
<div class="ttc" id="structcallback_html"><div class="ttname"><a href="structcallback.html">callback</a></div><div class="ttdef"><b>Definition:</b> callback.c:27</div></div>
<div class="ttc" id="structmap__search__priv_html_a0830aa2ad4e811208e7a21f0950f95e6"><div class="ttname"><a href="structmap__search__priv.html#a0830aa2ad4e811208e7a21f0950f95e6">map_search_priv::ms</a></div><div class="ttdeci">struct map_selection ms</div><div class="ttdef"><b>Definition:</b> binfile.c:170</div></div>
<div class="ttc" id="map_8h_html_a17363cc27a950b21d4a10c1e4977f750"><div class="ttname"><a href="map_8h.html#a17363cc27a950b21d4a10c1e4977f750">map_search_destroy</a></div><div class="ttdeci">void map_search_destroy(struct map_search *this_)</div><div class="ttdoc">Destroys a map search struct. </div><div class="ttdef"><b>Definition:</b> map.c:477</div></div>
<div class="ttc" id="map_8h_html_a41d391414ab9d50fd2e10a072a7e24fa"><div class="ttname"><a href="map_8h.html#a41d391414ab9d50fd2e10a072a7e24fa">map_selection_dup</a></div><div class="ttdeci">struct map_selection * map_selection_dup(struct map_selection *sel)</div><div class="ttdoc">Duplicates a map selection. </div><div class="ttdef"><b>Definition:</b> map.c:547</div></div>
<div class="ttc" id="map_8h_html_a3192f982f537a0eb5cc0e32f306ead2d"><div class="ttname"><a href="map_8h.html#a3192f982f537a0eb5cc0e32f306ead2d">map_search_new</a></div><div class="ttdeci">struct map_search * map_search_new(struct map *m, struct item *item, struct attr *search_attr, int partial)</div><div class="ttdoc">Starts a search on a map. </div><div class="ttdef"><b>Definition:</b> map.c:420</div></div>
<div class="ttc" id="map_8h_html_a097fb9b2b756439aaae4bcf1a83fdc88"><div class="ttname"><a href="map_8h.html#a097fb9b2b756439aaae4bcf1a83fdc88">map_destroy_do</a></div><div class="ttdeci">void map_destroy_do(struct map *m)</div></div>
<div class="ttc" id="structmap__selection_html_a1983d9d4a5df17d7a8d70fc7a7f1d9bf"><div class="ttname"><a href="structmap__selection.html#a1983d9d4a5df17d7a8d70fc7a7f1d9bf">map_selection::order</a></div><div class="ttdeci">int order</div><div class="ttdef"><b>Definition:</b> map.h:63</div></div>
<div class="ttc" id="structmap_html"><div class="ttname"><a href="structmap.html">map</a></div><div class="ttdoc">Holds information about a map. </div><div class="ttdef"><b>Definition:</b> map.c:60</div></div>
<div class="ttc" id="map_8h_html_ac0160cd214565dad3584739d44fafed8"><div class="ttname"><a href="map_8h.html#ac0160cd214565dad3584739d44fafed8">map_selection_rect_new</a></div><div class="ttdeci">struct map_selection * map_selection_rect_new(struct pcoord *center, int distance, int order)</div><div class="ttdoc">Creates a new rectangular map selection. </div><div class="ttdef"><b>Definition:</b> map.c:499</div></div>
<div class="ttc" id="structpoint__rect_html"><div class="ttname"><a href="structpoint__rect.html">point_rect</a></div><div class="ttdef"><b>Definition:</b> point.h:28</div></div>
<div class="ttc" id="map_8h_html_a51455e36692349b9fecdd677a40c6c4f"><div class="ttname"><a href="map_8h.html#a51455e36692349b9fecdd677a40c6c4f">map_selection_destroy</a></div><div class="ttdeci">void map_selection_destroy(struct map_selection *sel)</div><div class="ttdoc">Destroys a map selection. </div><div class="ttdef"><b>Definition:</b> map.c:556</div></div>
<div class="ttc" id="map_8h_html_a2a6f7023b430cc03af1a8d72e8f6a09b"><div class="ttname"><a href="map_8h.html#a2a6f7023b430cc03af1a8d72e8f6a09b">map_search_get_item</a></div><div class="ttdeci">struct item * map_search_get_item(struct map_search *this_)</div><div class="ttdoc">Returns an item from a map search. </div><div class="ttdef"><b>Definition:</b> map.c:458</div></div>
<div class="ttc" id="structmap__methods_html_af1b08a1287899114eba4a47645799da6"><div class="ttname"><a href="structmap__methods.html#af1b08a1287899114eba4a47645799da6">map_methods::charset</a></div><div class="ttdeci">char * charset</div><div class="ttdef"><b>Definition:</b> map.h:81</div></div>
<div class="ttc" id="map_8h_html_a23f07c7eafbdd5994dfdb8038d356516"><div class="ttname"><a href="map_8h.html#a23f07c7eafbdd5994dfdb8038d356516">map_convert_dup</a></div><div class="ttdeci">char * map_convert_dup(char *str)</div><div class="ttdef"><b>Definition:</b> map.c:235</div></div>
<div class="ttc" id="structcoord__rect_html_a0aa5ec921d6c01e81eea35f701962bd7"><div class="ttname"><a href="structcoord__rect.html#a0aa5ec921d6c01e81eea35f701962bd7">coord_rect::rl</a></div><div class="ttdeci">struct coord rl</div><div class="ttdef"><b>Definition:</b> coord.h:60</div></div>
<div class="ttc" id="structcoord__rect_html"><div class="ttname"><a href="structcoord__rect.html">coord_rect</a></div><div class="ttdef"><b>Definition:</b> coord.h:58</div></div>
<div class="ttc" id="garmin__img_8c_html_a8f7b0321b1954f07b747aeb1e311814e"><div class="ttname"><a href="garmin__img_8c.html#a8f7b0321b1954f07b747aeb1e311814e">type</a></div><div class="ttdeci">char type[3]</div><div class="ttdef"><b>Definition:</b> garmin_img.c:123</div></div>
<div class="ttc" id="structcoord_html"><div class="ttname"><a href="structcoord.html">coord</a></div><div class="ttdef"><b>Definition:</b> coord.h:34</div></div>
<div class="ttc" id="debug_8h_html_aa1ea27a449d096a072c270f9276a8f9f"><div class="ttname"><a href="debug_8h.html#aa1ea27a449d096a072c270f9276a8f9f">dbg_assert</a></div><div class="ttdeci">#define dbg_assert(expr)</div><div class="ttdef"><b>Definition:</b> debug.h:60</div></div>
<div class="ttc" id="map_8h_html_af9f95fd57301452f5a93c0ffd75e13e0"><div class="ttname"><a href="map_8h.html#af9f95fd57301452f5a93c0ffd75e13e0">map_remove_callback</a></div><div class="ttdeci">void map_remove_callback(struct map *this_, struct callback *cb)</div><div class="ttdoc">Removes a callback from the list of attribute-change callbacks. </div><div class="ttdef"><b>Definition:</b> map.c:184</div></div>
<div class="ttc" id="structpcoord_html"><div class="ttname"><a href="structpcoord.html">pcoord</a></div><div class="ttdef"><b>Definition:</b> coord.h:52</div></div>
<div class="ttc" id="map_8h_html_aea4bb45171274a8b6bd4de3d33606f35"><div class="ttname"><a href="map_8h.html#aea4bb45171274a8b6bd4de3d33606f35">map_get_attr</a></div><div class="ttdeci">int map_get_attr(struct map *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)</div><div class="ttdoc">Gets an attribute from a map. </div><div class="ttdef"><b>Definition:</b> map.c:129</div></div>
<div class="ttc" id="map_8h_html_adacb9c6f689c49cea9651adecef9dbdb"><div class="ttname"><a href="map_8h.html#adacb9c6f689c49cea9651adecef9dbdb">map_requires_conversion</a></div><div class="ttdeci">int map_requires_conversion(struct map *this_)</div><div class="ttdoc">Checks if strings from a map have to be converted. </div><div class="ttdef"><b>Definition:</b> map.c:195</div></div>
<div class="ttc" id="map_8h_html_a4615d67b2a27e13f2341f278e9631c54"><div class="ttname"><a href="map_8h.html#a4615d67b2a27e13f2341f278e9631c54">map_convert_free</a></div><div class="ttdeci">void map_convert_free(char *str)</div><div class="ttdoc">Frees the memory allocated for a converted string. </div><div class="ttdef"><b>Definition:</b> map.c:248</div></div>
<div class="ttc" id="structmap__search_html_a67ba4b14a20caf5d46a9031fccc6cd97"><div class="ttname"><a href="structmap__search.html#a67ba4b14a20caf5d46a9031fccc6cd97">map_search::search_attr</a></div><div class="ttdeci">struct attr search_attr</div><div class="ttdef"><b>Definition:</b> map.c:386</div></div>
<div class="ttc" id="structmap__search_html"><div class="ttname"><a href="structmap__search.html">map_search</a></div><div class="ttdoc">Holds information about a search on a map. </div><div class="ttdef"><b>Definition:</b> map.c:384</div></div>
<div class="ttc" id="structitem_html_a193c3e2ec0076325a4f3139f9d33e06e"><div class="ttname"><a href="structitem.html#a193c3e2ec0076325a4f3139f9d33e06e">item::id_hi</a></div><div class="ttdeci">int id_hi</div><div class="ttdef"><b>Definition:</b> item.h:101</div></div>
<div class="ttc" id="structcoord_html_ac3e93ff628aa19d2888c5f6fa26f430d"><div class="ttname"><a href="structcoord.html#ac3e93ff628aa19d2888c5f6fa26f430d">coord::x</a></div><div class="ttdeci">int x</div><div class="ttdef"><b>Definition:</b> coord.h:35</div></div>
<div class="ttc" id="structfile_html"><div class="ttname"><a href="structfile.html">file</a></div><div class="ttdef"><b>Definition:</b> file.h:36</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="map_8h.html">map.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>
|