[gtkmm] Gdk: Remove API which has been removed in gtk+-4
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gdk: Remove API which has been removed in gtk+-4
- Date: Tue, 1 Nov 2016 14:42:00 +0000 (UTC)
commit da86805ec88ce5277255606c0d0ebac6486b96cb
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Tue Nov 1 15:35:59 2016 +0100
Gdk: Remove API which has been removed in gtk+-4
It's not possible to build gtkmm against gtk+-4. Lots of changes in
gtkmm/gtk remain to be done. Bug #773642.
gdk/gdkmm/general.cc | 30 -----------------------
gdk/gdkmm/general.h | 19 ---------------
gdk/src/applaunchcontext.hg | 4 ---
gdk/src/cursor.hg | 3 --
gdk/src/devicemanager.hg | 5 ----
gdk/src/display.hg | 20 ---------------
gdk/src/dragcontext.hg | 5 ----
gdk/src/screen.ccg | 8 ------
gdk/src/screen.hg | 53 -----------------------------------------
gdk/src/visual.hg | 19 ---------------
gdk/src/window.hg | 55 -------------------------------------------
11 files changed, 0 insertions(+), 221 deletions(-)
---
diff --git a/gdk/gdkmm/general.cc b/gdk/gdkmm/general.cc
index 8c7704f..4c99059 100644
--- a/gdk/gdkmm/general.cc
+++ b/gdk/gdkmm/general.cc
@@ -28,27 +28,6 @@
namespace Gdk
{
-int screen_width()
-{
- return gdk_screen_width();
-}
-
-int screen_height()
-{
- return gdk_screen_height();
-}
-
-int screen_width_mm()
-{
- return gdk_screen_width_mm();
-}
-
-int screen_height_mm()
-{
- return gdk_screen_height_mm();
-}
-
-
void flush()
{
gdk_flush();
@@ -57,15 +36,6 @@ void flush()
namespace Cairo
{
-#ifndef GDKMM_DISABLE_DEPRECATED
-
-void set_source_color(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Color& color)
-{
- gdk_cairo_set_source_color(context->cobj(), const_cast<GdkColor*>(color.gobj()));
-}
-
-#endif //GDKMM_DISABLE_DEPRECATED
-
void set_source_rgba(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::RGBA& color)
{
gdk_cairo_set_source_rgba(context->cobj(), const_cast<GdkRGBA*>(color.gobj()));
diff --git a/gdk/gdkmm/general.h b/gdk/gdkmm/general.h
index f8746de..7d024d7 100644
--- a/gdk/gdkmm/general.h
+++ b/gdk/gdkmm/general.h
@@ -28,30 +28,11 @@
namespace Gdk
{
-int screen_width();
-int screen_height();
-
-int screen_width_mm();
-int screen_height_mm();
-
void flush();
namespace Cairo
{
-#ifndef GDKMM_DISABLE_DEPRECATED
-
-/** Sets the specified Gdk::Color as the source color of the Cairo context.
- * @param context The cairo context.
- * @param color The color to use as the source color.
- *
- * @newin{2,10}
- * @deprecated Use set_source_rgba() instead.
- */
-void set_source_color(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Color& color);
-
-#endif //GDKMM_DISABLE_DEPRECATED
-
/** Sets the specified Gdk::RGBA as the source color of the Cairo context.
* @param context The cairo context.
* @param color The color to use as the source color.
diff --git a/gdk/src/applaunchcontext.hg b/gdk/src/applaunchcontext.hg
index a614f37..bb59977 100644
--- a/gdk/src/applaunchcontext.hg
+++ b/gdk/src/applaunchcontext.hg
@@ -37,13 +37,10 @@ class AppLaunchContext : public Gio::AppLaunchContext
protected:
_CTOR_DEFAULT()
- _IGNORE(gdk_app_launch_context_new)
public:
_WRAP_CREATE()
- _IGNORE(gdk_app_launch_context_set_display)
-
_WRAP_METHOD(void set_screen(const Glib::RefPtr<Gdk::Screen>& screen), gdk_app_launch_context_set_screen)
_WRAP_METHOD(void set_desktop(int desktop), gdk_app_launch_context_set_desktop)
_WRAP_METHOD(void set_timestamp(guint32 timestamp), gdk_app_launch_context_set_timestamp)
@@ -54,4 +51,3 @@ public:
};
} //namespace Gdk
-
diff --git a/gdk/src/cursor.hg b/gdk/src/cursor.hg
index ab6ab4c..e58c013 100644
--- a/gdk/src/cursor.hg
+++ b/gdk/src/cursor.hg
@@ -34,7 +34,6 @@ class Cursor : public Glib::Object
{
_CLASS_GOBJECT(Cursor, GdkCursor, GDK_CURSOR, Glib::Object, GObject)
_DO_NOT_DERIVE_GTYPE //We use DO_NOT_DERIVE_GTYPE because glib does not allow us to derive from a
non-fundamental (abstract) type, for some reason.
- _IGNORE(gdk_cursor_ref, gdk_cursor_unref) //deprecated
protected:
@@ -47,8 +46,6 @@ public:
//but constructors assume that they own the instance.
//And we would have to have to use the gdk_cursor_new_*() functions in the constructors anyway,
//because they do more than just call g_object_new().
- _WRAP_METHOD(static Glib::RefPtr<Cursor> create(CursorType cursor_type), gdk_cursor_new, deprecated "Use
the constructor that takes a Display instead.")
-
_WRAP_METHOD(static Glib::RefPtr<Cursor> create(const Glib::RefPtr<Display>& display, CursorType
cursor_type), gdk_cursor_new_for_display)
_WRAP_METHOD(static Glib::RefPtr<Cursor> create(const Glib::RefPtr<Display>& display, const
Glib::RefPtr<Pixbuf>& pixbuf, int x, int y), gdk_cursor_new_from_pixbuf)
diff --git a/gdk/src/devicemanager.hg b/gdk/src/devicemanager.hg
index 1be9b4e..cebbfa3 100644
--- a/gdk/src/devicemanager.hg
+++ b/gdk/src/devicemanager.hg
@@ -130,11 +130,6 @@ public:
_WRAP_METHOD(std::vector< Glib::RefPtr<const Device> > list_devices(DeviceType type) const,
gdk_device_manager_list_devices,
deprecated "Use Gdk::Seat::get_pointer(), Gdk::Seat::get_keyboard() and Gdk::Seat::get_slaves()
instead.")
- _WRAP_METHOD(Glib::RefPtr<Device> get_client_pointer(), gdk_device_manager_get_client_pointer, refreturn,
- deprecated "Use Gdk::Seat::get_pointer() instead.")
- _WRAP_METHOD(Glib::RefPtr<const Device> get_client_pointer() const, gdk_device_manager_get_client_pointer,
refreturn, constversion,
- deprecated "Use Gdk::Seat::get_pointer() instead.")
-
// Signals and properties are not yet (2016-05-26) formally deprecated in
// gtk+, but GdkDeviceManager is not recommended for use in new code.
// There's no reason to wrap signals and properties now, when it was not
diff --git a/gdk/src/display.hg b/gdk/src/display.hg
index c3b86d8..d0c769f 100644
--- a/gdk/src/display.hg
+++ b/gdk/src/display.hg
@@ -55,27 +55,15 @@ public:
_WRAP_METHOD(Glib::ustring get_name() const, gdk_display_get_name)
- _WRAP_METHOD(int get_n_screens() const, gdk_display_get_n_screens, deprecated "The number of screens is
always 1.")
- _WRAP_METHOD(Glib::RefPtr<Screen> get_screen(int screen_num = 0), gdk_display_get_screen, refreturn,
- deprecated "There is only one screen; use get_default_screen() to get it.")
- _WRAP_METHOD(Glib::RefPtr<const Screen> get_screen(int screen_num = 0) const, gdk_display_get_screen,
refreturn, constversion,
- deprecated "There is only one screen; use get_default_screen() to get it.")
-
_WRAP_METHOD(Glib::RefPtr<Screen> get_default_screen(), gdk_display_get_default_screen, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Screen> get_default_screen() const, gdk_display_get_default_screen,
refreturn, constversion)
- _IGNORE(gdk_display_pointer_ungrab, gdk_display_keyboard_ungrab,
- gdk_display_pointer_is_grabbed) //deprecated
-
_WRAP_METHOD(bool device_is_grabbed(const Glib::RefPtr<const Gdk::Device>& device) const,
gdk_display_device_is_grabbed)
_WRAP_METHOD(void beep(), gdk_display_beep)
_WRAP_METHOD(void sync(), gdk_display_sync)
_WRAP_METHOD(void close(), gdk_display_close)
_WRAP_METHOD(bool is_closed() const, gdk_display_is_closed)
-
- _IGNORE(gdk_display_list_devices) //deprecated
-
//TODO: Use C++ Gdk::Event:
//TODO: get_event() removes the next event, if there is one - then there should not be a const version:
_WRAP_METHOD(GdkEvent* get_event(), gdk_display_get_event)
@@ -91,12 +79,6 @@ public:
_WRAP_METHOD(static Glib::RefPtr<Display> get_default(), gdk_display_get_default, refreturn)
-
- _IGNORE(gdk_display_get_pointer, gdk_display_get_window_at_pointer, gdk_display_warp_pointer) //deprecated
-
- _WRAP_METHOD(static Glib::RefPtr<Display> open_default_libgtk_only(),
gdk_display_open_default_libgtk_only, refreturn,
- deprecated "This method was never meant to be used outside of GTK+.")
-
_WRAP_METHOD(GdkKeymap* get_keymap(), gdk_keymap_get_for_display)
_WRAP_METHOD(const GdkKeymap* get_keymap() const, gdk_keymap_get_for_display, constversion)
@@ -146,8 +128,6 @@ public:
_WRAP_METHOD(bool supports_shapes() const, gdk_display_supports_shapes)
_WRAP_METHOD(bool supports_input_shapes() const, gdk_display_supports_input_shapes)
- _WRAP_METHOD(bool supports_composite() const, gdk_display_supports_composite,
- deprecated "Compositing is an outdated technology that only ever worked on X11.")
_WRAP_METHOD(void notify_startup_complete(const Glib::ustring& startup_id),
gdk_display_notify_startup_complete)
_WRAP_METHOD(Glib::RefPtr<DeviceManager> get_device_manager(), gdk_display_get_device_manager, refreturn,
diff --git a/gdk/src/dragcontext.hg b/gdk/src/dragcontext.hg
index 558d3a9..3296cb7 100644
--- a/gdk/src/dragcontext.hg
+++ b/gdk/src/dragcontext.hg
@@ -74,11 +74,6 @@ public:
_WRAP_METHOD(void set_icon(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf, int hot_x, int hot_y),
gtk_drag_set_icon_pixbuf)
- // The first argument was changed from StockID to ustring to avoid
- // cross-dependence between gdkmm and gtkmm.
- // See http://bugzilla.gnome.org/show_bug.cgi?id=79124 for details
- _WRAP_METHOD(void set_icon(const Glib::ustring& stock_id, int hot_x, int hot_y), gtk_drag_set_icon_stock,
deprecated "Use set_icon_name() instead.")
-
_WRAP_METHOD(void set_icon_name(const Glib::ustring& name, int hot_x, int hot_y), gtk_drag_set_icon_name)
_WRAP_METHOD(void set_icon(), gtk_drag_set_icon_default)
diff --git a/gdk/src/screen.ccg b/gdk/src/screen.ccg
index 39c07e3..d14a71a 100644
--- a/gdk/src/screen.ccg
+++ b/gdk/src/screen.ccg
@@ -24,14 +24,6 @@
namespace Gdk
{
-
-Rectangle Screen::get_monitor_workarea(int monitor_num) const
-{
- Rectangle rect;
- gdk_screen_get_monitor_workarea(const_cast<GdkScreen*>(gobj()), monitor_num, rect.gobj());
- return rect;
-}
-
} // namespace Gdk
diff --git a/gdk/src/screen.hg b/gdk/src/screen.hg
index 009d16e..90caeaf 100644
--- a/gdk/src/screen.hg
+++ b/gdk/src/screen.hg
@@ -56,79 +56,26 @@ public:
_WRAP_METHOD(Glib::RefPtr<Display> get_display(), gdk_screen_get_display, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Display> get_display() const, gdk_screen_get_display, refreturn,
constversion)
- _WRAP_METHOD(int get_number() const, gdk_screen_get_number)
- _WRAP_METHOD(int get_width() const, gdk_screen_get_width)
- _WRAP_METHOD(int get_height() const, gdk_screen_get_height)
- _WRAP_METHOD(int get_width_mm() const, gdk_screen_get_width_mm)
- _WRAP_METHOD(int get_height_mm() const, gdk_screen_get_height_mm)
-
#m4 _CONVERSION(`GList*',`std::vector< Glib::RefPtr<Visual> >',`Glib::ListHandler< Glib::RefPtr<Visual>
::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
_WRAP_METHOD(std::vector< Glib::RefPtr<Visual> > list_visuals(), gdk_screen_list_visuals)
#m4 _CONVERSION(`GList*',`std::vector< Glib::RefPtr<Window> >',`Glib::ListHandler< Glib::RefPtr<Window>
::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
_WRAP_METHOD(std::vector< Glib::RefPtr<Window> > get_toplevel_windows(), gdk_screen_get_toplevel_windows)
- _WRAP_METHOD(Glib::ustring make_display_name(), gdk_screen_make_display_name)
-
- _WRAP_METHOD(int get_n_monitors() const, gdk_screen_get_n_monitors)
- _WRAP_METHOD(int get_primary_monitor() const, gdk_screen_get_primary_monitor)
- _WRAP_METHOD(void get_monitor_geometry(int monitor_num, Rectangle& dest) const,
gdk_screen_get_monitor_geometry)
-
- /** Retrieves the Gdk::Rectangle representing the size and position of
- * the "work area" on a monitor within the entire screen area.
- *
- * The work area should be considered when positioning menus and
- * similar popups, to avoid placing them below panels, docks or other
- * desktop components.
- *
- * Monitor numbers start at 0. To obtain the number of monitors of
- * @a screen, use get_n_monitors().
- *
- * @newin{3,6}
- *
- * @param monitor_num The monitor number.
- * @result The monitor workarea.
- */
- Rectangle get_monitor_workarea(int monitor_num = 0) const;
- _IGNORE(gdk_screen_get_monitor_workarea)
-
- _WRAP_METHOD(int get_monitor_at_point(int x, int y) const, gdk_screen_get_monitor_at_point)
- _WRAP_METHOD(int get_monitor_at_window(const Glib::RefPtr<Window>& window) const,
gdk_screen_get_monitor_at_window)
-
- _WRAP_METHOD(int get_monitor_width_mm(int monitor_num) const, gdk_screen_get_monitor_width_mm)
- _WRAP_METHOD(int get_monitor_height_mm(int monitor_num) const, gdk_screen_get_monitor_height_mm)
- _WRAP_METHOD(Glib::ustring get_monitor_plug_name(int monitor_num) const, gdk_screen_get_monitor_plug_name)
-
- _WRAP_METHOD(int get_monitor_scale_factor(int monitor_num), gdk_screen_get_monitor_scale_factor)
-
_WRAP_METHOD(static Glib::RefPtr<Screen> get_default(), gdk_screen_get_default, refreturn)
template <class ValueType>
bool get_setting(const Glib::ustring& name, ValueType& value) const;
_IGNORE(gdk_screen_get_setting)
- _WRAP_METHOD(void set_font_options(const ::Cairo::FontOptions& options), gdk_screen_set_font_options)
-
- // Note: This returns a const, so we assume that we must copy it:
- #m4 _CONVERSION(`const cairo_font_options_t*', `::Cairo::FontOptions',
`::Cairo::FontOptions(const_cast<cairo_font_options_t*>($3), false /* take_ownership */)')
- _WRAP_METHOD(::Cairo::FontOptions get_font_options() const, gdk_screen_get_font_options)
-
_WRAP_METHOD(void set_resolution(double dpi), gdk_screen_set_resolution)
_WRAP_METHOD(double get_resolution() const, gdk_screen_get_resolution)
- _WRAP_METHOD(Glib::RefPtr<Gdk::Window> get_active_window(), gdk_screen_get_active_window, refreturn)
- _WRAP_METHOD(Glib::RefPtr<const Gdk::Window> get_active_window() const, gdk_screen_get_active_window,
refreturn, constversion)
-
-#m4 _CONVERSION(`GList*',`std::vector< Glib::RefPtr<Window> >',`Glib::ListHandler< Glib::RefPtr<Window>
::list_to_vector($3, Glib::OWNERSHIP_DEEP)')
- _WRAP_METHOD(std::vector< Glib::RefPtr<Window> > get_window_stack(), gdk_screen_get_window_stack)
-
//We use no_default_handler because GdkDisplayManagerClass is private.
- _WRAP_SIGNAL(void size_changed(), size-changed, no_default_handler)
_WRAP_SIGNAL(void composited_changed(), composited-changed, no_default_handler)
_WRAP_SIGNAL(void monitors_changed(), monitors-changed, no_default_handler)
- _WRAP_PROPERTY("font-options", ::Cairo::FontOptions)
_WRAP_PROPERTY("resolution", double)
};
diff --git a/gdk/src/visual.hg b/gdk/src/visual.hg
index 1604e49..4a223f8 100644
--- a/gdk/src/visual.hg
+++ b/gdk/src/visual.hg
@@ -20,7 +20,6 @@
#include <glibmm/object.h>
#include <gdkmm/screen.h>
#include <gdkmm/types.h>
-//#include <gdk/gdk.h>
_DEFS(gdkmm,gdk)
_PINCLUDE(glibmm/private/object_p.h)
@@ -56,32 +55,14 @@ protected:
_CTOR_DEFAULT
public:
- _WRAP_METHOD(static Glib::RefPtr<Visual> get_system(), gdk_visual_get_system, refreturn)
- _WRAP_METHOD(static Glib::RefPtr<Visual> get_best(), gdk_visual_get_best, refreturn)
- _WRAP_METHOD(static Glib::RefPtr<Visual> get_best(int depth), gdk_visual_get_best_with_depth, refreturn)
- _WRAP_METHOD(static Glib::RefPtr<Visual> get_best(VisualType visual_type), gdk_visual_get_best_with_type,
refreturn)
- _WRAP_METHOD(static Glib::RefPtr<Visual> get_best(int depth, VisualType visual_type),
gdk_visual_get_best_with_both, refreturn)
-
- _WRAP_METHOD(static int get_best_depth(), gdk_visual_get_best_depth)
- _WRAP_METHOD(static VisualType get_best_type(), gdk_visual_get_best_type)
-
_WRAP_METHOD(Glib::RefPtr<Screen> get_screen(), gdk_visual_get_screen, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Screen> get_screen() const, gdk_visual_get_screen, refreturn,
constversion)
-
_WRAP_METHOD(VisualType get_visual_type() const, gdk_visual_get_visual_type)
_WRAP_METHOD(int get_depth() const, gdk_visual_get_depth)
- _WRAP_METHOD(ByteOrder get_byte_order(), gdk_visual_get_byte_order,
- deprecated "This information is not useful.")
- _WRAP_METHOD(int get_colormap_size() const, gdk_visual_get_colormap_size,
- deprecated "This information is not useful, since GDK does not provide APIs to operate on colormaps.")
- _WRAP_METHOD(int get_bits_per_rgb() const, gdk_visual_get_bits_per_rgb,
- deprecated "Use get_red_pixel_details() and its variants to learn about the pixel layout of TrueColor
and DirectColor visuals.")
_WRAP_METHOD(void get_red_pixel_details(guint32& mask, int& shift, int& precision) const,
gdk_visual_get_red_pixel_details)
_WRAP_METHOD(void get_green_pixel_details(guint32& mask, int& shift, int& precision) const,
gdk_visual_get_green_pixel_details)
_WRAP_METHOD(void get_blue_pixel_details(guint32& mask, int& shift, int& precision) const,
gdk_visual_get_blue_pixel_details)
-
};
} //namespace Gdk
-
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index bd00343..47a41e2 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -70,9 +70,6 @@ public:
_WRAP_METHOD(WindowType get_window_type() const, gdk_window_get_window_type)
- _WRAP_METHOD(Glib::RefPtr<Visual> get_visual(), gdk_window_get_visual, refreturn)
- _WRAP_METHOD(Glib::RefPtr<const Visual> get_visual() const, gdk_window_get_visual, refreturn, constversion)
-
_WRAP_METHOD(Glib::RefPtr<Screen> get_screen(), gdk_window_get_screen, refreturn)
_WRAP_METHOD(Glib::RefPtr<const Screen> get_screen() const, gdk_window_get_screen, refreturn, constversion)
@@ -119,10 +116,6 @@ public:
_WRAP_METHOD(void shape_combine_region(const ::Cairo::RefPtr< ::Cairo::Region>& shape_region, int offset_x
= 0, int offset_y = 0), 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,
- deprecated "Compositing is an outdated technology that only ever worked on X11.")
- _WRAP_METHOD(void set_composited(bool composited = TRUE), gdk_window_set_composited,
- deprecated "Compositing is an outdated technology that only ever worked on X11.")
_WRAP_METHOD(void merge_child_shapes(), gdk_window_merge_child_shapes)
_WRAP_METHOD(void input_shape_combine_region(const ::Cairo::RefPtr< ::Cairo::Region>& shape_region, int
offset_x, int offset_y), gdk_window_input_shape_combine_region)
@@ -137,35 +130,16 @@ public:
_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,
- deprecated "Static gravities haven't worked on anything but X11 for a long time.")
_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(void begin_paint_rect(const Rectangle& rectangle), gdk_window_begin_paint_rect,
- deprecated "Use begin_draw_frame() instead.")
- _WRAP_METHOD(void begin_paint_region(const ::Cairo::RefPtr< ::Cairo::Region>& region),
gdk_window_begin_paint_region,
- deprecated "Use begin_draw_frame() instead.")
- _WRAP_METHOD(void end_paint(), gdk_window_end_paint, deprecated "Use end_draw_frame() instead.")
- _WRAP_METHOD(void flush(), gdk_window_flush, deprecated "This method does nothing.")
_WRAP_METHOD(void set_title(const Glib::ustring& title), gdk_window_set_title)
_WRAP_METHOD(void set_role(const Glib::ustring& role), gdk_window_set_role)
_WRAP_METHOD(void set_startup_id(const Glib::ustring& startup_id), gdk_window_set_startup_id)
_WRAP_METHOD(void set_transient_for(const Glib::RefPtr<Window>& parent), gdk_window_set_transient_for)
- _WRAP_METHOD(void set_background(const Color& color), gdk_window_set_background, deprecated "Use the
set_background() method that takes a Gdk::RGBA instead.")
- _WRAP_METHOD(void set_background(const RGBA& rgba), gdk_window_set_background_rgba)
-
-#m4 _CONVERSION(`const ::Cairo::RefPtr< ::Cairo::Pattern>&',`cairo_pattern_t*',`($3)->cobj()')
- _WRAP_METHOD(void set_background(const ::Cairo::RefPtr< ::Cairo::Pattern>& pattern),
gdk_window_set_background_pattern)
-
- #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)
-
_WRAP_METHOD(void set_cursor(const Glib::RefPtr<Cursor>& cursor), gdk_window_set_cursor)
@@ -201,11 +175,9 @@ public:
_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, deprecated "Use the
const method instead.")
_WRAP_METHOD(void get_frame_extents(Rectangle& rect) const, gdk_window_get_frame_extents, constversion)
_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)
_WRAP_METHOD(Glib::RefPtr<Window> get_toplevel(), gdk_window_get_toplevel, refreturn)
@@ -215,11 +187,6 @@ public:
_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)
- _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_get_effective_toplevel,
refreturn, constversion)
-
#m4 _CONVERSION(`GList*',`std::vector< Glib::RefPtr<Window> >',`Glib::ListHandler<Glib::RefPtr<Window>
::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
_WRAP_METHOD(std::vector< Glib::RefPtr<Window> > get_children(), gdk_window_get_children)
#m4 _CONVERSION(`GList*',`std::vector< Glib::RefPtr<const Window> >',`Glib::ListHandler<Glib::RefPtr<const
Window> >::list_to_vector($3, Glib::OWNERSHIP_SHALLOW)')
@@ -324,9 +291,6 @@ public:
_WRAP_METHOD(void thaw_updates(), gdk_window_thaw_updates)
_WRAP_METHOD(static void process_all_updates(), gdk_window_process_all_updates)
_WRAP_METHOD(void process_updates(bool update_children), gdk_window_process_updates)
- _WRAP_METHOD(static void set_debug_updates(bool setting = true), gdk_window_set_debug_updates)
- _IGNORE(gdk_window_thaw_toplevel_updates_libgtk_only,
- gdk_window_freeze_toplevel_updates_libgtk_only)dnl// deprecated
//TODO: flags is now an enum. See
// https://git.gnome.org/browse/gtk+/commit/gdk/gdkwindow.c?id=4b42526e1f33b0ceb9231cee5e15861b97c05726
@@ -334,9 +298,6 @@ public:
#m4 _CONVERSION(`guint',`GdkWindowHints',`(GdkWindowHints)($3)')
_WRAP_METHOD(static void constrain_size(const Geometry& geometry, guint flags, int width, int height, int&
new_width, int& new_height), gdk_window_constrain_size)
- _WRAP_METHOD(void enable_synchronized_configure(), gdk_window_enable_synchronized_configure, deprecated
"This function is no longer needed.")
- _WRAP_METHOD(void configure_finished(), gdk_window_configure_finished, deprecated "This function is no
longer needed.")
-
_WRAP_METHOD(void set_skip_taskbar_hint(bool skips_taskbar = true), gdk_window_set_skip_taskbar_hint)
_WRAP_METHOD(void set_skip_pager_hint(bool skips_pager = true), gdk_window_set_skip_pager_hint)
@@ -347,8 +308,6 @@ public:
_WRAP_METHOD(FullscreenMode get_fullscreen_mode() const, gdk_window_get_fullscreen_mode)
_WRAP_METHOD(void unfullscreen(), gdk_window_unfullscreen)
- _IGNORE(gdk_pointer_grab, gdk_pointer_ungrab, gdk_keyboard_grab, gdk_keyboard_ungrab) //deprecated
-
_WRAP_METHOD(void set_keep_above(bool setting = true), gdk_window_set_keep_above)
_WRAP_METHOD(void set_keep_below(bool setting = true), gdk_window_set_keep_below)
@@ -362,16 +321,6 @@ public:
_WRAP_METHOD(static Glib::RefPtr<Window> get_default_root_window(), gdk_get_default_root_window, refreturn)
- _WRAP_METHOD(::Cairo::RefPtr< ::Cairo::Surface> get_offscreen_surface(), gdk_offscreen_window_get_surface,
refreturn)
- _WRAP_METHOD(::Cairo::RefPtr<const ::Cairo::Surface> get_offscreen_surface() const,
gdk_offscreen_window_get_surface, constversion, refreturn)
-
- _WRAP_METHOD(Glib::RefPtr<Window> get_offscreen_embedder(), gdk_offscreen_window_get_embedder, refreturn)
- _WRAP_METHOD(Glib::RefPtr<const Window> get_offscreen_embedder() const, gdk_offscreen_window_get_embedder,
constversion, refreturn)
-
- _WRAP_METHOD(void set_offscreen_embedder(const Glib::RefPtr<Window>& embedder),
gdk_offscreen_window_set_embedder)
-
- _WRAP_METHOD(void geometry_changed(), gdk_window_geometry_changed)
-
_WRAP_METHOD(void set_support_multidevice(bool support_multidevice = true),
gdk_window_set_support_multidevice)
_WRAP_METHOD(bool get_support_multidevice(), gdk_window_get_support_multidevice)
@@ -383,10 +332,6 @@ public:
//This is const because it returns a copy (though that is not very clear from the C documentation)
_WRAP_METHOD(::Cairo::RefPtr< ::Cairo::Region> get_visible_region() const, gdk_window_get_visible_region)
-#m4 _CONVERSION(`cairo_t*',`::Cairo::RefPtr< ::Cairo::Context>',`::Cairo::RefPtr< ::Cairo::Context>(new
::Cairo::Context($3, true /* has_reference */))')
- _WRAP_METHOD(::Cairo::RefPtr< ::Cairo::Context> create_cairo_context(), gdk_cairo_create,
- deprecated "Use begin_draw_frame() and Gdk::DrawingContext::get_cairo_context() instead.")
-
//TODO: Wrap these? Find out when they are emitted and if they are useful outside of GTK+, and improve the
C docs.
//_WRAP_SIGNAL(Glib::RefPtr<Gdk::Window> pick_embedded_child(double x, double y), pick-embedded-child,
no_default_handler)
//_WRAP_SIGNAL(Glib::RefPtr<Gdk::Window> to_embedder(double offscreen_x, double offscreen_y, double&
embedder_x, double& embedder_y), to-embedder, no_default_handler)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]