navit  0.5.3-trunk
element Struct Reference

#include <layout.h>

Public Types

enum  {
  element_point, element_polyline, element_polygon, element_circle,
  element_text, element_icon, element_image, element_arrows

Data Fields

enum element:: { ... }  type
struct color color
int text_size
union {
   struct element_point {
      char   stub
   }   point
   struct element_polyline {
      int   width
      int   directed
      int   dash_num
      int   offset
      unsigned char   dash_table [4]
   }   polyline
   struct element_polygon {
      char   stub
   }   polygon
   struct element_circle {
      int   width
      int   radius
      struct color   background_color
   }   circle
   struct element_icon {
      char *   src
      int   width
      int   height
      int   rotation
      int   x
      int   y
   }   icon
   struct element_text {
      struct color   background_color
   }   text
int coord_count
struct coordcoord

Detailed Description

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 Library 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 Library General Public License for more details.

You should have received a copy of the GNU Library 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.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Field Documentation

◆ background_color

struct color element::background_color

◆ circle

◆ color

struct color element::color

◆ coord

struct coord* element::coord

◆ coord_count

int element::coord_count

◆ dash_num

int element::dash_num

◆ dash_table

unsigned char element::dash_table[4]

◆ directed

int element::directed

◆ height

int element::height

◆ icon

struct { ... } ::element_icon element::icon

◆ offset

int element::offset

◆ point

struct { ... } ::element_point element::point

◆ polygon

struct { ... } ::element_polygon element::polygon

Referenced by polygon_new().

◆ polyline

◆ radius

int element::radius

◆ rotation

int element::rotation

◆ src

char* element::src

Referenced by get_icon(), and gui_internal_poi_icon().

◆ stub

char element::stub

◆ text

struct { ... } ::element_text element::text

Referenced by displayitem_draw(), and text_new().

◆ text_size

int element::text_size

◆ type

◆ u

◆ width

int element::width

◆ x

int element::x

◆ y

int element::y

The documentation for this struct was generated from the following file: