navit  0.5.3-trunk
layout.h File Reference
#include "item.h"
#include "color.h"
#include "coord.h"

Go to the source code of this file.

Data Structures

struct  poly_hole
 
struct  element
 
struct  itemgra
 
struct  layer
 
struct  cursor
 
struct  layout
 

Functions

struct layoutlayout_new (struct attr *parent, struct attr **attrs)
 Create a new layout object and attach it to a navit parent. More...
 
struct attr_iterlayout_attr_iter_new (void *unused)
 
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 cursorlayout_get_cursor (struct layout *this_, char *name)
 
struct cursorcursor_new (struct attr *parent, struct attr **attrs)
 
void cursor_destroy (struct cursor *this_)
 
int cursor_add_attr (struct cursor *this_, struct attr *attr)
 
struct layerlayer_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)
 
struct itemgraitemgra_new (struct attr *parent, struct attr **attrs)
 
int itemgra_add_attr (struct itemgra *itemgra, struct attr *attr)
 
struct polygon * polygon_new (struct attr *parent, struct attr **attrs)
 
struct polyline * polyline_new (struct attr *parent, struct attr **attrs)
 
struct circlecircle_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)
 
struct spikes * spikes_new (struct attr *parent, struct attr **attrs)
 
int element_add_attr (struct element *e, struct attr *attr)
 

Function Documentation

◆ arrows_new()

struct arrows* arrows_new ( struct attr parent,
struct attr **  attrs 
)

◆ circle_new()

◆ cursor_add_attr()

int cursor_add_attr ( struct cursor this_,
struct attr attr 
)

◆ cursor_destroy()

void cursor_destroy ( struct cursor this_)

◆ cursor_new()

struct cursor* cursor_new ( struct attr parent,
struct attr **  attrs 
)

◆ element_add_attr()

int element_add_attr ( struct element e,
struct attr attr 
)

◆ icon_new()

struct icon* icon_new ( struct attr parent,
struct attr **  attrs 
)

◆ image_new()

struct image* image_new ( struct attr parent,
struct attr **  attrs 
)

◆ itemgra_add_attr()

int itemgra_add_attr ( struct itemgra itemgra,
struct attr attr 
)

◆ itemgra_new()

struct itemgra* itemgra_new ( struct attr parent,
struct attr **  attrs 
)

◆ layer_add_attr()

int layer_add_attr ( struct layer layer,
struct attr attr 
)

◆ layer_get_attr()

int layer_get_attr ( struct layer layer,
enum attr_type  type,
struct attr attr,
struct attr_iter iter 
)

◆ layer_new()

struct layer* layer_new ( struct attr parent,
struct attr **  attrs 
)

◆ layer_set_attr()

int layer_set_attr ( struct layer layer,
struct attr attr 
)

References layer_set_attr_do().

◆ layout_add_attr()

int layout_add_attr ( struct layout layout,
struct attr attr 
)

◆ layout_attr_iter_destroy()

void layout_attr_iter_destroy ( struct attr_iter iter)

References attr_iter::iter.

◆ layout_attr_iter_new()

struct attr_iter* layout_attr_iter_new ( void *  unused)

◆ layout_get_attr()

int layout_get_attr ( struct layout layout,
enum attr_type  type,
struct attr attr,
struct attr_iter iter 
)

◆ layout_get_cursor()

struct cursor* layout_get_cursor ( struct layout this_,
char *  name 
)

Searchs the layout for a cursor with the given name.

Parameters
layoutThe layout
nameThe name
Returns
A pointer to cursor with the given name or the name default or NULL.
Author
Ralph Sennhauser (10/2009)

References c, layout::cursors, and name.

Referenced by navit_set_cursors().

◆ layout_new()

struct layout* layout_new ( struct attr parent,
struct attr **  attrs 
)

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.

Parameters
parentThe parent for this layout (a navit attr)
attrsAn array of attributes that for this layout
Returns
The newly created layout object

References layout::active, attr_search(), attr::attrs, attr::color, layout::color, COLOR_BACKGROUND_, layout::dayname, dbg, layout::font, layout::icon_h, layout::icon_w, layout_func, lvl_warning, layout::name, eval::navit, layout::navit, navit_get_layout_by_name(), navit_object_ref(), layout::nightname, attr::num, layout::order_delta, attr::str, attr::u, layout::underground_alpha, and UNDERGROUND_ALPHA_.

◆ polygon_new()

struct polygon* polygon_new ( struct attr parent,
struct attr **  attrs 
)

◆ polyline_new()

◆ spikes_new()

struct spikes* spikes_new ( struct attr parent,
struct attr **  attrs 
)

◆ text_new()