[gtkmm/gtkmm-2-22] gdkmm: Window: Wrap new C functions.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-2-22] gdkmm: Window: Wrap new C functions.
- Date: Mon, 30 Aug 2010 13:11:51 +0000 (UTC)
commit da99186a1981c984e303a24938c493a33cb5be76
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Aug 30 14:49:56 2010 +0200
gdkmm: Window: Wrap new C functions.
* gdk/src/window.hg: Added get_composited(), is_input_only(), is_shaped(),
has_native(), get_modal_hint(), get_background_pattern(),
coords_to_parent(), coords_from_parent(),
get_effective_parent(), get_effective_toplevel(), create_similar_surface(),
get_accept_focus(), get_focus_on_map().
ChangeLog | 10 ++++++++++
gdk/src/window.hg | 25 +++++++++++++++++++++++++
2 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 4f9d926..f48c3fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2010-08-30 Murray Cumming <murrayc murrayc com>
+ gdkmm: Window: Wrap new C functions.
+
+ * gdk/src/window.hg: Added get_composited(), is_input_only(), is_shaped(),
+ has_native(), get_modal_hint(), get_background_pattern(),
+ coords_to_parent(), coords_from_parent(),
+ get_effective_parent(), get_effective_toplevel(), create_similar_surface(),
+ get_accept_focus(), get_focus_on_map().
+
+2010-08-30 Murray Cumming <murrayc murrayc com>
+
gdkmm: Color: Deprecate rgb_find_color().
* gdk/src/color.[hg|ccg]: rgb_find_color(): Deprecate this because it
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index a4a294b..2ae9bd9 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -119,6 +119,7 @@ public:
_WRAP_METHOD(void shape_combine_region(const Region& shape_region, int offset_x, int offset_y), gdk_window_shape_combine_region)
_WRAP_METHOD(void set_child_shapes(), gdk_window_set_child_shapes)
+ _WRAP_METHOD(bool get_composited() const, gdk_window_get_composited)
_WRAP_METHOD(void set_composited(bool composited = TRUE), gdk_window_set_composited)
_WRAP_METHOD(void merge_child_shapes(), gdk_window_merge_child_shapes)
@@ -129,10 +130,14 @@ public:
_WRAP_METHOD(bool is_visible() const, gdk_window_is_visible)
_WRAP_METHOD(bool is_viewable() const, gdk_window_is_viewable)
+ _WRAP_METHOD(bool is_input_only() const, gdk_window_is_input_only)
+ _WRAP_METHOD(bool is_shaped() const, gdk_window_is_shaped)
_WRAP_METHOD(WindowState get_state() const, gdk_window_get_state)
_WRAP_METHOD(bool set_static_gravities(bool use_static = true), gdk_window_set_static_gravities)
+ _WRAP_METHOD(bool has_native() const, gdk_window_has_native)
_WRAP_METHOD(void set_type_hint(WindowTypeHint hint), gdk_window_set_type_hint)
_WRAP_METHOD(WindowTypeHint get_type_hint(), gdk_window_get_type_hint)
+ _WRAP_METHOD(bool get_modal_hint() const, gdk_window_get_modal_hint)
_WRAP_METHOD(void set_modal_hint(bool modal = true), gdk_window_set_modal_hint)
_WRAP_METHOD(void set_geometry_hints(const Geometry& geometry, WindowHints geom_mask), gdk_window_set_geometry_hints)
_WRAP_METHOD(static void set_sm_client_id(const Glib::ustring& sm_client_id), gdk_set_sm_client_id)
@@ -162,6 +167,12 @@ public:
*/
void unset_back_pixmap();
+ #m4 _CONVERSION(`cairo_pattern_t*',`Cairo::RefPtr<Cairo::Pattern>',`Cairo::RefPtr<Cairo::Pattern>(new Cairo::Pattern($3, false /* take reference */))')
+ _WRAP_METHOD(Cairo::RefPtr<Cairo::Pattern> get_background_pattern(), gdk_window_get_background_pattern)
+ #m4 _CONVERSION(`cairo_pattern_t*',`Cairo::RefPtr<const Cairo::Pattern>',`Cairo::RefPtr<const Cairo::Pattern>(new Cairo::Pattern($3, false /* take reference */))')
+ _WRAP_METHOD(Cairo::RefPtr<const Cairo::Pattern> get_background_pattern() const, gdk_window_get_background_pattern)
+
+
#m4 _CONVERSION(const Cursor&,GdkCursor*,const_cast<GdkCursor*>(($3).gobj()))
_WRAP_METHOD(void set_cursor(const Cursor& cursor), gdk_window_set_cursor)
@@ -180,6 +191,9 @@ public:
_WRAP_METHOD(void get_position(int& x, int& y) const, gdk_window_get_position)
_WRAP_METHOD(int get_origin(int& x, int& y) const, gdk_window_get_origin)
_WRAP_METHOD(void get_root_coords(int x, int y, int& root_x, int& root_y), gdk_window_get_root_coords)
+ _WRAP_METHOD(void coords_to_parent(double x, double y, double& parent_x, double& parent_y), gdk_window_coords_to_parent)
+ _WRAP_METHOD(void coords_from_parent(double parent_x, double parent_y, double& x, double& y), gdk_window_coords_from_parent)
+
_IGNORE(gdk_window_get_deskrelative_origin)
_WRAP_METHOD(void get_root_origin(int& x, int& y) const, gdk_window_get_root_origin)
_WRAP_METHOD(void get_frame_extents(Rectangle& rect), gdk_window_get_frame_extents)
@@ -189,6 +203,11 @@ public:
_WRAP_METHOD(Glib::RefPtr<Window> get_toplevel(), gdk_window_get_toplevel, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Window> get_toplevel() const, gdk_window_get_toplevel, refreturn, constversion)
+ _WRAP_METHOD(Glib::RefPtr<Window> get_effective_parent(), gdk_window_get_effective_parent, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const Window> get_effective_parent() const, gdk_window_get_effective_parent, refreturn, constversion)
+ _WRAP_METHOD(Glib::RefPtr<Window> get_effective_toplevel(), gdk_window_get_effective_toplevel, refreturn)
+ _WRAP_METHOD(Glib::RefPtr<const Window> get_effective_toplevel() const, gdk_window_effective_get_toplevel, refreturn, constversion)
+
_WRAP_METHOD(Glib::ListHandle< Glib::RefPtr<Window> > get_children(), gdk_window_get_children)
_WRAP_METHOD(Glib::ListHandle< Glib::RefPtr<const Window> > get_children() const, gdk_window_get_children)
_IGNORE(gdk_window_peek_children) //gdk_window_peek_children() is the same as gdk_window_get_children() with different memory mangement of the list.
@@ -213,6 +232,10 @@ public:
_WRAP_METHOD(static Glib::ListHandle< Glib::RefPtr<Window> > get_toplevels(),
gdk_window_get_toplevels, deprecated)
+ #m4 _CONVERSION(`cairo_surface_t*',`Cairo::RefPtr<Cairo::Surface>',`Cairo::RefPtr<Cairo::Surface>(new Cairo::Surface($3, false /* take reference */))')
+ #m4 _CONVERSION(`Cairo::Content',`cairo_content_t',`(cairo_content_t)($3)')
+ _WRAP_METHOD(Cairo::RefPtr<Cairo::Surface> create_similar_surface(Cairo::Content content, int width, int height), gdk_window_create_similar_surface )
+
_WRAP_METHOD(void beep(), gdk_window_beep)
_WRAP_METHOD(void iconify(), gdk_window_iconify)
@@ -289,8 +312,10 @@ public:
_WRAP_METHOD(void set_opacity(double opacity), gdk_window_set_opacity)
+ _WRAP_METHOD(bool get_accept_focus() const, gdk_window_get_accept_focus)
_WRAP_METHOD(void set_accept_focus(bool accept_focus = true), gdk_window_set_accept_focus)
+ _WRAP_METHOD(bool get_focus_on_map() const, gdk_window_get_focus_on_map)
_WRAP_METHOD(void set_focus_on_map(bool focus_on_map), gdk_window_set_focus_on_map)
_WRAP_METHOD(static Glib::RefPtr<Window> get_default_root_window(), gdk_get_default_root_window, refreturn)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]