diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-07-29 18:41:25 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-11-02 14:40:23 -0500 |
commit | 02a370697d25b986dbf1d5c38f46a89a4833b495 (patch) | |
tree | 5ca193491e60f9ec8238d0d3093103014edf52a6 /src/hb-buffer.h | |
parent | 7cda6fa24c26887c5543d0657b07aad466452cb3 (diff) |
[HB] Move direction to buffer
Diffstat (limited to 'src/hb-buffer.h')
-rw-r--r-- | src/hb-buffer.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/hb-buffer.h b/src/hb-buffer.h index 197c921e..1376ad4c 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -32,6 +32,13 @@ HB_BEGIN_DECLS +typedef enum _hb_direction_t { + HB_DIRECTION_LTR, + HB_DIRECTION_RTL, + HB_DIRECTION_TTB, + HB_DIRECTION_BTT +} hb_direction_t; + /* XXX Hide structs? */ typedef struct _hb_glyph_info_t { @@ -72,6 +79,8 @@ typedef struct _hb_buffer_t { hb_glyph_info_t *out_string; hb_glyph_info_t *alt_string; hb_glyph_position_t *positions; + + hb_direction_t direction; unsigned int max_lig_id; } hb_buffer_t; @@ -94,6 +103,11 @@ hb_buffer_add_glyph (hb_buffer_t *buffer, unsigned int properties, unsigned int cluster); +void +hb_buffer_set_direction (hb_buffer_t *buffer, + hb_direction_t direction); + + HB_END_DECLS #endif /* HB_BUFFER_H */ |