[libchamplainmm] PathLayer: Rename Polygon to PathLayer
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplainmm] PathLayer: Rename Polygon to PathLayer
- Date: Wed, 26 Feb 2014 19:05:29 +0000 (UTC)
commit 387783b36c3fd5a60a3ffb216a006666b61a689b
Author: Juan R. García Blanco <juanrgar gmail com>
Date: Tue Feb 25 20:34:01 2014 +0100
PathLayer: Rename Polygon to PathLayer
* Rename class name and methods in path-layer.hg
libchamplain/src/path-layer.ccg | 23 ++++++++++++++++++++
libchamplain/src/path-layer.hg | 44 +++++++++++++++++---------------------
2 files changed, 43 insertions(+), 24 deletions(-)
---
diff --git a/libchamplain/src/path-layer.ccg b/libchamplain/src/path-layer.ccg
index e69de29..98e7f82 100644
--- a/libchamplain/src/path-layer.ccg
+++ b/libchamplain/src/path-layer.ccg
@@ -0,0 +1,23 @@
+/* Copyright (c) 2014 Juan R. García Blanco <juanrgar gmail com>
+ *
+ * This file is part of libchamplainmm.
+ *
+ * libchamplainmm 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.
+ *
+ * libchamplainmm 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 program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <champlain/champlain.h>
+
+namespace Champlain
+{
+} // namespace Champlain
diff --git a/libchamplain/src/path-layer.hg b/libchamplain/src/path-layer.hg
index 9c71e89..2f4254c 100644
--- a/libchamplain/src/path-layer.hg
+++ b/libchamplain/src/path-layer.hg
@@ -18,11 +18,8 @@
#include <cluttermm.h>
#include <glibmm.h>
-
+#include <libchamplainmm/point.h>
_DEFS(libchamplainmm,libchamplain)
-
-_CC_INCLUDE(champlain/champlain.h)
-_CC_INCLUDE(libchamplainmm/point.h)
_PINCLUDE(glibmm/private/object_p.h)
namespace Champlain
@@ -30,10 +27,9 @@ namespace Champlain
class Point;
-class Polygon :
- public Glib::Object
+class PathLayer : public Glib::Object
{
- _CLASS_GOBJECT(Polygon, ChamplainPolygon, CHAMPLAIN_POLYGON,
+ _CLASS_GOBJECT(PathLayer, ChamplainPathLayer, CHAMPLAIN_PATH_LAYER,
Glib::Object, GObject)
protected:
@@ -43,32 +39,32 @@ public:
_WRAP_CREATE()
_WRAP_METHOD(void append_point(double latitude, double longitude),
- champlain_polygon_append_point)
- _WRAP_METHOD(void clear_points(), champlain_polygon_clear_points)
- _WRAP_METHOD(bool get_fill() const, champlain_polygon_get_fill)
+ champlain_path_layer_append_point)
+ _WRAP_METHOD(void clear_points(), champlain_path_layer_clear_points)
+ _WRAP_METHOD(bool get_fill() const, champlain_path_layer_get_fill)
_WRAP_METHOD(Clutter::Color get_fill_color() const,
- champlain_polygon_get_fill_color)
- _WRAP_METHOD(bool get_stroke() const, champlain_polygon_get_stroke)
+ champlain_path_layer_get_fill_color)
+ _WRAP_METHOD(bool get_stroke() const, champlain_path_layer_get_stroke)
_WRAP_METHOD(Clutter::Color get_stroke_color() const,
- champlain_polygon_get_stroke_color)
+ champlain_path_layer_get_stroke_color)
_WRAP_METHOD(double get_stroke_width() const,
- champlain_polygon_get_stroke_width)
+ champlain_path_layer_get_stroke_width)
_WRAP_METHOD(Glib::ListHandle<const Point *> get_points() const,
- champlain_polygon_get_points)
- _WRAP_METHOD(void hide(), champlain_polygon_hide)
+ champlain_path_layer_get_points)
+ _WRAP_METHOD(void hide(), champlain_path_layer_hide)
_WRAP_METHOD(void insert_point(double latitude, double longitude, int pos),
- champlain_polygon_insert_point)
+ champlain_path_layer_insert_point)
_WRAP_METHOD(void remove_point(const Point & point),
- champlain_polygon_remove_point)
- _WRAP_METHOD(void set_fill(bool value), champlain_polygon_set_fill)
+ champlain_path_layer_remove_point)
+ _WRAP_METHOD(void set_fill(bool value), champlain_path_layer_set_fill)
_WRAP_METHOD(void set_fill_color(const Clutter::Color & color),
- champlain_polygon_set_fill_color)
- _WRAP_METHOD(void set_stroke(bool value), champlain_polygon_set_stroke)
+ champlain_path_layer_set_fill_color)
+ _WRAP_METHOD(void set_stroke(bool value), champlain_path_layer_set_stroke)
_WRAP_METHOD(void set_stroke_color(const Clutter::Color & color),
- champlain_polygon_set_stroke_color)
+ champlain_path_layer_set_stroke_color)
_WRAP_METHOD(void set_stroke_width(double width),
- champlain_polygon_set_stroke_width)
- _WRAP_METHOD(void show(), champlain_polygon_show)
+ champlain_path_layer_set_stroke_width)
+ _WRAP_METHOD(void show(), champlain_path_layer_show)
_WRAP_PROPERTY("closed-path", bool)
_WRAP_PROPERTY("fill", bool)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]