diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-01-08 22:45:51 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-01-08 22:45:51 +0000 |
commit | 82cc8362b2a84b3a6f8e584a6a8b53e68fa1cc61 (patch) | |
tree | d6ee06b6ad294fac6cbd2d9d42dc23c6fbb60bf5 /pango/pango-item.h | |
parent | 8e88fecfffdc0a5f25dc98bcc2fa79dac0938670 (diff) | |
download | pango-82cc8362b2a84b3a6f8e584a6a8b53e68fa1cc61.tar.gz |
Don't introduce bitfields in public struct and rename PangoAnalysis.
2007-01-08 Behdad Esfahbod <behdad@gnome.org>
* docs/pango-sections.txt:
* docs/tmpl/glyphs.sgml:
* docs/tmpl/main.sgml:
* pango/pango-context.c (itemize_state_add_character):
* pango/pango-item.h:
* pango/pango-layout.c (pango_layout_run_get_extents):
* pango/pango-renderer.c (pango_renderer_draw_layout_line):
Don't introduce bitfields in public struct and rename PangoAnalysis.
centered_baseline to PangoAnalysis.flags and introduce
PANGO_ANALYSIS_FLAGS_CENTERED_BASELINE.
svn path=/trunk/; revision=2134
Diffstat (limited to 'pango/pango-item.h')
-rw-r--r-- | pango/pango-item.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pango/pango-item.h b/pango/pango-item.h index cf9bfe84..cdc887e4 100644 --- a/pango/pango-item.h +++ b/pango/pango-item.h @@ -29,15 +29,18 @@ G_BEGIN_DECLS typedef struct _PangoAnalysis PangoAnalysis; typedef struct _PangoItem PangoItem; +/* TODO: if more flags are needed, turn this into a real PangoAnalysisFlags enum */ +#define PANGO_ANALYSIS_FLAG_CENTERED_BASELINE (1 << 0) + struct _PangoAnalysis { PangoEngineShape *shape_engine; PangoEngineLang *lang_engine; PangoFont *font; - guint level : 8; - guint gravity : 3; /* PangoGravity */ - guint centered_baseline : 1; /* gboolean */ + guint8 level; + guint8 gravity; /* PangoGravity */ + guint8 flags; PangoLanguage *language; GSList *extra_attrs; |