[cluttermm] Small API additions.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] Small API additions.
- Date: Wed, 5 May 2010 19:30:02 +0000 (UTC)
commit 983b16d7da3187362abd1da8c651dac5c98400dc
Author: Murray Cumming <murrayc murrayc com>
Date: Wed May 5 21:29:32 2010 +0200
Small API additions.
* clutter/src/stage.hg: Added delete_event signal.
* clutter/src/text.hg: Added font_description property.
ChangeLog | 7 +++++++
clutter/src/stage.hg | 1 +
clutter/src/text.hg | 6 +++++-
3 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 3b23dc4..89025b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2010-05-05 Murray Cumming <murrayc murrayc com>
+ Small API additions.
+
+ * clutter/src/stage.hg: Added delete_event signal.
+ * clutter/src/text.hg: Added font_description property.
+
+2010-05-05 Murray Cumming <murrayc murrayc com>
+
Documentation: Main page improvements.
* clutter/cluttermm.h: Improve the text slightly and link to Stage, Actor,
diff --git a/clutter/src/stage.hg b/clutter/src/stage.hg
index 400ff89..8ebf057 100644
--- a/clutter/src/stage.hg
+++ b/clutter/src/stage.hg
@@ -112,6 +112,7 @@ public:
_WRAP_SIGNAL(void unfullscreen(), "unfullscreen")
_WRAP_SIGNAL(void activate(), "activate")
_WRAP_SIGNAL(void deactivate(), "deactivate")
+ _WRAP_SIGNAL(bool delete_event(ClutterEvent *event), "delete-event")
_WRAP_PROPERTY("color", Color)
_WRAP_PROPERTY("cursor-visible", bool)
diff --git a/clutter/src/text.hg b/clutter/src/text.hg
index 32dc6d4..2ea5afd 100644
--- a/clutter/src/text.hg
+++ b/clutter/src/text.hg
@@ -141,7 +141,10 @@ public:
_WRAP_SIGNAL(void activate(), "activate")
_WRAP_SIGNAL(void text_changed(), "text_changed")
_WRAP_SIGNAL(void cursor_event(const Geometry& geometry), "cursor_event")
-
+ //These are action signals, so probably shouldn't be wrapped:
+ //_WRAP_SIGNAL(void insert_text(const char* new_text, int new_text_length, int position), "insert-text", no_default_handler)
+ //_WRAP_SIGNAL(void delete_text(int start_pos, int end_pos), "insert-text", no_default_handler)
+
_WRAP_PROPERTY("activatable", bool)
_WRAP_PROPERTY("attributes", Pango::AttrList)
_WRAP_PROPERTY("color", Color)
@@ -152,6 +155,7 @@ public:
_WRAP_PROPERTY("editable", bool)
_WRAP_PROPERTY("ellipsize", Pango::EllipsizeMode)
_WRAP_PROPERTY("font-name", Glib::ustring)
+ _WRAP_PROPERTY("font-description", Pango::FontDescription)
_WRAP_PROPERTY("justify", bool)
_WRAP_PROPERTY("line-alignment", Pango::Alignment)
_WRAP_PROPERTY("line-wrap-mode", Pango::WrapMode)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]