| 1 |
/* |
| 2 |
* Copyright (C) 2008 Pierre-Luc Beaudoin <pierre-luc@pierlux.com> |
| 3 |
* Copyright (C) 2011-2012 Jiri Techet <techet@gmail.com> |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
*/ |
| 19 |
|
| 20 |
#if !defined (__CHAMPLAIN_CHAMPLAIN_H_INSIDE__) && !defined (CHAMPLAIN_COMPILATION) |
| 21 |
#error "Only <champlain/champlain.h> can be included directly." |
| 22 |
#endif |
| 23 |
|
| 24 |
#ifndef CHAMPLAIN_MARKER_H |
| 25 |
#define CHAMPLAIN_MARKER_H |
| 26 |
|
| 27 |
#include <champlain/champlain-defines.h> |
| 28 |
#include <champlain/champlain-location.h> |
| 29 |
|
| 30 |
#include <glib-object.h> |
| 31 |
#include <clutter/clutter.h> |
| 32 |
|
| 33 |
G_BEGIN_DECLS |
| 34 |
|
| 35 |
#define CHAMPLAIN_TYPE_MARKER champlain_marker_get_type () |
| 36 |
|
| 37 |
#define CHAMPLAIN_MARKER(obj) \ |
| 38 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAMPLAIN_TYPE_MARKER, ChamplainMarker)) |
| 39 |
|
| 40 |
#define CHAMPLAIN_MARKER_CLASS(klass) \ |
| 41 |
(G_TYPE_CHECK_CLASS_CAST ((klass), CHAMPLAIN_TYPE_MARKER, ChamplainMarkerClass)) |
| 42 |
|
| 43 |
#define CHAMPLAIN_IS_MARKER(obj) \ |
| 44 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHAMPLAIN_TYPE_MARKER)) |
| 45 |
|
| 46 |
#define CHAMPLAIN_IS_MARKER_CLASS(klass) \ |
| 47 |
(G_TYPE_CHECK_CLASS_TYPE ((klass), CHAMPLAIN_TYPE_MARKER)) |
| 48 |
|
| 49 |
#define CHAMPLAIN_MARKER_GET_CLASS(obj) \ |
| 50 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_MARKER, ChamplainMarkerClass)) |
| 51 |
|
| 52 |
typedef struct _ChamplainMarkerPrivate ChamplainMarkerPrivate; |
| 53 |
|
| 54 |
typedef struct _ChamplainMarker ChamplainMarker; |
| 55 |
typedef struct _ChamplainMarkerClass ChamplainMarkerClass; |
| 56 |
|
| 57 |
|
| 58 |
/** |
| 59 |
* ChamplainMarker: |
| 60 |
* |
| 61 |
* The #ChamplainMarker structure contains only private data |
| 62 |
* and should be accessed using the provided API |
| 63 |
* |
| 64 |
* Since: 0.10 |
| 65 |
*/ |
| 66 |
struct _ChamplainMarker |
| 67 |
{ |
| 68 |
ClutterActor parent; |
| 69 |
|
| 70 |
ChamplainMarkerPrivate *priv; |
| 71 |
}; |
| 72 |
|
| 73 |
struct _ChamplainMarkerClass |
| 74 |
{ |
| 75 |
ClutterActorClass parent_class; |
| 76 |
}; |
| 77 |
|
| 78 |
GType champlain_marker_get_type (void); |
| 79 |
|
| 80 |
|
| 81 |
void champlain_marker_set_selectable (ChamplainMarker *marker, |
| 82 |
gboolean value); |
| 83 |
gboolean champlain_marker_get_selectable (ChamplainMarker *marker); |
| 84 |
|
| 85 |
void champlain_marker_set_draggable (ChamplainMarker *marker, |
| 86 |
gboolean value); |
| 87 |
gboolean champlain_marker_get_draggable (ChamplainMarker *marker); |
| 88 |
|
| 89 |
void champlain_marker_set_selected (ChamplainMarker *marker, |
| 90 |
gboolean value); |
| 91 |
gboolean champlain_marker_get_selected (ChamplainMarker *marker); |
| 92 |
|
| 93 |
void champlain_marker_animate_in (ChamplainMarker *marker); |
| 94 |
void champlain_marker_animate_in_with_delay (ChamplainMarker *marker, |
| 95 |
guint delay); |
| 96 |
void champlain_marker_animate_out (ChamplainMarker *marker); |
| 97 |
void champlain_marker_animate_out_with_delay (ChamplainMarker *marker, |
| 98 |
guint delay); |
| 99 |
|
| 100 |
void champlain_marker_set_selection_color (ClutterColor *color); |
| 101 |
const ClutterColor *champlain_marker_get_selection_color (void); |
| 102 |
|
| 103 |
void champlain_marker_set_selection_text_color (ClutterColor *color); |
| 104 |
const ClutterColor *champlain_marker_get_selection_text_color (void); |
| 105 |
|
| 106 |
G_END_DECLS |
| 107 |
|
| 108 |
#endif |