Logo Search packages:      
Sourcecode: pango-graphite version File versions  Download package

graphitecache.h

/* Pango
 * graphitecache.h: Graphite caching for pango
 *
 * Copyright (C) 2005-2006 SIL International
 * Author: Daniel Glassey <wdg@debian.org>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.      See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#include <pango/pango-glyph.h>
#include <pango/pango-break.h>
#include "PangoTextSrc.h"
#include "PangoGrFont.h"
#include <graphite/Segment.h>

using gr::PangoTextSrc;
using gr::PangoGrFont;
using gr::RangeSegment;

#define MAX_CACHE 200

#ifdef __cplusplus
extern "C" {
#endif

RangeSegment *graphite_GetSegment(PangoTextSrc *text, PangoGrFont *pFont);
void graphite_CacheSegment(PangoTextSrc * & text, PangoGrFont * & pfont,
      RangeSegment *pgrseg);

PangoGlyphString *graphite_GetGlyphString(PangoTextSrc *text, PangoGrFont *pFont);
void graphite_CacheGlyphString(PangoTextSrc * & text, PangoGrFont * & pfont,
      PangoGlyphString *pglyphs);

PangoLogAttr *graphite_GetLogAttr(PangoTextSrc *text, PangoGrFont *pFont);
void graphite_CacheLogAttr(PangoTextSrc * & text, PangoGrFont * & pfont,
      int attr_len, PangoLogAttr *pattrs);


#ifdef __cplusplus
}
#endif

Generated by  Doxygen 1.6.0   Back to index