navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
layout.h File Reference
#include "item.h"
#include "color.h"

Go to the source code of this file.

Data Structures

struct  element
 
struct  itemgra
 
struct  layer
 
struct  cursor
 
struct  layout
 

Functions

struct layoutlayout_new (struct attr *parent, struct attr **attrs)
 
struct attr_iterlayout_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 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)
 
int element_add_attr (struct element *e, struct attr *attr)
 

Function Documentation

struct arrows* arrows_new ( struct attr parent,
struct attr **  attrs 
)
int cursor_add_attr ( struct cursor this_,
struct attr attr 
)
void cursor_destroy ( struct cursor this_)
struct cursor* cursor_new ( struct attr parent,
struct attr **  attrs 
)
int element_add_attr ( struct element e,
struct attr attr 
)
struct icon* icon_new ( struct attr parent,
struct attr **  attrs 
)
struct image* image_new ( struct attr parent,
struct attr **  attrs 
)
int itemgra_add_attr ( struct itemgra itemgra,
struct attr attr 
)
struct itemgra* itemgra_new ( struct attr parent,
struct attr **  attrs 
)
int layer_add_attr ( struct layer layer,
struct attr attr 
)
int layer_get_attr ( struct layer layer,
enum attr_type  type,
struct attr attr,
struct attr_iter iter 
)
struct layer* layer_new ( struct attr parent,
struct attr **  attrs 
)
int layer_set_attr ( struct layer layer,
struct attr attr 
)

References layer_set_attr_do().

int layout_add_attr ( struct layout layout,
struct attr attr 
)
void layout_attr_iter_destroy ( struct attr_iter iter)
struct attr_iter* layout_attr_iter_new ( void  )
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, and layout::cursors.

Referenced by navit_set_cursors().

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

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.

References layout::active, attr_search(), layout::color, attr::color, COLOR_BACKGROUND_, layout::dayname, layout::font, layout_func, layout::name, layout::navit, attr::navit, navit_object_ref(), layout::nightname, attr::num, layout::order_delta, attr::str, and attr::u.

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