/usr/include/SDL_Pango.h is in libsdl-pango-dev 0.1.2-6.
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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | /* SDL_Pango.h -- A companion library to SDL for working with Pango.
Copyright (C) 2004 NAKAMURA Ken'ichi
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser 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.
*/
/*! @file
@brief Header file of SDL_Pango
@author NAKAMURA Ken'ichi
@date 2004/08/26
$Revision: 1.3 $
*/
#ifndef SDL_PANGO_H
#define SDL_PANGO_H
#define SDL_PANGO_HAS_GC_EXTENSIONS
#include "SDL.h"
#include "begin_code.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _contextImpl SDLPango_Context;
/*!
General 4 X 4 matrix struct.
*/
typedef struct _SDLPango_Matrix {
Uint8 m[4][4]; /*! Matrix variables */
} SDLPango_Matrix;
/*!
Specifies white back and black letter.
*/
extern const SDLPango_Matrix *MATRIX_WHITE_BACK;
/*!
Specifies black back and white letter.
*/
extern const SDLPango_Matrix *MATRIX_BLACK_BACK;
/*!
Specifies transparent back and black letter.
*/
extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_BLACK_LETTER;
/*!
Specifies transparent back and white letter.
*/
extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_WHITE_LETTER;
/*!
Specifies transparent back and transparent letter.
This is useful for KARAOKE like rendering.
*/
extern const SDLPango_Matrix *MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER;
/*!
Specifies direction of text. See Pango reference for detail
*/
typedef enum {
SDLPANGO_DIRECTION_LTR, /*! Left to right */
SDLPANGO_DIRECTION_RTL, /*! Right to left */
SDLPANGO_DIRECTION_WEAK_LTR, /*! Left to right (weak) */
SDLPANGO_DIRECTION_WEAK_RTL, /*! Right to left (weak) */
SDLPANGO_DIRECTION_NEUTRAL /*! Neutral */
} SDLPango_Direction;
/*!
Specifies alignment of text. See Pango reference for detail
*/
typedef enum {
SDLPANGO_ALIGN_LEFT,
SDLPANGO_ALIGN_CENTER,
SDLPANGO_ALIGN_RIGHT
} SDLPango_Alignment;
extern DECLSPEC int SDLCALL SDLPango_Init();
extern DECLSPEC int SDLCALL SDLPango_WasInit();
extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext_GivenFontDesc(const char* font_desc);
extern DECLSPEC SDLPango_Context* SDLCALL SDLPango_CreateContext();
extern DECLSPEC void SDLCALL SDLPango_FreeContext(
SDLPango_Context *context);
extern DECLSPEC void SDLCALL SDLPango_SetSurfaceCreateArgs(
SDLPango_Context *context,
Uint32 flags,
int depth,
Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask);
extern DECLSPEC SDL_Surface * SDLCALL SDLPango_CreateSurfaceDraw(
SDLPango_Context *context);
extern DECLSPEC void SDLCALL SDLPango_Draw(
SDLPango_Context *context,
SDL_Surface *surface,
int x, int y);
extern DECLSPEC void SDLCALL SDLPango_SetDpi(
SDLPango_Context *context,
double dpi_x, double dpi_y);
extern DECLSPEC void SDLCALL SDLPango_SetMinimumSize(
SDLPango_Context *context,
int width, int height);
extern DECLSPEC void SDLCALL SDLPango_SetDefaultColor(
SDLPango_Context *context,
const SDLPango_Matrix *color_matrix);
extern DECLSPEC int SDLCALL SDLPango_GetLayoutWidth(
SDLPango_Context *context);
extern DECLSPEC int SDLCALL SDLPango_GetLayoutHeight(
SDLPango_Context *context);
extern DECLSPEC void SDLCALL SDLPango_SetMarkup(
SDLPango_Context *context,
const char *markup,
int length);
extern DECLSPEC void SDLCALL SDLPango_SetText_GivenAlignment(
SDLPango_Context *context,
const char *text,
int length,
SDLPango_Alignment alignment);
extern DECLSPEC void SDLCALL SDLPango_SetText(
SDLPango_Context *context,
const char *markup,
int length);
extern DECLSPEC void SDLCALL SDLPango_SetLanguage(
SDLPango_Context *context,
const char *language_tag);
extern DECLSPEC void SDLCALL SDLPango_SetBaseDirection(
SDLPango_Context *context,
SDLPango_Direction direction);
#ifdef __FT2_BUILD_UNIX_H__
extern DECLSPEC void SDLCALL SDLPango_CopyFTBitmapToSurface(
const FT_Bitmap *bitmap,
SDL_Surface *surface,
const SDLPango_Matrix *matrix,
SDL_Rect *rect);
#endif /* __FT2_BUILD_UNIX_H__ */
#ifdef __PANGO_H__
extern DECLSPEC PangoFontMap* SDLCALL SDLPango_GetPangoFontMap(
SDLPango_Context *context);
extern DECLSPEC PangoFontDescription* SDLCALL SDLPango_GetPangoFontDescription(
SDLPango_Context *context);
extern DECLSPEC PangoLayout* SDLCALL SDLPango_GetPangoLayout(
SDLPango_Context *context);
#endif /* __PANGO_H__ */
#ifdef __cplusplus
}
#endif
#include "close_code.h"
#endif /* SDL_PANGO_H */
|