2000-10-28 15:17:11 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* ftcsbits.h */
|
|
|
|
/* */
|
2000-10-31 20:42:53 +01:00
|
|
|
/* A small-bitmap cache (specification). */
|
2000-10-28 15:17:11 +02:00
|
|
|
/* */
|
|
|
|
/* Copyright 2000 by */
|
|
|
|
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
|
|
|
/* */
|
|
|
|
/* This file is part of the FreeType project, and may only be used, */
|
|
|
|
/* modified, and distributed under the terms of the FreeType project */
|
|
|
|
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
|
|
|
|
/* this file you indicate that you have read the license and */
|
|
|
|
/* understand and accept it fully. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
2000-10-31 20:42:53 +01:00
|
|
|
|
2000-10-28 15:17:11 +02:00
|
|
|
#ifndef FTCSBITS_H
|
|
|
|
#define FTCSBITS_H
|
|
|
|
|
2000-10-31 20:42:53 +01:00
|
|
|
|
2000-10-31 21:42:18 +01:00
|
|
|
#include <freetype/cache/ftcchunk.h>
|
2000-10-31 23:13:54 +01:00
|
|
|
#include <freetype/cache/ftcimage.h>
|
2000-10-28 15:17:11 +02:00
|
|
|
|
2000-10-31 20:42:53 +01:00
|
|
|
|
2000-10-28 15:17:11 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2000-10-31 20:42:53 +01:00
|
|
|
/* handle to small bitmap */
|
|
|
|
typedef struct FTC_SBitRec_* FTC_SBit;
|
2000-10-28 15:17:11 +02:00
|
|
|
|
2000-10-31 20:42:53 +01:00
|
|
|
/* handle to small bitmap cache */
|
|
|
|
typedef struct FTC_SBit_CacheRec_* FTC_SBit_Cache;
|
2000-10-28 15:17:11 +02:00
|
|
|
|
2000-10-31 21:42:18 +01:00
|
|
|
/* a compact structure used to hold a single small bitmap */
|
2000-10-31 20:42:53 +01:00
|
|
|
typedef struct FTC_SBitRec_
|
2000-10-28 15:17:11 +02:00
|
|
|
{
|
|
|
|
FT_Byte width;
|
|
|
|
FT_Byte height;
|
2000-10-29 01:34:45 +02:00
|
|
|
FT_Char left;
|
|
|
|
FT_Char top;
|
2000-10-28 15:17:11 +02:00
|
|
|
|
|
|
|
FT_Byte format;
|
2000-10-29 01:34:45 +02:00
|
|
|
FT_Char pitch;
|
|
|
|
FT_Char xadvance;
|
|
|
|
FT_Char yadvance;
|
2000-10-28 15:17:11 +02:00
|
|
|
|
|
|
|
FT_Byte* buffer;
|
2000-10-31 21:42:18 +01:00
|
|
|
|
2000-10-28 15:17:11 +02:00
|
|
|
} FTC_SBitRec;
|
|
|
|
|
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( FT_Error ) FTC_SBit_Cache_New( FTC_Manager manager,
|
|
|
|
FTC_SBit_Cache* acache );
|
2000-10-28 15:17:11 +02:00
|
|
|
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT( FT_Error ) FTC_SBit_Cache_Lookup( FTC_SBit_Cache cache,
|
|
|
|
FTC_Image_Desc* desc,
|
|
|
|
FT_UInt gindex,
|
|
|
|
FTC_SBit *sbit );
|
2000-10-28 15:17:11 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* FTCSBITS_H */
|
|
|
|
|
|
|
|
|
2000-10-31 20:42:53 +01:00
|
|
|
/* END */
|