[pangomm/use-dllexport-2-42: 16/17] pango/src/*.hg: Mark _WRAP_ENUM with decl_prefix



commit 12640de393241e41dd5d70bffff7922c1396d81e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Mar 30 19:49:26 2020 +0800

    pango/src/*.hg: Mark _WRAP_ENUM with decl_prefix
    
    This way, with the updated gmmproc, we can export the template<> classes
    using PANGOMM_API as well.

 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 279ea5d..fa8c0c7 100644
--- a/pango/src/attributes.hg
+++ b/pango/src/attributes.hg
@@ -36,12 +36,12 @@ _CC_INCLUDE(pango/pango-enum-types.h)
  * custom attributes using Pango::Attribute::register_type(). The predefined values
  * are given below.
  */
-_WRAP_ENUM(AttrType, PangoAttrType)
+_WRAP_ENUM(AttrType, PangoAttrType, decl_prefix PANGOMM_API)
 
 
 /** 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 4360d24..2d4c541 100644
--- a/pango/src/context.hg
+++ b/pango/src/context.hg
@@ -41,8 +41,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 b66a40f..a9029d7 100644
--- a/pango/src/coverage.hg
+++ b/pango/src/coverage.hg
@@ -28,7 +28,7 @@ namespace Pango
 {
 
 _CC_INCLUDE(pango/pango-enum-types.h)
-_WRAP_ENUM(CoverageLevel, PangoCoverageLevel)
+_WRAP_ENUM(CoverageLevel, PangoCoverageLevel, decl_prefix PANGOMM_API)
 
 
 /** A Pango::Coverage represents a map from ISO-10646 character point to Pango::CoverageLevel.
diff --git a/pango/src/fontdescription.hg b/pango/src/fontdescription.hg
index f237960..6a8bbc2 100644
--- a/pango/src/fontdescription.hg
+++ b/pango/src/fontdescription.hg
@@ -30,12 +30,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)
-_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, 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 a142318..c4b78e6 100644
--- a/pango/src/language.hg
+++ b/pango/src/language.hg
@@ -26,7 +26,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 3bbb15e..3a305b6 100644
--- a/pango/src/layout.hg
+++ b/pango/src/layout.hg
@@ -35,9 +35,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 2de9b3c..92aa616 100644
--- a/pango/src/renderer.hg
+++ b/pango/src/renderer.hg
@@ -35,7 +35,7 @@ namespace Pango
 
 _CC_INCLUDE(pango/pango-enum-types.h)
 
-_WRAP_ENUM(RenderPart, PangoRenderPart)
+_WRAP_ENUM(RenderPart, PangoRenderPart, decl_prefix PANGOMM_API)
 
 /** Pango::Renderer is a base class that contains the necessary logic for rendering a Pango::Layout or 
Pango::LayoutLine. 
  * By subclassing Pango::Renderer and overriding operations such as draw_glyphs and draw_rectangle, 
diff --git a/pango/src/tabarray.hg b/pango/src/tabarray.hg
index c8bc333..711c0e9 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]