[gtkmm/use-dllexport: 56/62] gdk/gdkmm/*.h: Mark classes and APIs with GDKMM_API



commit b483ba4276a7d69426000ca195807275edf862e4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Jun 5 12:35:03 2020 +0800

    gdk/gdkmm/*.h: Mark classes and APIs with GDKMM_API
    
    This will prepare gdkmm to export symbols via compiler directives instead of
    using gendef.exe.

 gdk/gdkmm/cairoutils.h    |  4 ++++
 gdk/gdkmm/devicewithpad.h |  2 +-
 gdk/gdkmm/general.h       |  7 +++++++
 gdk/gdkmm/value_cairo.h   | 10 ++++++----
 gdk/gdkmm/wrap_init.h     |  4 +++-
 5 files changed, 21 insertions(+), 6 deletions(-)
---
diff --git a/gdk/gdkmm/cairoutils.h b/gdk/gdkmm/cairoutils.h
index d34a41b6..15a0d55b 100644
--- a/gdk/gdkmm/cairoutils.h
+++ b/gdk/gdkmm/cairoutils.h
@@ -17,6 +17,8 @@
 #ifndef _GDKMM_CAIROUTILS_H
 #define _GDKMM_CAIROUTILS_H
 
+#include <gdkmmconfig.h>
+
 #include <cairomm/context.h>
 #include <cairomm/region.h>
 #include <cairomm/surface.h>
@@ -41,6 +43,7 @@ namespace Cairo
  *
  * @newin{3,92}
  */
+GDKMM_API
 ::Cairo::RefPtr< ::Cairo::Context> wrap(cairo_t* cobject, bool has_reference = true);
 
 /** Creates a Cairo::RefPtr with a C++ wrapper for the C instance.
@@ -53,6 +56,7 @@ namespace Cairo
  *
  * @newin{3,92}
  */
+GDKMM_API
 ::Cairo::RefPtr< ::Cairo::Region> wrap(cairo_region_t* cobject, bool has_reference = true);
 
 /** Creates a Cairo::RefPtr with a C++ wrapper for the C instance.
diff --git a/gdk/gdkmm/devicewithpad.h b/gdk/gdkmm/devicewithpad.h
index 62bc4f3b..76a4710c 100644
--- a/gdk/gdkmm/devicewithpad.h
+++ b/gdk/gdkmm/devicewithpad.h
@@ -29,7 +29,7 @@ namespace Gdk
  * Use Gdk::Device::device_with_pad_cast() to get a Glib::RefPtr<Gdk::DeviceWithPad>.
  */
 
-class DeviceWithPad : public Device, public DevicePad
+class GDKMM_API DeviceWithPad : public Device, public DevicePad
 {
 private:
   // noncopyable
diff --git a/gdk/gdkmm/general.h b/gdk/gdkmm/general.h
index f18f35b9..44c0220e 100644
--- a/gdk/gdkmm/general.h
+++ b/gdk/gdkmm/general.h
@@ -39,6 +39,7 @@ namespace Cairo
  *
  * @newin{3,0}
  */
+GDKMM_API
 void set_source_rgba(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::RGBA& color);
 
 /** Sets the given pixbuf as the source pattern for the %Cairo context.
@@ -51,6 +52,7 @@ void set_source_rgba(const ::Cairo::RefPtr< ::Cairo::Context >& context, const G
  *
  * @newin{2,10}
  */
+GDKMM_API
 void set_source_pixbuf(const ::Cairo::RefPtr< ::Cairo::Context >& context,
   const Glib::RefPtr<const Gdk::Pixbuf>& pixbuf, double pixbuf_x = 0, double pixbuf_y = 0);
 
@@ -61,6 +63,7 @@ void set_source_pixbuf(const ::Cairo::RefPtr< ::Cairo::Context >& context,
  *
  * @newin{2,10}
  */
+GDKMM_API
 void add_rectangle_to_path(const ::Cairo::RefPtr< ::Cairo::Context >& context, const Gdk::Rectangle& 
rectangle);
 
 /** Adds the given region to the current path of the context.
@@ -70,6 +73,7 @@ void add_rectangle_to_path(const ::Cairo::RefPtr< ::Cairo::Context >& context, c
  *
  * @newin{2,10}
  */
+GDKMM_API
 void add_region_to_path(const ::Cairo::RefPtr< ::Cairo::Context >& context, const ::Cairo::RefPtr< 
::Cairo::Region>& region);
 
 /** Creates a region that covers the area where the given
@@ -83,6 +87,7 @@ void add_region_to_path(const ::Cairo::RefPtr< ::Cairo::Context >& context, cons
  *
  * @newin{3,24}
  */
+GDKMM_API
 ::Cairo::RefPtr< ::Cairo::Region> create_region_from_surface(const ::Cairo::RefPtr< ::Cairo::Surface>& 
surface);
 
 /** This is the main way to draw GL content in gtkmm.
@@ -115,6 +120,7 @@ void add_region_to_path(const ::Cairo::RefPtr< ::Cairo::Context >& context, cons
  *
  * @newin{3,24}
  */
+GDKMM_API
 void draw_from_gl(const ::Cairo::RefPtr< ::Cairo::Context >& context,
   const Glib::RefPtr<Gdk::Surface>& surface, int source, int source_type,
   int buffer_scale, int x, int y, int width, int height);
@@ -130,6 +136,7 @@ void draw_from_gl(const ::Cairo::RefPtr< ::Cairo::Context >& context,
  *
  * @newin{3,92}
  */
+GDKMM_API
 void upload_surface_to_gl(const ::Cairo::RefPtr< ::Cairo::Surface>& surface,
   int target, int width, int height, const Glib::RefPtr<GLContext>& context = {});
 
diff --git a/gdk/gdkmm/value_cairo.h b/gdk/gdkmm/value_cairo.h
index 04813594..324bcec8 100644
--- a/gdk/gdkmm/value_cairo.h
+++ b/gdk/gdkmm/value_cairo.h
@@ -17,14 +17,16 @@
 #ifndef _GDKMM_VALUE_CAIRO_H
 #define _GDKMM_VALUE_CAIRO_H
 
+#include <gdkmmconfig.h>
+
 #include <glibmm/value.h>
 #include <cairomm/refptr.h>
 #include <type_traits>
 
 namespace Cairo
 {
-class Region;
-class Surface;
+class GDKMM_API Region;
+class GDKMM_API Surface;
 }
 
 namespace Gdk
@@ -41,10 +43,10 @@ GType get_base_type()
 }
 
 template <>
-GType get_base_type<::Cairo::Region>();
+GDKMM_API GType get_base_type<::Cairo::Region>();
 
 template <>
-GType get_base_type<::Cairo::Surface>();
+GDKMM_API GType get_base_type<::Cairo::Surface>();
 #endif // DOXYGEN_SHOULD_SKIP_THIS
 
 } //namespace Cairo
diff --git a/gdk/gdkmm/wrap_init.h b/gdk/gdkmm/wrap_init.h
index d18144ec..241f3d9f 100644
--- a/gdk/gdkmm/wrap_init.h
+++ b/gdk/gdkmm/wrap_init.h
@@ -1,6 +1,8 @@
 #ifndef _GDKMM_WRAP_INIT_H
 #define _GDKMM_WRAP_INIT_H
 
+#include <gdkmmconfig.h>
+
 /* wrap_init.h
  *
  * Copyright (C) 1998-2002 The gtkmm Development Team
@@ -25,7 +27,7 @@
 namespace Gdk
 {
 
-void wrap_init();
+GDKMM_API void wrap_init();
 
 } /* namespace Gdk */
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]