From: handa Date: Thu, 20 May 2004 06:19:30 +0000 (+0000) Subject: (struct MFrame): New member tick. X-Git-Tag: withdl~203 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=1b8acb0044204c7ac5673f193a107abb98f8381e;p=m17n%2Fm17n-lib.git (struct MFrame): New member tick. (struct MGlyphString): New member tick. (mwin__draw_rect, mwin__draw_empty_boxes): Extern them. (mwin__xft_open, mwin__xft_close, mwin__xft_get_metric) (mwin__xft_render): Delete extern. --- diff --git a/src/internal-gui.h b/src/internal-gui.h index 789b719..325a41e 100644 --- a/src/internal-gui.h +++ b/src/internal-gui.h @@ -69,6 +69,10 @@ struct MFrame /** List of realized fontsets. */ MPlist *realized_fontset_list; + + /** Initialized to 0 and incremented on each modification of a face + on which one of the realized faces is based. */ + unsigned tick; }; enum glyph_type @@ -103,6 +107,9 @@ struct MGlyphString { M17NObject head; + MFrame *frame; + int tick; + int size, inc, used; MGlyph *glyphs; MText *mt; @@ -230,6 +237,16 @@ extern void mwin__fill_space (MFrame *frame, MDrawWindow win, int x, int y, int width, int height, MDrawRegion region); +extern void mwin__draw_rect (MFrame *frame, MDrawWindow win, + MRealizedFace *face, + int x, int y, int width, int height, + MDrawRegion region); + +extern void mwin__draw_empty_boxes (MDrawWindow win, int x, int y, + MGlyphString *gstring, + MGlyph *from, MGlyph *to, + int reverse, MDrawRegion region); + extern void mwin__draw_hline (MFrame *frame, MDrawWindow win, MGlyphString *gstring, MRealizedFace *rface, int reverse, @@ -284,18 +301,4 @@ extern void mwin__adjust_window (MFrame *frame, MDrawWindow win, extern MSymbol mwin__parse_event (MFrame *frame, void *arg, int *modifiers); -#ifdef HAVE_XFT2 - -#include -#include FT_FREETYPE_H - -extern void *mwin__xft_open (MFrame *frame, char *fontname, int size); -extern void mwin__xft_close (void *xft_info); -extern void mwin__xft_get_metric (void *xft_info, FT_Face ft_face, MGlyph *g); -extern void mwin__xft_render (MDrawWindow win, int x, int y, - MGlyphString *gstring, MGlyph *from, MGlyph *to, - int reverse, MDrawRegion region, - void *xft_info, FT_Face ft_face); -#endif /* HAVE_XFT2 */ - #endif /* _M_INTERNAL_GUI_H */