| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| 3 |
<title>SDL_Pango: SDL_Pango.h Source File</title> |
| 4 |
<link href="doxygen.css" rel="stylesheet" type="text/css"> |
| 5 |
</head><body> |
| 6 |
|
| 7 |
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="globals.html">File Members</a></div> |
| 8 |
<div class="nav"> |
| 9 |
<a class="el" href="dir_000000.html">src</a></div> |
| 10 |
<h1>SDL_Pango.h</h1><a href="_s_d_l___pango_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/* SDL_Pango.h -- A companion library to SDL for working with Pango.</span> |
| 11 |
00002 <span class="comment"> Copyright (C) 2004 NAKAMURA Ken'ichi</span> |
| 12 |
00003 <span class="comment"></span> |
| 13 |
00004 <span class="comment"> This library is free software; you can redistribute it and/or</span> |
| 14 |
00005 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span> |
| 15 |
00006 <span class="comment"> License as published by the Free Software Foundation; either</span> |
| 16 |
00007 <span class="comment"> version 2.1 of the License, or (at your option) any later version.</span> |
| 17 |
00008 <span class="comment"></span> |
| 18 |
00009 <span class="comment"> This library is distributed in the hope that it will be useful,</span> |
| 19 |
00010 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span> |
| 20 |
00011 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span> |
| 21 |
00012 <span class="comment"> Lesser General Public License for more details.</span> |
| 22 |
00013 <span class="comment"></span> |
| 23 |
00014 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span> |
| 24 |
00015 <span class="comment"> License along with this library; if not, write to the Free Software</span> |
| 25 |
00016 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.</span> |
| 26 |
00017 <span class="comment">*/</span> |
| 27 |
00018 |
| 28 |
00027 <span class="preprocessor">#ifndef SDL_PANGO_H</span> |
| 29 |
00028 <span class="preprocessor"></span><span class="preprocessor">#define SDL_PANGO_H</span> |
| 30 |
00029 <span class="preprocessor"></span> |
| 31 |
00030 <span class="preprocessor">#include "SDL.h"</span> |
| 32 |
00031 |
| 33 |
00032 <span class="preprocessor">#include "begin_code.h"</span> |
| 34 |
00033 |
| 35 |
00034 <span class="preprocessor">#ifdef __cplusplus</span> |
| 36 |
00035 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> { |
| 37 |
00036 <span class="preprocessor">#endif</span> |
| 38 |
00037 <span class="preprocessor"></span> |
| 39 |
00038 |
| 40 |
00039 |
| 41 |
00040 <span class="keyword">typedef</span> <span class="keyword">struct </span>_contextImpl SDLPango_Context; |
| 42 |
00041 |
| 43 |
<a name="l00045"></a><a class="code" href="struct___s_d_l_pango___matrix.html">00045</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct___s_d_l_pango___matrix.html">_SDLPango_Matrix</a> { |
| 44 |
00046 Uint8 m[4][4]; |
| 45 |
00047 } <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a>; |
| 46 |
00048 |
| 47 |
00049 <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> _MATRIX_WHITE_BACK |
| 48 |
00050 = {255, 0, 0, 0, |
| 49 |
00051 255, 0, 0, 0, |
| 50 |
00052 255, 0, 0, 0, |
| 51 |
00053 255, 255, 0, 0,}; |
| 52 |
00054 |
| 53 |
<a name="l00058"></a><a class="code" href="_s_d_l___pango_8h.html#a3">00058</a> <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> *<a class="code" href="_s_d_l___pango_8h.html#a3">MATRIX_WHITE_BACK</a> = &_MATRIX_WHITE_BACK; |
| 54 |
00059 |
| 55 |
00060 <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> _MATRIX_BLACK_BACK |
| 56 |
00061 = {0, 255, 0, 0, |
| 57 |
00062 0, 255, 0, 0, |
| 58 |
00063 0, 255, 0, 0, |
| 59 |
00064 255, 255, 0, 0,}; |
| 60 |
<a name="l00068"></a><a class="code" href="_s_d_l___pango_8h.html#a5">00068</a> <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> *<a class="code" href="_s_d_l___pango_8h.html#a5">MATRIX_BLACK_BACK</a> = &_MATRIX_BLACK_BACK; |
| 61 |
00069 |
| 62 |
00070 <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> _MATRIX_TRANSPARENT_BACK_BLACK_LETTER |
| 63 |
00071 = {0, 0, 0, 0, |
| 64 |
00072 0, 0, 0, 0, |
| 65 |
00073 0, 0, 0, 0, |
| 66 |
00074 0, 255, 0, 0,}; |
| 67 |
<a name="l00078"></a><a class="code" href="_s_d_l___pango_8h.html#a7">00078</a> <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> *<a class="code" href="_s_d_l___pango_8h.html#a7">MATRIX_TRANSPARENT_BACK_BLACK_LETTER</a> = &_MATRIX_TRANSPARENT_BACK_BLACK_LETTER; |
| 68 |
00079 |
| 69 |
00080 <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> _MATRIX_TRANSPARENT_BACK_WHITE_LETTER |
| 70 |
00081 = {255, 255, 0, 0, |
| 71 |
00082 255, 255, 0, 0, |
| 72 |
00083 255, 255, 0, 0, |
| 73 |
00084 0, 255, 0, 0,}; |
| 74 |
<a name="l00088"></a><a class="code" href="_s_d_l___pango_8h.html#a9">00088</a> <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> *<a class="code" href="_s_d_l___pango_8h.html#a9">MATRIX_TRANSPARENT_BACK_WHITE_LETTER</a> = &_MATRIX_TRANSPARENT_BACK_WHITE_LETTER; |
| 75 |
00089 |
| 76 |
00090 <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> _MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER |
| 77 |
00091 = {255, 255, 0, 0, |
| 78 |
00092 255, 255, 0, 0, |
| 79 |
00093 255, 255, 0, 0, |
| 80 |
00094 0, 0, 0, 0,}; |
| 81 |
<a name="l00099"></a><a class="code" href="_s_d_l___pango_8h.html#a11">00099</a> <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> *<a class="code" href="_s_d_l___pango_8h.html#a11">MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER</a> = &_MATRIX_TRANSPARENT_BACK_TRANSPARENT_LETTER; |
| 82 |
00100 |
| 83 |
<a name="l00104"></a><a class="code" href="_s_d_l___pango_8h.html#a33">00104</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> { |
| 84 |
00105 SDLPANGO_DIRECTION_LTR, |
| 85 |
00106 SDLPANGO_DIRECTION_RTL, |
| 86 |
00107 SDLPANGO_DIRECTION_WEAK_LTR, |
| 87 |
00108 SDLPANGO_DIRECTION_WEAK_RTL, |
| 88 |
00109 <a class="code" href="_s_d_l___pango_8h.html#a33a16">SDLPANGO_DIRECTION_NEUTRAL</a> |
| 89 |
00110 } SDLPango_Direction; |
| 90 |
00111 |
| 91 |
00112 |
| 92 |
00113 |
| 93 |
00114 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="_s_d_l___pango_8c.html#a17">SDLPango_Init</a>(); |
| 94 |
00115 |
| 95 |
00116 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="_s_d_l___pango_8c.html#a18">SDLPango_WasInit</a>(); |
| 96 |
00117 |
| 97 |
00118 <span class="keyword">extern</span> DECLSPEC SDLPango_Context* SDLCALL <a class="code" href="_s_d_l___pango_8c.html#a23">SDLPango_CreateContext</a>(); |
| 98 |
00119 |
| 99 |
00120 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a20">SDLPango_FreeContext</a>( |
| 100 |
00121 SDLPango_Context *context); |
| 101 |
00122 |
| 102 |
00123 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a21">SDLPango_SetSurfaceCreateArgs</a>( |
| 103 |
00124 SDLPango_Context *context, |
| 104 |
00125 Uint32 flags, |
| 105 |
00126 <span class="keywordtype">int</span> depth, |
| 106 |
00127 Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask); |
| 107 |
00128 |
| 108 |
00129 <span class="keyword">extern</span> DECLSPEC SDL_Surface * SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a22">SDLPango_CreateSurfaceDraw</a>( |
| 109 |
00130 SDLPango_Context *context); |
| 110 |
00131 |
| 111 |
00132 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a23">SDLPango_Draw</a>( |
| 112 |
00133 SDLPango_Context *context, |
| 113 |
00134 SDL_Surface *surface, |
| 114 |
00135 <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y); |
| 115 |
00136 |
| 116 |
00137 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a24">SDLPango_SetDpi</a>( |
| 117 |
00138 SDLPango_Context *context, |
| 118 |
00139 <span class="keywordtype">double</span> dpi_x, <span class="keywordtype">double</span> dpi_y); |
| 119 |
00140 |
| 120 |
00141 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a25">SDLPango_SetMinimumSize</a>( |
| 121 |
00142 SDLPango_Context *context, |
| 122 |
00143 <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height); |
| 123 |
00144 |
| 124 |
00145 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a26">SDLPango_SetDefaultColor</a>( |
| 125 |
00146 SDLPango_Context *context, |
| 126 |
00147 <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> *color_matrix); |
| 127 |
00148 |
| 128 |
00149 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a27">SDLPango_GetLayoutWidth</a>( |
| 129 |
00150 SDLPango_Context *context); |
| 130 |
00151 |
| 131 |
00152 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">int</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a28">SDLPango_GetLayoutHeight</a>( |
| 132 |
00153 SDLPango_Context *context); |
| 133 |
00154 |
| 134 |
00155 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a29">SDLPango_SetMarkup</a>( |
| 135 |
00156 SDLPango_Context *context, |
| 136 |
00157 <span class="keyword">const</span> <span class="keywordtype">char</span> *markup, |
| 137 |
00158 <span class="keywordtype">int</span> length); |
| 138 |
00159 |
| 139 |
00160 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a30">SDLPango_SetText</a>( |
| 140 |
00161 SDLPango_Context *context, |
| 141 |
00162 <span class="keyword">const</span> <span class="keywordtype">char</span> *markup, |
| 142 |
00163 <span class="keywordtype">int</span> length); |
| 143 |
00164 |
| 144 |
00165 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a31">SDLPango_SetLanguage</a>( |
| 145 |
00166 SDLPango_Context *context, |
| 146 |
00167 <span class="keyword">const</span> <span class="keywordtype">char</span> *language_tag); |
| 147 |
00168 |
| 148 |
00169 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8h.html#a32">SDLPango_SetBaseDirection</a>( |
| 149 |
00170 SDLPango_Context *context, |
| 150 |
00171 SDLPango_Direction direction); |
| 151 |
00172 |
| 152 |
00173 |
| 153 |
00174 <span class="preprocessor">#ifdef __FT2_BUILD_UNIX_H__</span> |
| 154 |
00175 <span class="preprocessor"></span> |
| 155 |
00176 <span class="keyword">extern</span> DECLSPEC <span class="keywordtype">void</span> SDLCALL <a class="code" href="_s_d_l___pango_8c.html#a22">SDLPango_CopyFTBitmapToSurface</a>( |
| 156 |
00177 <span class="keyword">const</span> FT_Bitmap *bitmap, |
| 157 |
00178 SDL_Surface *surface, |
| 158 |
00179 <span class="keyword">const</span> <a class="code" href="struct___s_d_l_pango___matrix.html">SDLPango_Matrix</a> *matrix, |
| 159 |
00180 SDL_Rect *rect); |
| 160 |
00181 |
| 161 |
00182 <span class="preprocessor">#endif </span><span class="comment">/* __FT2_BUILD_UNIX_H__ */</span> |
| 162 |
00183 |
| 163 |
00184 |
| 164 |
00185 <span class="preprocessor">#ifdef __PANGO_H__</span> |
| 165 |
00186 <span class="preprocessor"></span> |
| 166 |
00187 <span class="keyword">extern</span> DECLSPEC PangoFontMap* SDLCALL <a class="code" href="_s_d_l___pango_8c.html#a37">SDLPango_GetPangoFontMap</a>( |
| 167 |
00188 SDLPango_Context *context); |
| 168 |
00189 |
| 169 |
00190 <span class="keyword">extern</span> DECLSPEC PangoFontDescription* SDLCALL <a class="code" href="_s_d_l___pango_8c.html#a38">SDLPango_GetPangoFontDescription</a>( |
| 170 |
00191 SDLPango_Context *context); |
| 171 |
00192 |
| 172 |
00193 <span class="keyword">extern</span> DECLSPEC PangoLayout* SDLCALL <a class="code" href="_s_d_l___pango_8c.html#a39">SDLPango_GetPangoLayout</a>( |
| 173 |
00194 SDLPango_Context *context); |
| 174 |
00195 |
| 175 |
00196 <span class="preprocessor">#endif </span><span class="comment">/* __PANGO_H__ */</span> |
| 176 |
00197 |
| 177 |
00198 |
| 178 |
00199 <span class="preprocessor">#ifdef __cplusplus</span> |
| 179 |
00200 <span class="preprocessor"></span>} |
| 180 |
00201 <span class="preprocessor">#endif</span> |
| 181 |
00202 <span class="preprocessor"></span> |
| 182 |
00203 <span class="preprocessor">#include "close_code.h"</span> |
| 183 |
00204 |
| 184 |
00205 <span class="preprocessor">#endif </span><span class="comment">/* SDL_PANGO_H */</span> |
| 185 |
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Dec 9 08:33:15 2004 for SDL_Pango by |
| 186 |
<a href="http://www.doxygen.org/index.html"> |
| 187 |
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address> |
| 188 |
</body> |
| 189 |
</html> |