[pangomm/export-more-symbols] pango/src/*.hg: Mark _WRAP_ENUM with decl_prefix



commit cd9600e815a5fa3c50f309960b7f472b744343f1
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Mar 31 11:37:05 2020 +0800

    pango/src/*.hg: Mark _WRAP_ENUM with decl_prefix
    
    This way, we can use compiler directives to export the symbols for the
    _WRAP_ENUM-generated template<> classes.

 pango/src/attributes.hg      |  4 ++--
 pango/src/context.hg         |  4 ++--
 pango/src/coverage.hg        |  2 +-
 pango/src/fontdescription.hg | 12 ++++++------
 pango/src/language.hg        |  2 +-
 pango/src/layout.hg          |  6 +++---
 pango/src/renderer.hg        |  2 +-
 pango/src/tabarray.hg        |  2 +-
 8 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/pango/src/attributes.hg b/pango/src/attributes.hg
index 5c34b46..c6769b3 100644
--- a/pango/src/attributes.hg
+++ b/pango/src/attributes.hg
@@ -35,13 +35,13 @@ _CC_INCLUDE(pango/pango-enum-types.h)
  * custom attributes using Pango::Attribute::register_type(). The predefined values
  * are given below.
  */
-_WRAP_ENUM(AttrType, PangoAttrType, s#^SCALE$#SCALE_FACTOR#)
+_WRAP_ENUM(AttrType, PangoAttrType, s#^SCALE$#SCALE_FACTOR#, decl_prefix PANGOMM_API)
 // gcc complains that SCALE shadows the global constant SCALE from font.h.
 
 
 /** A Pango::Underline is used to specify whether text should be underlined, and if so, the type of 
underlining.
  */
-_WRAP_ENUM(Underline, PangoUnderline)
+_WRAP_ENUM(Underline, PangoUnderline, decl_prefix PANGOMM_API)
 
 
 /** A Pango::LogAttr stores information about the attributes of a single character.
diff --git a/pango/src/context.hg b/pango/src/context.hg
index 5c8d855..ae5dadb 100644
--- a/pango/src/context.hg
+++ b/pango/src/context.hg
@@ -39,8 +39,8 @@ namespace Pango
 {
 
 _CC_INCLUDE(pango/pango-enum-types.h)
-_WRAP_ENUM(Direction, PangoDirection)
-_WRAP_ENUM(GravityHint, PangoGravityHint)
+_WRAP_ENUM(Direction, PangoDirection, decl_prefix PANGOMM_API)
+_WRAP_ENUM(GravityHint, PangoGravityHint, decl_prefix PANGOMM_API)
 
 
 /** A Pango::Context stores global information used to control the itemization process.
diff --git a/pango/src/coverage.hg b/pango/src/coverage.hg
index a2d0f9e..b48005b 100644
--- a/pango/src/coverage.hg
+++ b/pango/src/coverage.hg
@@ -41,7 +41,7 @@ class PANGOMM_API Coverage final
   _IGNORE(pango_coverage_to_bytes, pango_coverage_from_bytes, pango_coverage_max)dnl// deprecated
 
 public:
-  _WRAP_ENUM(Level, PangoCoverageLevel)
+  _WRAP_ENUM(Level, PangoCoverageLevel, decl_prefix PANGOMM_API)
 
   //_WRAP_METHOD(Glib::RefPtr<Coverage> copy() const, pango_coverage_copy) //see above
 
diff --git a/pango/src/fontdescription.hg b/pango/src/fontdescription.hg
index 678d817..00facfc 100644
--- a/pango/src/fontdescription.hg
+++ b/pango/src/fontdescription.hg
@@ -28,12 +28,12 @@ namespace Pango
 {
 
 _CC_INCLUDE(pango/pango-enum-types.h)
-_WRAP_ENUM(Style, PangoStyle)
-_WRAP_ENUM(Variant, PangoVariant)
-_WRAP_ENUM(Stretch, PangoStretch)
-_WRAP_ENUM(Weight, PangoWeight, CONV_TO_INT)
-_WRAP_ENUM(FontMask, PangoFontMask)
-_WRAP_ENUM(Gravity, PangoGravity)
+_WRAP_ENUM(Style, PangoStyle, decl_prefix PANGOMM_API)
+_WRAP_ENUM(Variant, PangoVariant, decl_prefix PANGOMM_API)
+_WRAP_ENUM(Stretch, PangoStretch, decl_prefix PANGOMM_API)
+_WRAP_ENUM(Weight, PangoWeight, CONV_TO_INT, decl_prefix PANGOMM_API)
+_WRAP_ENUM(FontMask, PangoFontMask, decl_prefix PANGOMM_API)
+_WRAP_ENUM(Gravity, PangoGravity, decl_prefix PANGOMM_API)
 
 /** A Pango::FontDescription represents the description of an ideal font.
  * It is used both to list what fonts are available on the system and also for specifying the 
characteristics of a font to load.
diff --git a/pango/src/language.hg b/pango/src/language.hg
index 44e9303..6477526 100644
--- a/pango/src/language.hg
+++ b/pango/src/language.hg
@@ -25,7 +25,7 @@ _DEFS(pangomm,pango)
 namespace Pango
 {
 
-_WRAP_ENUM(Script, PangoScript)
+_WRAP_ENUM(Script, PangoScript, decl_prefix PANGOMM_API)
 
 /** A Pango::Language is used to represent a language.
  */
diff --git a/pango/src/layout.hg b/pango/src/layout.hg
index 2c60b97..0a2f53f 100644
--- a/pango/src/layout.hg
+++ b/pango/src/layout.hg
@@ -34,9 +34,9 @@ namespace Pango
 {
 
 _CC_INCLUDE(pango/pango-enum-types.h)
-_WRAP_ENUM(Alignment, PangoAlignment)
-_WRAP_ENUM(WrapMode, PangoWrapMode)
-_WRAP_ENUM(EllipsizeMode, PangoEllipsizeMode)
+_WRAP_ENUM(Alignment, PangoAlignment, decl_prefix PANGOMM_API)
+_WRAP_ENUM(WrapMode, PangoWrapMode, decl_prefix PANGOMM_API)
+_WRAP_ENUM(EllipsizeMode, PangoEllipsizeMode, decl_prefix PANGOMM_API)
 
 /** A Pango::Layout represents an entire paragraph of text.
  * It is initialized with a Pango::Context, UTF-8 string and set of attributes for that string.
diff --git a/pango/src/renderer.hg b/pango/src/renderer.hg
index 03a9948..7476856 100644
--- a/pango/src/renderer.hg
+++ b/pango/src/renderer.hg
@@ -44,7 +44,7 @@ class PANGOMM_API Renderer : public Glib::Object
   _CLASS_GOBJECT(Renderer, PangoRenderer, PANGO_RENDERER, Glib::Object, GObject, , , PANGOMM_API)
 
 public:
-  _WRAP_ENUM(Part, PangoRenderPart)
+  _WRAP_ENUM(Part, PangoRenderPart, decl_prefix PANGOMM_API)
 
   _WRAP_METHOD(void draw_layout(const Glib::RefPtr<Layout>& layout, int x, int y), 
pango_renderer_draw_layout)
   _WRAP_METHOD(void draw_layout_line(const Glib::RefPtr<LayoutLine>& line, int x, int y), 
pango_renderer_draw_layout_line)
diff --git a/pango/src/tabarray.hg b/pango/src/tabarray.hg
index 875cf2f..7a5d002 100644
--- a/pango/src/tabarray.hg
+++ b/pango/src/tabarray.hg
@@ -28,7 +28,7 @@ namespace Pango
 {
 
 _CC_INCLUDE(pango/pango-enum-types.h)
-_WRAP_ENUM(TabAlign, PangoTabAlign)
+_WRAP_ENUM(TabAlign, PangoTabAlign, decl_prefix PANGOMM_API)
 
 /** A Pango::TabArray contains an array of tab stops.
  * Each tab stop has an alignment and a position.


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