summaryrefslogtreecommitdiff
path: root/pango/pango-gravity.h
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 /pango/pango-gravity.h
parented0cb250eea0fd71cad6397ecd9ef86a387f49c4 (diff)
downloadpango-561c8eac09f20cf01fd5b9278c8778dbeb45fd2f.tar.gz
Add PANGO_GRAVITY_IS_IMPROPER
Diffstat (limited to 'pango/pango-gravity.h')
-rw-r--r--pango/pango-gravity.h14
1 files changed, 14 insertions, 0 deletions
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>