navit
0.5.3-trunk
|
#include <glib.h>
#include <string.h>
#include "item.h"
#include "attr.h"
#include "xmlconfig.h"
#include "layout.h"
#include "coord.h"
#include "debug.h"
#include "navit.h"
Data Structures | |
struct | attr_iter |
Functions | |
struct layout * | layout_new (struct attr *parent, struct attr **attrs) |
Create a new layout object and attach it to a navit parent. More... | |
struct attr_iter * | layout_attr_iter_new (void) |
void | layout_attr_iter_destroy (struct attr_iter *iter) |
int | layout_get_attr (struct layout *layout, enum attr_type type, struct attr *attr, struct attr_iter *iter) |
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) |
static int | layer_set_attr_do (struct layer *l, struct attr *attr, int init) |
struct layer * | layer_new (struct attr *parent, struct attr **attrs) |
int | layer_get_attr (struct layer *layer, enum attr_type type, struct attr *attr, struct attr_iter *iter) |
int | layer_add_attr (struct layer *layer, struct attr *attr) |
int | layer_set_attr (struct layer *layer, struct attr *attr) |
static void | layer_destroy (struct layer *layer) |
struct itemgra * | itemgra_new (struct attr *parent, struct attr **attrs) |
int | itemgra_add_attr (struct itemgra *itemgra, struct attr *attr) |
static void | element_set_color (struct element *e, struct attr **attrs) |
static void | element_set_background_color (struct color *c, struct attr **attrs) |
static void | element_set_text_size (struct element *e, struct attr **attrs) |
static void | element_set_polyline_width (struct element *e, struct attr **attrs) |
static void | element_set_polyline_directed (struct element *e, struct attr **attrs) |
static void | element_set_polyline_dash (struct element *e, struct attr **attrs) |
static void | element_set_polyline_offset (struct element *e, struct attr **attrs) |
static void | element_set_circle_width (struct element *e, struct attr **attrs) |
static void | element_set_circle_radius (struct element *e, struct attr **attrs) |
struct polygon * | polygon_new (struct attr *parent, struct attr **attrs) |
struct polyline * | polyline_new (struct attr *parent, struct attr **attrs) |
struct circle * | circle_new (struct attr *parent, struct attr **attrs) |
struct text * | text_new (struct attr *parent, struct attr **attrs) |
struct icon * | icon_new (struct attr *parent, struct attr **attrs) |
struct image * | image_new (struct attr *parent, struct attr **attrs) |
struct arrows * | arrows_new (struct attr *parent, struct attr **attrs) |
int | element_add_attr (struct element *e, struct attr *attr) |
Variables | |
struct object_func | layout_func |
struct object_func | layer_func |
References element::element_arrows, element_set_color(), and element::type.
References attr_generic_add_attr(), cursor::attrs, and attr::type.
Referenced by osd_marker_init().
void cursor_destroy | ( | struct cursor * | this_ | ) |
References cursor::name, and cursor::sequence_range.
References attr_search(), dbg, lvl_info, range::max, range::min, name, attr::num, attr::range, attr::str, and attr::u.
Referenced by osd_marker_init().
References element::coord, attr::coord, element::coord_count, attr::type, and attr::u.
Referenced by osd_marker_init().
References attr_search(), attr::color, and attr::u.
Referenced by circle_new(), and text_new().
References attr_search(), element::circle, attr::num, element::u, and attr::u.
Referenced by circle_new().
References attr_search(), element::circle, attr::num, element::u, attr::u, and width.
Referenced by circle_new().
References attr_search(), element::color, attr::color, and attr::u.
Referenced by arrows_new(), circle_new(), polygon_new(), polyline_new(), and text_new().
References attr_search(), attr::dash, element::polyline, element::u, and attr::u.
Referenced by polyline_new().
References attr_search(), attr::num, element::polyline, element::u, and attr::u.
Referenced by polyline_new().
References attr_search(), attr::num, offset, element::polyline, element::u, and attr::u.
Referenced by polyline_new().
References attr_search(), attr::num, element::polyline, element::u, attr::u, and width.
Referenced by polyline_new().
References attr_search(), attr::num, element::text_size, and attr::u.
Referenced by circle_new(), and text_new().
References attr_search(), element::icon, attr::icon, attr::num, attr::str, element::type, element::u, and attr::u.
References element::element_image, and element::type.
References attr_to_name(), dbg, attr::element, itemgra::elements, lvl_error, attr::type, and attr::u.
Referenced by osd_marker_init().
References attr_search(), attr::item_types, range::max, range::min, attr::range, type, and attr::u.
Referenced by osd_marker_init().
References attr::itemgra, layer::itemgras, attr::type, and attr::u.
|
static |
References attr_list_free(), and layer::name.
int layer_get_attr | ( | struct layer * | layer, |
enum attr_type | type, | ||
struct attr * | attr, | ||
struct attr_iter * | iter | ||
) |
References layer::active, layer::details, layer::name, attr::num, attr::str, type, attr::type, and attr::u.
References dbg, layer_func, layer_set_attr_do(), attr::layout, lvl_error, layer::navit, layout::navit, navit_object_ref(), attr::type, and attr::u.
References layer_set_attr_do().
References layer::active, dbg, layer::details, attr_iter::iter, attr::layer, lvl_error, layer::name, layer::navit, attr::navit_object, navit_object_ref(), navit_object_unref(), attr::num, layer::ref, attr::str, attr::type, and attr::u.
Referenced by layer_new(), and layer_set_attr().
References attr_generic_add_attr(), attr::cursor, layout::cursors, attr::layer, layout::layers, attr::type, and attr::u.
void layout_attr_iter_destroy | ( | struct attr_iter * | iter | ) |
struct attr_iter* layout_attr_iter_new | ( | void | ) |
int layout_get_attr | ( | struct layout * | layout, |
enum attr_type | type, | ||
struct attr * | attr, | ||
struct attr_iter * | iter | ||
) |
References layout::active, attr::cursor, layout::cursors, layout::dayname, attr_iter::last, attr::layer, layout::layers, layout::name, layout::nightname, attr::num, attr::str, type, attr::type, and attr::u.
Referenced by navit_add_layout(), and request_layout_get_attr().
Searchs the layout for a cursor with the given name.
layout | The layout |
name | The name |
References c, and layout::cursors.
Referenced by navit_set_cursors().
Create a new layout object and attach it to a navit parent.
Navit, a modular navigation system. 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 General Public License version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
parent | The parent for this layout (a navit attr) |
attrs | An array of attributes that for this layout |
References attr_search(), attr::color, COLOR_BACKGROUND_, dbg, layout_func, lvl_warning, eval::navit, attr::navit, navit_get_layout_by_name(), navit_object_ref(), attr::num, attr::str, and attr::u.
References element::element_polygon, element_set_color(), element::polygon, and element::type.
Referenced by osd_marker_init().
struct object_func layer_func |
Referenced by layer_new(), and object_func_lookup().
struct object_func layout_func |
Referenced by layout_new(), and object_func_lookup().