1
/*
2
 * Copyright (C) 2010-2012 Jiri Techet <techet@gmail.com>
3
 *
4
 * This library is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU Lesser General Public
6
 * License as published by the Free Software Foundation; either
7
 * version 2.1 of the License, or (at your option) any later version.
8
 *
9
 * This library is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 * Lesser General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
15
 * License along with this library; if not, write to the Free Software
16
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
 */
18
19
#if !defined (__CHAMPLAIN_CHAMPLAIN_H_INSIDE__) && !defined (CHAMPLAIN_COMPILATION)
20
#error "Only <champlain/champlain.h> can be included directly."
21
#endif
22
23
#ifndef __CHAMPLAIN_ERROR_TILE_RENDERER_H__
24
#define __CHAMPLAIN_ERROR_TILE_RENDERER_H__
25
26
#include <champlain/champlain-tile.h>
27
#include <champlain/champlain-renderer.h>
28
29
G_BEGIN_DECLS
30
31
#define CHAMPLAIN_TYPE_ERROR_TILE_RENDERER champlain_error_tile_renderer_get_type ()
32
33
#define CHAMPLAIN_ERROR_TILE_RENDERER(obj) \
34
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAMPLAIN_TYPE_ERROR_TILE_RENDERER, ChamplainErrorTileRenderer))
35
36
#define CHAMPLAIN_ERROR_TILE_RENDERER_CLASS(klass) \
37
  (G_TYPE_CHECK_CLASS_CAST ((klass), CHAMPLAIN_TYPE_ERROR_TILE_RENDERER, ChamplainErrorTileRendererClass))
38
39
#define CHAMPLAIN_IS_ERROR_TILE_RENDERER(obj) \
40
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHAMPLAIN_TYPE_ERROR_TILE_RENDERER))
41
42
#define CHAMPLAIN_IS_ERROR_TILE_RENDERER_CLASS(klass) \
43
  (G_TYPE_CHECK_CLASS_TYPE ((klass), CHAMPLAIN_TYPE_ERROR_TILE_RENDERER))
44
45
#define CHAMPLAIN_ERROR_TILE_RENDERER_GET_CLASS(obj) \
46
  (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_ERROR_TILE_RENDERER, ChamplainErrorTileRendererClass))
47
48
typedef struct _ChamplainErrorTileRendererPrivate ChamplainErrorTileRendererPrivate;
49
50
typedef struct _ChamplainErrorTileRenderer ChamplainErrorTileRenderer;
51
typedef struct _ChamplainErrorTileRendererClass ChamplainErrorTileRendererClass;
52
53
/**
54
 * ChamplainErrorTileRenderer:
55
 *
56
 * The #ChamplainErrorTileRenderer structure contains only private data
57
 * and should be accessed using the provided API
58
 *
59
 * Since: 0.8
60
 */
61
struct _ChamplainErrorTileRenderer
62
{
63
  ChamplainRenderer parent;
64
65
  ChamplainErrorTileRendererPrivate *priv;
66
};
67
68
struct _ChamplainErrorTileRendererClass
69
{
70
  ChamplainRendererClass parent_class;
71
};
72
73
74
GType champlain_error_tile_renderer_get_type (void);
75
76
ChamplainErrorTileRenderer *champlain_error_tile_renderer_new (guint tile_size);
77
78
void champlain_error_tile_renderer_set_tile_size (ChamplainErrorTileRenderer *renderer,
79
    guint size);
80
81
guint champlain_error_tile_renderer_get_tile_size (ChamplainErrorTileRenderer *renderer);
82
83
84
G_END_DECLS
85
86
#endif /* __CHAMPLAIN_ERROR_TILE_RENDERER_H__ */