[gtkmm] Gdk: Window: Add some methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gdk: Window: Add some methods.
- Date: Mon, 29 Jul 2013 09:04:44 +0000 (UTC)
commit bf4d488a3776572ec18a804d3fde257a3403ebc1
Author: Murray Cumming <murrayc murrayc com>
Date: Mon Jul 29 10:55:11 2013 +0200
Gdk: Window: Add some methods.
* gdk/src/window.hg: Add get_scale_factor().
Add get_device_position() taking doubles.
Add create_similar_image_surface().
gdk/src/window.hg | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index 06c4c63..ff028a6 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -196,7 +196,8 @@ public:
_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)
+ _WRAP_METHOD(void get_frame_extents(Rectangle& rect), gdk_window_get_frame_extents) //TODO: Make this
const.
+ _WRAP_METHOD(int get_scale_factor() const, gdk_window_get_scale_factor)
_WRAP_METHOD(Glib::RefPtr<Window> get_pointer(int& x, int& y, ModifierType& mask), gdk_window_get_pointer,
refreturn, deprecated "Use get_device_position() instead")
_WRAP_METHOD(Glib::RefPtr<Window> get_parent(), gdk_window_get_parent, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Window> get_parent() const, gdk_window_get_parent, refreturn, constversion)
@@ -204,6 +205,8 @@ public:
_WRAP_METHOD(Glib::RefPtr<const Window> get_toplevel() const, gdk_window_get_toplevel, refreturn,
constversion)
_WRAP_METHOD(Glib::RefPtr<Window> get_device_position(const Glib::RefPtr<const Device>& device, int& x,
int& y, ModifierType& mask) const, gdk_window_get_device_position, refreturn)
+
+ _WRAP_METHOD(Glib::RefPtr<Window> get_device_position(const Glib::RefPtr<const Device>& device, double&
x, double& y, ModifierType& mask) const, gdk_window_get_device_position_double, refreturn)
_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)
@@ -244,6 +247,9 @@ public:
#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 )
+ #m4 _CONVERSION(`::Cairo::Format',`cairo_format_t',`(cairo_format_t)($3)')
+ _WRAP_METHOD(::Cairo::RefPtr< ::Cairo::Surface> create_similar_image_surface(::Cairo::Format format, int
width, int height, int scale), gdk_window_create_similar_image_surface )
+
_WRAP_METHOD(void beep(), gdk_window_beep)
_WRAP_METHOD(void iconify(), gdk_window_iconify)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]