This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 16a50bf6b0c956641c452653bd38621d668aef66 (commit)
via 1ee71956ba9e5ca2cd298fa3702e4036bbf59225 (commit)
from 4fd5560abf4f40f8436fd4af18d604ceff3d64b8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/16a50bf6b0c956641c452653bd38621d668a…
commit 16a50bf6b0c956641c452653bd38621d668aef66
Merge: 1ee7195 4fd5560
Author: BlueBear <jiri.bluebear.dluhos(a)gmail.com>
Date: Sun May 1 20:15:19 2011 +0200
Merge ssh://repo.or.cz/srv/git/gfxprim
http://repo.or.cz/w/gfxprim.git/commit/1ee71956ba9e5ca2cd298fa3702e4036bbf5…
commit 1ee71956ba9e5ca2cd298fa3702e4036bbf59225
Author: BlueBear <jiri.bluebear.dluhos(a)gmail.com>
Date: Sun May 1 20:14:18 2011 +0200
Clarified comments and added TOP and BOTTOM.
diff --git a/core/GP_Text.h b/core/GP_Text.h
index e4645ec..35fc68e 100644
--- a/core/GP_Text.h
+++ b/core/GP_Text.h
@@ -28,15 +28,27 @@
#include "GP_Context.h"
-/* Where the text should be drawn relatively to the specified point */
+/* How the rendered text should be aligned.
+ * For GP_Text(), the alignment is relative to the specified point:
+ *
+ * - GP_ALIGN_LEFT draws the text to the left of the point,
+ * - GP_ALIGN_CENTER centers it at the point horizontally,
+ * - GP_ALIGN_RIGHT draws the text to the right of the point
+ * - GP_VALIGN_ABOVE (or TOP) draws the text above the point
+ * - GP_VALIGN_CENTER centers the text vertically at the point
+ * - GP_VALIGN_BASELINE places the text baseline at the point
+ * - GP_VALIGN_BELOW (or BOTTOM) draws the text below the point
+ */
typedef enum GP_TextAlign {
- GP_ALIGN_LEFT = 0x01, /* to the left from the point */
- GP_ALIGN_CENTER = 0x02, /* centered on the point */
- GP_ALIGN_RIGHT = 0x03, /* to the right from the point */
- GP_VALIGN_ABOVE = 0x10, /* above the point */
- GP_VALIGN_CENTER = 0x20, /* centered on the point */
- GP_VALIGN_BASELINE = 0x30, /* baseline is on the point */
- GP_VALIGN_BELOW = 0x40 /* below the point */
+ GP_ALIGN_LEFT = 0x01,
+ GP_ALIGN_CENTER = 0x02,
+ GP_ALIGN_RIGHT = 0x03,
+ GP_VALIGN_ABOVE = 0x10,
+ GP_VALIGN_TOP = GP_VALIGN_ABOVE,
+ GP_VALIGN_CENTER = 0x20,
+ GP_VALIGN_BASELINE = 0x30,
+ GP_VALIGN_BELOW = 0x40,
+ GP_VALIGN_BOTTOM = GP_VALIGN_BELOW,
} GP_TextAlign;
GP_RetCode GP_Text(GP_Context *context, const GP_TextStyle *style,
-----------------------------------------------------------------------
Summary of changes:
core/GP_Text.h | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")