/usr/include/graphite/ITextSource.h is in libgraphite-dev 1:2.3.1-0.2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | /*--------------------------------------------------------------------*//*:Ignore this sentence.
Copyright (C) 1999, 2001 SIL International. All rights reserved.
Distributable under the terms of either the Common Public License or the
GNU Lesser General Public License, as specified in the LICENSING.txt file.
File: ITextSource.h
Responsibility: Sharon Correll
Last reviewed: Not yet.
Description:
An interface for a text source that is used by the Graphite engine.
-------------------------------------------------------------------------------*//*:End Ignore*/
#ifdef _MSC_VER
#pragma once
#endif
#ifndef IGRTXTSRC_INCLUDED
#define IGRTXTSRC_INCLUDED
#include "GrAppData.h"
#include "GrStructs.h"
#include "GrResult.h"
namespace gr
{
/*----------------------------------------------------------------------------------------------
Class: ITextSource
This class provides an interface for a text source for the Graphite engine.
----------------------------------------------------------------------------------------------*/
class ITextSource
{
public:
virtual ~ITextSource() {};
virtual UtfType utfEncodingForm() = 0;
virtual size_t getLength() = 0;
virtual size_t fetch(toffset ichMin, size_t cch, utf32 * prgchBuffer) = 0;
virtual size_t fetch(toffset ichMin, size_t cch, utf16 * prgchwBuffer) = 0;
virtual size_t fetch(toffset ichMin, size_t cch, utf8 * prgchsBuffer) = 0;
virtual bool getRightToLeft(toffset ich) = 0;
virtual unsigned int getDirectionDepth(toffset ich) = 0;
virtual float getVerticalOffset(toffset ich) = 0;
virtual isocode getLanguage(toffset ich) = 0;
virtual std::pair<toffset, toffset> propertyRange(toffset ich) = 0;
virtual size_t getFontFeatures(toffset ich, FeatureSetting * prgfset) = 0;
virtual bool sameSegment(toffset ich1, toffset ich2) = 0;
};
/*----------------------------------------------------------------------------------------------
Class: IColorTextSource
Defines a method to get the color informtion from the text source.
It is needed for SegmentPainters that want to handle color.
----------------------------------------------------------------------------------------------*/
class IColorTextSource : public ITextSource
{
public:
virtual void getColors(toffset ich, int * pclrFore, int * pclrBack) = 0;
};
} // namespace gr
#if defined(GR_NO_NAMESPACE)
using namespace gr;
#endif
#endif // !IGRTXTSRC_INCLUDED
|