summaryrefslogtreecommitdiff
path: root/champlain/champlain-custom-marker.c
blob: 174974d0726178fcec41e28314f175ef4200609c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
 * Copyright (C) 2011-2013 Jiri Techet <techet@gmail.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

/**
 * SECTION:champlain-custom-marker
 * @short_description: A marker implementing the
 * #ClutterContainer interface. Deprecated.
 *
 * A marker implementing the #ClutterContainer interface. You can insert
 * your custom actors into the container. Don't forget to set the marker's
 * pointer position using #clutter_actor_set_translation.
 */

#include "config.h"

#include "champlain.h"
#include "champlain-defines.h"
#include "champlain-private.h"

#include <clutter/clutter.h>
#include <glib.h>
#include <glib-object.h>

struct _ChamplainCustomMarkerPrivate
{
  ClutterContainer *dummy;
};

G_DEFINE_TYPE_WITH_PRIVATE (ChamplainCustomMarker, champlain_custom_marker, CHAMPLAIN_TYPE_MARKER)


static void
champlain_custom_marker_class_init (ChamplainCustomMarkerClass *klass)
{
}


static void
champlain_custom_marker_init (ChamplainCustomMarker *custom_marker)
{
}


/**
 * champlain_custom_marker_new:
 *
 * Creates an instance of #ChamplainCustomMarker.
 *
 * Returns: a new #ChamplainCustomMarker.
 *
 * Since: 0.10
 * 
 * Deprecated: 0.12.4: #ChamplainMarker is a concrete class now and can be used
 * instead.
 */
ClutterActor *
champlain_custom_marker_new (void)
{
  return CLUTTER_ACTOR (g_object_new (CHAMPLAIN_TYPE_CUSTOM_MARKER, NULL));
}