[libchamplainmm] Point: Remove deleted methods; add new ones
- From: Juan R. Garcia Blanco <juanrgar src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplainmm] Point: Remove deleted methods; add new ones
- Date: Sun, 8 Jun 2014 19:05:40 +0000 (UTC)
commit 25635f038ff4a28548a0786b9e1a6ca738c24e62
Author: Juan R. GarcĂa Blanco <juanrgar gmail com>
Date: Sun Jun 8 20:58:10 2014 +0200
Point: Remove deleted methods; add new ones
champlain/src/point.hg | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
---
diff --git a/champlain/src/point.hg b/champlain/src/point.hg
index 21d5fe1..546118a 100644
--- a/champlain/src/point.hg
+++ b/champlain/src/point.hg
@@ -25,13 +25,24 @@ namespace Champlain
class Point : public Marker
{
+ /** A simple point to mark a coordinate.
+ *
+ * Point is a simple variant of Marker. Contrary to
+ * Label, it is not capable of labelling the point with text and
+ * only shows the location of the point as a circle on the map.
+ *
+ * @newin{0,1}
+ */
_CLASS_GOBJECT(Point, ChamplainPoint, CHAMPLAIN_POINT, Champlain::Marker, ChamplainMarker)
+protected:
+ _CTOR_DEFAULT()
+
public:
- _WRAP_METHOD(double get_latitude() const, champlain_point_get_latitude)
- _WRAP_METHOD(double get_longitude() const, champlain_point_get_longitude)
- _WRAP_METHOD(void set_latitude(double latitude), champlain_point_set_latitude)
- _WRAP_METHOD(void set_longitude(double longitude), champlain_point_set_longitude)
+ _WRAP_CREATE()
+
+ _WRAP_METHOD(void set_size(double size), champlain_point_set_size)
+ _WRAP_METHOD(double get_size() const, champlain_point_get_size)
};
} // namespace Champlain
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]