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 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>GTK+ Foundation Classes</title>
<link href="gfc.css" rel="stylesheet" type="text/css">
<meta content="The GFC Development Team" name="author">
<meta content="Core Library Reference Manual" name="description">
</head>
<body style="color: rgb(0, 0, 0); background-color: rgb(243, 244, 248);"
alink="#000099" link="#000099" vlink="#990099">
<table style="text-align: left; width: 1227px; height: 117px;"
border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="text-align: center; background-color: rgb(255, 255, 255); width: 220px; vertical-align: top;"><img
alt="GFC Logo" src="../images/gfc.png"
style="width: 207px; height: 92px;"></td>
<td
style="text-align: center; background-color: rgb(87, 107, 152); vertical-align: middle;"><img
alt="GFC Title Logo" src="../images/gfc-title.png"
style="width: 418px; height: 76px;"><br>
</td>
</tr>
<tr>
<td
style="text-align: center; background-color: rgb(65, 77, 104); vertical-align: middle;"><big><span
style="color: rgb(255, 255, 153); font-weight: bold;">Reference Manual</span></big><br>
</td>
<td
style="text-align: center; background-color: rgb(148, 164, 200); vertical-align: middle;"><small
style="font-family: helvetica,arial,sans-serif;"><a
href="../html/index.html">Main Page</a> | <a
href="../html/namespaces.html">Namespace List</a> | <a
href="classes.html">Alphabetical List</a> | <a
href="../html/annotated.html">Class List</a> | <a
href="../html/files.html">File List</a></small><br>
</td>
</tr>
</tbody>
</table>
<small> </small>
</body>
</html>
<!-- Generated by Doxygen 1.3.8 -->
<h1>text.hh</h1><a href="text_8hh.html">Go to the documentation of this file.</a><pre class="fragment"><div>00001 <span class="comment">/* GFC-UI: GTK+ Foundation Classes (User Interface Library)</span>
00002 <span class="comment"> * Copyright (C) 2002-2004 The GFC Development Team.</span>
00003 <span class="comment"> *</span>
00004 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
00005 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
00006 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
00007 <span class="comment"> * (at your option) any later version.</span>
00008 <span class="comment"> *</span>
00009 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
00010 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
00011 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
00012 <span class="comment"> * GNU Library General Public License for more details.</span>
00013 <span class="comment"> *</span>
00014 <span class="comment"> * You should have received a copy of the GNU Library General Public License</span>
00015 <span class="comment"> * along with this program; if not, write to the Free Software</span>
00016 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
00017 <span class="comment"> */</span>
00018
00023
00024 <span class="preprocessor">#ifndef GFC_ATK_TEXT_HH</span>
00025 <span class="preprocessor"></span><span class="preprocessor">#define GFC_ATK_TEXT_HH</span>
00026 <span class="preprocessor"></span>
00027 <span class="preprocessor">#ifndef GFC_G_TYPE_HH</span>
00028 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="codeRef" doxygen="gfccore.tag:" href="type_8hh.html">gfc/glib/type.hh</a>></span>
00029 <span class="preprocessor">#endif</span>
00030 <span class="preprocessor"></span>
00031 <span class="preprocessor">#ifndef GFC_ATK_UTIL_HH</span>
00032 <span class="preprocessor"></span><span class="preprocessor">#include <<a class="code" href="util_8hh.html">gfc/atk/util.hh</a>></span>
00033 <span class="preprocessor">#endif</span>
00034 <span class="preprocessor"></span>
00035 <span class="preprocessor">#ifndef __ATK_TEXT_H__</span>
00036 <span class="preprocessor"></span><span class="preprocessor">#include <atk/atktext.h></span>
00037 <span class="preprocessor">#endif</span>
00038 <span class="preprocessor"></span>
00039 <span class="preprocessor">#ifndef _CPP_VECTOR</span>
00040 <span class="preprocessor"></span><span class="preprocessor">#include <vector></span>
00041 <span class="preprocessor">#endif</span>
00042 <span class="preprocessor"></span>
00043 <span class="keyword">namespace </span>GFC {
00044
00045 <span class="keyword">namespace </span>G {
00046 <span class="keyword">class </span>Unichar;
00047 }
00048
00049 <span class="keyword">namespace </span>Atk {
00050
00058
<a name="l00059"></a><a class="code" href="namespaceGFC_1_1Atk.html#a197">00059</a> <span class="keyword">enum</span> <a class="code" href="namespaceGFC_1_1Atk.html#a197">TextAttribute</a>
00060 {
00061 <a class="code" href="namespaceGFC_1_1Atk.html#a197a111">TEXT_ATTR_INVALID</a> = ATK_TEXT_ATTR_INVALID,
00063
00064 <a class="code" href="namespaceGFC_1_1Atk.html#a197a112">TEXT_ATTR_LEFT_MARGIN</a>= ATK_TEXT_ATTR_LEFT_MARGIN,
00066
00067 <a class="code" href="namespaceGFC_1_1Atk.html#a197a113">TEXT_ATTR_RIGHT_MARGIN</a> = ATK_TEXT_ATTR_RIGHT_MARGIN,
00069
00070 <a class="code" href="namespaceGFC_1_1Atk.html#a197a114">TEXT_ATTR_INDENT</a> = ATK_TEXT_ATTR_INDENT,
00072
00073 <a class="code" href="namespaceGFC_1_1Atk.html#a197a115">TEXT_ATTR_INVISIBLE</a> = ATK_TEXT_ATTR_INVISIBLE,
00075
00076 <a class="code" href="namespaceGFC_1_1Atk.html#a197a116">TEXT_ATTR_EDITABLE</a> = ATK_TEXT_ATTR_EDITABLE,
00078
00079 <a class="code" href="namespaceGFC_1_1Atk.html#a197a117">TEXT_ATTR_PIXELS_ABOVE_LINES</a> = ATK_TEXT_ATTR_PIXELS_ABOVE_LINES,
00081
00082 <a class="code" href="namespaceGFC_1_1Atk.html#a197a118">TEXT_ATTR_PIXELS_BELOW_LINES</a> = ATK_TEXT_ATTR_PIXELS_BELOW_LINES,
00084
00085 <a class="code" href="namespaceGFC_1_1Atk.html#a197a119">TEXT_ATTR_PIXELS_INSIDE_WRAP</a> = ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP,
00088
00089 <a class="code" href="namespaceGFC_1_1Atk.html#a197a120">TEXT_ATTR_BG_FULL_HEIGHT</a> = ATK_TEXT_ATTR_BG_FULL_HEIGHT,
00093
00094 <a class="code" href="namespaceGFC_1_1Atk.html#a197a121">TEXT_ATTR_RISE</a> = ATK_TEXT_ATTR_RISE,
00096
00097 <a class="code" href="namespaceGFC_1_1Atk.html#a197a122">TEXT_ATTR_UNDERLINE</a> = ATK_TEXT_ATTR_UNDERLINE,
00099
00100 <a class="code" href="namespaceGFC_1_1Atk.html#a197a123">TEXT_ATTR_STRIKETHROUGH</a> = ATK_TEXT_ATTR_STRIKETHROUGH,
00102
00103 <a class="code" href="namespaceGFC_1_1Atk.html#a197a124">TEXT_ATTR_SIZE</a> = ATK_TEXT_ATTR_SIZE,
00105
00106 <a class="code" href="namespaceGFC_1_1Atk.html#a197a125">TEXT_ATTR_SCALE</a> = ATK_TEXT_ATTR_SCALE,
00108
00109 <a class="code" href="namespaceGFC_1_1Atk.html#a197a126">TEXT_ATTR_WEIGHT</a> = ATK_TEXT_ATTR_WEIGHT,
00111
00112 <a class="code" href="namespaceGFC_1_1Atk.html#a197a127">TEXT_ATTR_LANGUAGE</a> = ATK_TEXT_ATTR_LANGUAGE,
00114
00115 <a class="code" href="namespaceGFC_1_1Atk.html#a197a128">TEXT_ATTR_FAMILY_NAME</a> = ATK_TEXT_ATTR_FAMILY_NAME,
00117
00118 <a class="code" href="namespaceGFC_1_1Atk.html#a197a129">TEXT_ATTR_BG_COLOR</a> = ATK_TEXT_ATTR_BG_COLOR,
00120
00121 <a class="code" href="namespaceGFC_1_1Atk.html#a197a130">TEXT_ATTR_FG_COLOR</a> = ATK_TEXT_ATTR_FG_COLOR,
00123
00124 <a class="code" href="namespaceGFC_1_1Atk.html#a197a131">TEXT_ATTR_BG_STIPPLE</a> = ATK_TEXT_ATTR_BG_STIPPLE,
00126
00127 <a class="code" href="namespaceGFC_1_1Atk.html#a197a132">TEXT_ATTR_FG_STIPPLE</a> = ATK_TEXT_ATTR_FG_STIPPLE,
00129
00130 <a class="code" href="namespaceGFC_1_1Atk.html#a197a133">TEXT_ATTR_WRAP_MODE</a> = ATK_TEXT_ATTR_WRAP_MODE,
00132
00133 <a class="code" href="namespaceGFC_1_1Atk.html#a197a134">TEXT_ATTR_DIRECTION</a> = ATK_TEXT_ATTR_DIRECTION,
00135
00136 <a class="code" href="namespaceGFC_1_1Atk.html#a197a135">TEXT_ATTR_JUSTIFICATION</a> = ATK_TEXT_ATTR_JUSTIFICATION,
00138
00139 <a class="code" href="namespaceGFC_1_1Atk.html#a197a136">TEXT_ATTR_STRETCH</a> = ATK_TEXT_ATTR_STRETCH,
00143
00144 <a class="code" href="namespaceGFC_1_1Atk.html#a197a137">TEXT_ATTR_VARIANT</a> = ATK_TEXT_ATTR_VARIANT,
00146
00147 <a class="code" href="namespaceGFC_1_1Atk.html#a197a138">TEXT_ATTR_STYLE</a> = ATK_TEXT_ATTR_STYLE,
00149
00150 <a class="code" href="namespaceGFC_1_1Atk.html#a197a139">TEXT_ATTR_LAST_DEFINED</a> = ATK_TEXT_ATTR_LAST_DEFINED
00152 };
00153
00157
<a name="l00158"></a><a class="code" href="namespaceGFC_1_1Atk.html#a198">00158</a> <span class="keyword">enum</span> <a class="code" href="namespaceGFC_1_1Atk.html#a198">TextBoundary</a>
00159 {
00160 <a class="code" href="namespaceGFC_1_1Atk.html#a198a140">TEXT_BOUNDARY_CHAR</a> = ATK_TEXT_BOUNDARY_CHAR,
00161 <a class="code" href="namespaceGFC_1_1Atk.html#a198a141">TEXT_BOUNDARY_WORD_START</a> = ATK_TEXT_BOUNDARY_WORD_START,
00162 <a class="code" href="namespaceGFC_1_1Atk.html#a198a142">TEXT_BOUNDARY_WORD_END</a> = ATK_TEXT_BOUNDARY_WORD_END,
00163 <a class="code" href="namespaceGFC_1_1Atk.html#a198a143">TEXT_BOUNDARY_SENTENCE_START</a> = ATK_TEXT_BOUNDARY_SENTENCE_START,
00164 <a class="code" href="namespaceGFC_1_1Atk.html#a198a144">TEXT_BOUNDARY_SENTENCE_END</a> = ATK_TEXT_BOUNDARY_SENTENCE_END,
00165 <a class="code" href="namespaceGFC_1_1Atk.html#a198a145">TEXT_BOUNDARY_LINE_START</a> = ATK_TEXT_BOUNDARY_LINE_START,
00166 <a class="code" href="namespaceGFC_1_1Atk.html#a198a146">TEXT_BOUNDARY_LINE_END</a> = ATK_TEXT_BOUNDARY_LINE_END
00167 };
00168
00171
<a name="l00172"></a><a class="code" href="namespaceGFC_1_1Atk.html#a199">00172</a> <span class="keyword">enum</span> <a class="code" href="namespaceGFC_1_1Atk.html#a199">TextClipType</a>
00173 {
00174 <a class="code" href="namespaceGFC_1_1Atk.html#a199a147">TEXT_CLIP_NONE</a> = ATK_TEXT_CLIP_NONE,
00175 <a class="code" href="namespaceGFC_1_1Atk.html#a199a148">TEXT_CLIP_MIN</a> = ATK_TEXT_CLIP_MIN,
00176 <a class="code" href="namespaceGFC_1_1Atk.html#a199a149">TEXT_CLIP_MAX</a> = ATK_TEXT_CLIP_MAX,
00177 <a class="code" href="namespaceGFC_1_1Atk.html#a199a150">ATK_TEXT_CLIP_BOTH</a> = <a class="code" href="namespaceGFC_1_1Atk.html#a199a149">TEXT_CLIP_MAX</a>
00178 };
00179
00182
00183 TextAttribute <a class="code" href="namespaceGFC_1_1Atk.html#a183">text_attribute_register</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>& name);
00187
00188 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="namespaceGFC_1_1Atk.html#a184">text_attribute_get_name</a>(TextAttribute attr);
00192
00193 TextAttribute <a class="code" href="namespaceGFC_1_1Atk.html#a185">text_attribute_for_name</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>& name);
00198
00199 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="namespaceGFC_1_1Atk.html#a186">text_attribute_get_value</a>(TextAttribute attr, <span class="keywordtype">int</span> index);
00204
00206
00211
<a name="l00212"></a><a class="code" href="classGFC_1_1Atk_1_1Attribute.html">00212</a> <span class="keyword">class </span><a class="code" href="classGFC_1_1Atk_1_1Attribute.html">Attribute</a>
00213 {
00214 AtkAttribute attrib_;
00215
00216 <span class="keyword">public</span>:
00219
00220 <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z79_0">Attribute</a>();
00222
00223 <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z79_0">Attribute</a>(<a class="code" href="namespaceGFC_1_1Atk.html#a197">TextAttribute</a> <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z80_1">attr</a>, <span class="keywordtype">int</span> index);
00231
00232 <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z79_0">Attribute</a>(<a class="code" href="namespaceGFC_1_1Atk.html#a197">TextAttribute</a> attr, <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>& <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z80_3">value</a>);
00241
00242 <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z79_0">Attribute</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>& <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z80_2">name</a>, <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>& value);
00250
00251 <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z79_0">Attribute</a>(<span class="keyword">const</span> AtkAttribute& attrib);
00254
00255 <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z79_0">Attribute</a>(<span class="keyword">const</span> <a class="code" href="classGFC_1_1Atk_1_1Attribute.html">Attribute</a>& src);
00258
00259 <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z79_6">~Attribute</a>();
00261
00262 <a class="code" href="classGFC_1_1Atk_1_1Attribute.html">Attribute</a>& <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z79_7">operator=</a>(<span class="keyword">const</span> <a class="code" href="classGFC_1_1Atk_1_1Attribute.html">Attribute</a>& src);
00265
00269
00270 AtkAttribute* <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z80_0">atk_attribute</a>() <span class="keyword">const</span>;
00272
00273 <a class="code" href="namespaceGFC_1_1Atk.html#a197">TextAttribute</a> <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z80_1">attr</a>() <span class="keyword">const</span>;
00276
00277 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z80_2">name</a>() <span class="keyword">const</span>;
00279
00280 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z80_3">value</a>() <span class="keyword">const</span>;
00282
00286
00287 <span class="keywordtype">void</span> <a class="code" href="classGFC_1_1Atk_1_1Attribute.html#z81_0">set</a>(<span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>& name, <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a>& value);
00295
00297 };
00298
00304
<a name="l00305"></a><a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html">00305</a> <span class="keyword">class </span><a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html">TextRectangle</a>
00306 {
00307 AtkTextRectangle rectangle_;
00308
00309 <span class="keyword">public</span>:
00312
00313 <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z82_0">TextRectangle</a>();
00315
00316 <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z82_0">TextRectangle</a>(<span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_2">x</a>, <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_3">y</a>, <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_4">width</a>, <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_5">height</a>);
00322
00323 <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z82_0">TextRectangle</a>(<span class="keyword">const</span> AtkTextRectangle& rectangle);
00326
00330
00331 AtkTextRectangle* <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_0">atk_text_rectangle</a>() <span class="keyword">const</span>;
00333
00334 <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_1">operator AtkTextRectangle* </a>() <span class="keyword">const</span>;
00336
00337 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_2">x</a>() <span class="keyword">const</span>;
00339
00340 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_3">y</a>() <span class="keyword">const</span>;
00342
00343 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_4">width</a>() <span class="keyword">const</span>;
00345
00346 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z83_5">height</a>() <span class="keyword">const</span>;
00348
00352
00353 <span class="keywordtype">void</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html#z84_0">set</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height);
00359
00361 };
00362
00367
<a name="l00368"></a><a class="code" href="classGFC_1_1Atk_1_1TextRange.html">00368</a> <span class="keyword">class </span><a class="code" href="classGFC_1_1Atk_1_1TextRange.html">TextRange</a>
00369 {
00370 AtkTextRange range_;
00371
00372 <span class="keyword">public</span>:
00375
00376 <a class="code" href="classGFC_1_1Atk_1_1TextRange.html#z85_0">TextRange</a>(<span class="keyword">const</span> AtkTextRange& range);
00378
00379 <a class="code" href="classGFC_1_1Atk_1_1TextRange.html#z85_1">~TextRange</a>();
00381
00385
00386 AtkTextRange* <a class="code" href="classGFC_1_1Atk_1_1TextRange.html#z86_0">atk_text_rectangle</a>() <span class="keyword">const</span>;
00388
00389 <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html">TextRectangle</a> <a class="code" href="classGFC_1_1Atk_1_1TextRange.html#z86_1">bounds</a>() <span class="keyword">const</span>;
00392
00393 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRange.html#z86_2">start_offset</a>() <span class="keyword">const</span>;
00396
00397 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1TextRange.html#z86_3">end_offset</a>() <span class="keyword">const</span>;
00400
00401 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classGFC_1_1Atk_1_1TextRange.html#z86_4">content</a>() <span class="keyword">const</span>;
00404
00406 };
00407
00425
<a name="l00426"></a><a class="code" href="classGFC_1_1Atk_1_1Text.html">00426</a> <span class="keyword">class </span><a class="code" href="classGFC_1_1Atk_1_1Text.html">Text</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> G::TypeInterface
00427 {
00428 <span class="keyword">protected</span>:
00431
00432 <a class="code" href="classGFC_1_1Atk_1_1Text.html#z87_0">Text</a>();
00434
00435 <span class="keyword">virtual</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z87_1">~Text</a> () = 0;
00437
00441
00442 <span class="keyword">typedef</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">G::Signal<void, int, int></a> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">TextChangedSignalType</a>;
00443 <span class="keyword">typedef</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">G::SignalProxy<TypeInstance, TextChangedSignalType></a> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">TextChangedSignalProxy</a>;
00444 <span class="keyword">static</span> <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">TextChangedSignalType</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z88_8">text_changed_signal</a>;
00451
00452 <span class="keyword">typedef</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">G::Signal<void, int></a> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">TextCaretMovedSignalType</a>;
00453 <span class="keyword">typedef</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">G::SignalProxy<TypeInstance, TextCaretMovedSignalType></a> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">TextCaretMovedSignalProxy</a>;
00454 <span class="keyword">static</span> <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">TextCaretMovedSignalType</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z88_9">text_caret_moved_signal</a>;
00460
00461 <span class="keyword">typedef</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">G::Signal<void></a> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">TextSelectionChangedSignalType</a>;
00462 <span class="keyword">typedef</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">G::SignalProxy<TypeInstance, TextSelectionChangedSignalType></a> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">TextSelectionChangedSignalProxy</a>;
00463 <span class="keyword">static</span> <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">TextSelectionChangedSignalType</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z88_10">text_selection_changed_signal</a>;
00468
00469 <span class="keyword">typedef</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">G::Signal<void></a> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">TextAttributesChangedSignalType</a>;
00470 <span class="keyword">typedef</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">G::SignalProxy<TypeInstance, TextAttributesChangedSignalType></a> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">TextAttributesChangedSignalProxy</a>;
00471 <span class="keyword">static</span> <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Signal.html">TextAttributesChangedSignalType</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z88_11">text_attributes_changed_signal</a>;
00476
00478
00479 <span class="keyword">public</span>:
00482
00483 AtkText* <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_0">atk_text</a>() <span class="keyword">const</span>;
00485
00486 <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_1">operator AtkText* </a>() <span class="keyword">const</span>;
00488
00489 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_2">get_text</a>(<span class="keywordtype">int</span> start_offset, <span class="keywordtype">int</span> end_offset) <span class="keyword">const</span>;
00494
00495 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1Unichar.html">G::Unichar</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_3">get_character_at_offset</a>(<span class="keywordtype">int</span> offset) <span class="keyword">const</span>;
00499
00500 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_4">get_text_after_offset</a>(<span class="keywordtype">int</span> offset, <a class="code" href="namespaceGFC_1_1Atk.html#a198">TextBoundary</a> boundary_type, <span class="keywordtype">int</span> *start_offset, <span class="keywordtype">int</span> *end_offset) <span class="keyword">const</span>;
00535
00536 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_5">get_text_at_offset</a>(<span class="keywordtype">int</span> offset, <a class="code" href="namespaceGFC_1_1Atk.html#a198">TextBoundary</a> boundary_type, <span class="keywordtype">int</span> *start_offset, <span class="keywordtype">int</span> *end_offset) <span class="keyword">const</span>;
00571
00572 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_6">get_text_before_offset</a>(<span class="keywordtype">int</span> offset, <a class="code" href="namespaceGFC_1_1Atk.html#a198">TextBoundary</a> boundary_type, <span class="keywordtype">int</span> *start_offset, <span class="keywordtype">int</span> *end_offset) <span class="keyword">const</span>;
00609
00610 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_7">get_caret_offset</a>() <span class="keyword">const</span>;
00612
00613 <span class="keywordtype">void</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_8">get_character_extents</a>(<span class="keywordtype">int</span> offset, <span class="keywordtype">int</span> *x, <span class="keywordtype">int</span> *y, <span class="keywordtype">int</span> *width, <span class="keywordtype">int</span> *height, <a class="code" href="namespaceGFC_1_1Atk.html#a200">CoordType</a> coords) <span class="keyword">const</span>;
00621
00622 std::vector<Attribute> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_9">get_run_attributes</a>(<span class="keywordtype">int</span> offset, <span class="keywordtype">int</span> *start_offset, <span class="keywordtype">int</span> *end_offset) <span class="keyword">const</span>;
00634
00635 std::vector<Attribute> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_10">get_default_attributes</a>() <span class="keyword">const</span>;
00641
00642 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_11">get_character_count</a>() <span class="keyword">const</span>;
00645
00646 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_12">get_offset_at_point</a>(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <a class="code" href="namespaceGFC_1_1Atk.html#a200">CoordType</a> coords) <span class="keyword">const</span>;
00655
00656 <span class="keywordtype">int</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_13">get_n_selections</a>() <span class="keyword">const</span>;
00659
00660 <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1String.html">String</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_14">get_selection</a>(<span class="keywordtype">int</span> selection_num, <span class="keywordtype">int</span> *start_offset, <span class="keywordtype">int</span> *end_offset) <span class="keyword">const</span>;
00671
00672 <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html">TextRectangle</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_15">get_range_extents</a>(<span class="keywordtype">int</span> start_offset, <span class="keywordtype">int</span> end_offset, <a class="code" href="namespaceGFC_1_1Atk.html#a200">CoordType</a> coord_type);
00678
00679 <span class="keywordtype">void</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_15">get_range_extents</a>(<span class="keywordtype">int</span> start_offset, <span class="keywordtype">int</span> end_offset, <a class="code" href="namespaceGFC_1_1Atk.html#a200">CoordType</a> coord_type, <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html">TextRectangle</a>& rect);
00685
00686 std::vector<TextRange> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z89_17">get_bounded_ranges</a>(<span class="keyword">const</span> <a class="code" href="classGFC_1_1Atk_1_1TextRectangle.html">TextRectangle</a>& rect, <a class="code" href="namespaceGFC_1_1Atk.html#a200">CoordType</a> coord_type,
00687 <a class="code" href="namespaceGFC_1_1Atk.html#a199">TextClipType</a> x_clip_type, <a class="code" href="namespaceGFC_1_1Atk.html#a199">TextClipType</a> y_clip_type);
00694
00698
00699 <span class="keywordtype">bool</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z90_0">add_selection</a>(<span class="keywordtype">int</span> start_offset, <span class="keywordtype">int</span> end_offset);
00704
00705 <span class="keywordtype">bool</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z90_1">remove_selection</a>(<span class="keywordtype">int</span> selection_num);
00714
00715 <span class="keywordtype">bool</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z90_2">set_selection</a>(<span class="keywordtype">int</span> selection_num, <span class="keywordtype">int</span> start_offset, <span class="keywordtype">int</span> end_offset);
00726
00727 <span class="keywordtype">bool</span> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z90_3">set_caret_offset</a>(<span class="keywordtype">int</span> offset);
00731
00735
00736 <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">TextChangedSignalProxy</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z91_0">sig_text_changed</a>();
00738
00739 <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">TextCaretMovedSignalProxy</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z91_1">sig_text_caret_moved</a>();
00741
00742 <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">TextSelectionChangedSignalProxy</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z91_2">sig_text_selection_changed</a>();
00744
00745 <span class="keyword">const</span> <a class="codeRef" doxygen="gfccore.tag:" href="classGFC_1_1G_1_1SignalProxy.html">TextAttributesChangedSignalProxy</a> <a class="code" href="classGFC_1_1Atk_1_1Text.html#z91_3">sig_text_attributes_changed</a>();
00747
00749 };
00750
00751 } <span class="comment">// namespace Atk</span>
00752
00753 } <span class="comment">// namespace GFC</span>
00754
00755 <span class="preprocessor">#include <gfc/atk/inline/text.inl></span>
00756
00757 <span class="preprocessor">#endif // GFC_ATK_TEXT_HH</span>
00758 <span class="preprocessor"></span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Tue Aug 24 00:34:32 2004 for GFC-UI by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address>
</body>
</html>
|