[pango] Add PANGO_GRAVITY_IS_IMPROPER



commit 561c8eac09f20cf01fd5b9278c8778dbeb45fd2f
Author: Behdad Esfahbod <behdad behdad org>
Date:   Wed Aug 22 10:54:29 2012 -0400

    Add PANGO_GRAVITY_IS_IMPROPER

 docs/pango-docs.sgml    |    4 ++++
 docs/pango-sections.txt |    1 +
 docs/tmpl/vertical.sgml |    8 ++++++++
 pango/pango-gravity.h   |   14 ++++++++++++++
 4 files changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/docs/pango-docs.sgml b/docs/pango-docs.sgml
index f5088df..fe7d018 100644
--- a/docs/pango-docs.sgml
+++ b/docs/pango-docs.sgml
@@ -131,5 +131,9 @@
     <title>Index of new symbols in 1.30</title>
     <xi:include href="xml/api-index-1.30.xml"><xi:fallback /></xi:include>
   </index>
+  <index id="api-index-1-32" role="1.32">
+    <title>Index of new symbols in 1.32</title>
+    <xi:include href="xml/api-index-1.32.xml"><xi:fallback /></xi:include>
+  </index>
 
 </book>
diff --git a/docs/pango-sections.txt b/docs/pango-sections.txt
index 1c6fd27..93f256c 100644
--- a/docs/pango-sections.txt
+++ b/docs/pango-sections.txt
@@ -1087,6 +1087,7 @@ pango_version_check
 <FILE>vertical</FILE>
 PangoGravity
 PangoGravityHint
+PANGO_GRAVITY_IS_IMPROPER
 PANGO_GRAVITY_IS_VERTICAL
 pango_gravity_get_for_matrix
 pango_gravity_get_for_script
diff --git a/docs/tmpl/vertical.sgml b/docs/tmpl/vertical.sgml
index 5d0ab51..174427e 100644
--- a/docs/tmpl/vertical.sgml
+++ b/docs/tmpl/vertical.sgml
@@ -96,6 +96,14 @@ pango_attr_gravity_hint_new()
 @PANGO_GRAVITY_HINT_STRONG: 
 @PANGO_GRAVITY_HINT_LINE: 
 
+<!-- ##### MACRO PANGO_GRAVITY_IS_IMPROPER ##### -->
+<para>
+
+</para>
+
+ gravity:
+
+
 <!-- ##### MACRO PANGO_GRAVITY_IS_VERTICAL ##### -->
 <para>
 
diff --git a/pango/pango-gravity.h b/pango/pango-gravity.h
index d2fa964..eb2c4d3 100644
--- a/pango/pango-gravity.h
+++ b/pango/pango-gravity.h
@@ -94,6 +94,20 @@ typedef enum {
 #define PANGO_GRAVITY_IS_VERTICAL(gravity) \
 	((gravity) == PANGO_GRAVITY_EAST || (gravity) == PANGO_GRAVITY_WEST)
 
+/**
+ * PANGO_GRAVITY_IS_IMPROPER:
+ * @gravity: the #PangoGravity to check
+ *
+ * Whether a #PangoGravity represents a gravity that results in reversal of text direction.
+ *
+ * Returns: %TRUE if @gravity is %PANGO_GRAVITY_WEST or %PANGO_GRAVITY_NORTH,
+ *          %FALSE otherwise.
+ *
+ * Since: 1.32
+ **/
+#define PANGO_GRAVITY_IS_IMPROPER(gravity) \
+	((gravity) == PANGO_GRAVITY_WEST || (gravity) == PANGO_GRAVITY_NORTH)
+
 #include <pango/pango-matrix.h>
 #include <pango/pango-script.h>
 



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