summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2012-08-22 10:54:29 -0400
committerBehdad Esfahbod <behdad@behdad.org>2012-08-23 10:55:38 -0400
commit561c8eac09f20cf01fd5b9278c8778dbeb45fd2f (patch)
tree596c08cd8b16295bc98f0c4ff159f5ebec290a70
parented0cb250eea0fd71cad6397ecd9ef86a387f49c4 (diff)
downloadpango-561c8eac09f20cf01fd5b9278c8778dbeb45fd2f.tar.gz
Add PANGO_GRAVITY_IS_IMPROPER
-rw-r--r--docs/pango-docs.sgml4
-rw-r--r--docs/pango-sections.txt1
-rw-r--r--docs/tmpl/vertical.sgml8
-rw-r--r--pango/pango-gravity.h14
4 files changed, 27 insertions, 0 deletions
diff --git a/docs/pango-docs.sgml b/docs/pango-docs.sgml
index f5088df8..fe7d0182 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 1c6fd279..93f256c5 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 5d0ab511..174427ee 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 d2fa9647..eb2c4d3d 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>