/usr/share/gtk-doc/html/cattle/CattleTape.html is in libcattle-1.0-doc 1.0.1-1ubuntu1.
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 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 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>CattleTape</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Cattle Reference Manual">
<link rel="up" href="ch03.html" title="Objects">
<link rel="prev" href="CattleProgram.html" title="CattleProgram">
<link rel="next" href="CattleConfiguration.html" title="CattleConfiguration">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="CattleProgram.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Cattle Reference Manual</th>
<td><a accesskey="n" href="CattleConfiguration.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#CattleTape.synopsis" class="shortcut">Top</a>
|
<a href="#CattleTape.description" class="shortcut">Description</a>
|
<a href="#CattleTape.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#CattleTape.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="CattleTape"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="CattleTape.top_of_page"></a>CattleTape</span></h2>
<p>CattleTape — Infinite-length memory tape</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="CattleTape.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include <cattle/cattle.h>
struct <a class="link" href="CattleTape.html#CattleTape-struct" title="struct CattleTape">CattleTape</a>;
<a class="link" href="CattleTape.html" title="CattleTape"><span class="returnvalue">CattleTape</span></a> * <a class="link" href="CattleTape.html#cattle-tape-new" title="cattle_tape_new ()">cattle_tape_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-set-current-value" title="cattle_tape_set_current_value ()">cattle_tape_set_current_value</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> value</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> <a class="link" href="CattleTape.html#cattle-tape-get-current-value" title="cattle_tape_get_current_value ()">cattle_tape_get_current_value</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-increase-current-value" title="cattle_tape_increase_current_value ()">cattle_tape_increase_current_value</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-increase-current-value-by" title="cattle_tape_increase_current_value_by ()">cattle_tape_increase_current_value_by</a>
(<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-decrease-current-value" title="cattle_tape_decrease_current_value ()">cattle_tape_decrease_current_value</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-decrease-current-value-by" title="cattle_tape_decrease_current_value_by ()">cattle_tape_decrease_current_value_by</a>
(<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-move-left" title="cattle_tape_move_left ()">cattle_tape_move_left</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-move-left-by" title="cattle_tape_move_left_by ()">cattle_tape_move_left_by</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> steps</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-move-right" title="cattle_tape_move_right ()">cattle_tape_move_right</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-move-right-by" title="cattle_tape_move_right_by ()">cattle_tape_move_right_by</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> steps</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="CattleTape.html#cattle-tape-is-at-beginning" title="cattle_tape_is_at_beginning ()">cattle_tape_is_at_beginning</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="CattleTape.html#cattle-tape-is-at-end" title="cattle_tape_is_at_end ()">cattle_tape_is_at_end</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
<span class="returnvalue">void</span> <a class="link" href="CattleTape.html#cattle-tape-push-bookmark" title="cattle_tape_push_bookmark ()">cattle_tape_push_bookmark</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="CattleTape.html#cattle-tape-pop-bookmark" title="cattle_tape_pop_bookmark ()">cattle_tape_pop_bookmark</a> (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="CattleTape.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----CattleTape
</pre>
</div>
<div class="refsect1">
<a name="CattleTape.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="CattleTape.html#CattleTape--current-value" title='The "current-value" property'>current-value</a>" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> : Read / Write
</pre>
</div>
<div class="refsect1">
<a name="CattleTape.description"></a><h2>Description</h2>
<p>
A <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> represents an infinte-length memory tape, which is used
by a <a class="link" href="CattleInterpreter.html" title="CattleInterpreter"><span class="type">CattleInterpreter</span></a> to store its data. The tape contains a
virtually infinte number of memory cells, each one able to store a
single ASCII character.
</p>
<p>
A tape supports three kinds of operations: reading the value of the
current cell, updating the value of the current cell (either by
increasing/decreasing it or by setting it to a certain value), and
moving the current cell pointer (either to the left or to the right).
</p>
<p>
The tape grows automatically as more cells are needed, the only limit
being the amount of available memory. It is possible to check if the
current cell is at the beginning or at the end of the tape using
<a class="link" href="CattleTape.html#cattle-tape-is-at-beginning" title="cattle_tape_is_at_beginning ()"><code class="function">cattle_tape_is_at_beginning()</code></a> and <a class="link" href="CattleTape.html#cattle-tape-is-at-end" title="cattle_tape_is_at_end ()"><code class="function">cattle_tape_is_at_end()</code></a>.
</p>
</div>
<div class="refsect1">
<a name="CattleTape.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="CattleTape-struct"></a><h3>struct CattleTape</h3>
<pre class="programlisting">struct CattleTape;</pre>
<p>
Opaque data structure representing a memory tape. It should never
be accessed directly; use the methods below instead.
</p>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-new"></a><h3>cattle_tape_new ()</h3>
<pre class="programlisting"><a class="link" href="CattleTape.html" title="CattleTape"><span class="returnvalue">CattleTape</span></a> * cattle_tape_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Create and initialize a new memory tape.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-set-current-value"></a><h3>cattle_tape_set_current_value ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_set_current_value (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> value</code></em>);</pre>
<p>
Set the value of the current cell.
</p>
<p>
Accepted values are ASCII values or EOF.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>the current cell's new value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-get-current-value"></a><h3>cattle_tape_get_current_value ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> cattle_tape_get_current_value (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Get the value of the current cell. See
<a class="link" href="CattleTape.html#cattle-tape-set-current-value" title="cattle_tape_set_current_value ()"><code class="function">cattle_tape_set_current_value()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the value of the current cell</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-increase-current-value"></a><h3>cattle_tape_increase_current_value ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_increase_current_value (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Increase the value in the current cell by one.
</p>
<p>
If the value in the current cell has ASCII code 127, the new value
will have ASCII code 0.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-increase-current-value-by"></a><h3>cattle_tape_increase_current_value_by ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_increase_current_value_by
(<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value</code></em>);</pre>
<p>
Increase the value in the current cell by <em class="parameter"><code>value</code></em>.
</p>
<p>
The value is wrapped if needed to keep it in the ASCII code.
</p>
<p>
Increasing the value this way is much faster than calling
<a class="link" href="CattleTape.html#cattle-tape-increase-current-value" title="cattle_tape_increase_current_value ()"><code class="function">cattle_tape_increase_current_value()</code></a> multiple times.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>increase amount</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-decrease-current-value"></a><h3>cattle_tape_decrease_current_value ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_decrease_current_value (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Decrease the value in the current cell by one.
</p>
<p>
If the value in the current cell has ASCII value 0, the new value
will have ASCII value 127.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-decrease-current-value-by"></a><h3>cattle_tape_decrease_current_value_by ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_decrease_current_value_by
(<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> value</code></em>);</pre>
<p>
Decrease the value in the current cell by <em class="parameter"><code>value</code></em>.
</p>
<p>
The value is wrapped if needed to keep it in the ASCII code.
</p>
<p>
Decreasing the value this way is much faster than calling
<a class="link" href="CattleTape.html#cattle-tape-decrease-current-value" title="cattle_tape_decrease_current_value ()"><code class="function">cattle_tape_decrease_current_value()</code></a> multiple times.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>decrease amount</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-move-left"></a><h3>cattle_tape_move_left ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_move_left (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Move <em class="parameter"><code>tape</code></em> one cell to the left.
</p>
<p>
If there are no memory cells on the left of the current one,
one will be created on the fly.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-move-left-by"></a><h3>cattle_tape_move_left_by ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_move_left_by (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> steps</code></em>);</pre>
<p>
Move <em class="parameter"><code>tape</code></em> <em class="parameter"><code>steps</code></em> cells to the left.
</p>
<p>
Moving this way is much faster than calling
<a class="link" href="CattleTape.html#cattle-tape-move-left" title="cattle_tape_move_left ()"><code class="function">cattle_tape_move_left()</code></a> multiple times.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>steps</code></em> :</span></p></td>
<td>number of steps</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-move-right"></a><h3>cattle_tape_move_right ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_move_right (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Move <em class="parameter"><code>tape</code></em> one cell to the right.
</p>
<p>
If there are no memory cells on the right of the current one,
one will be created on the fly.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-move-right-by"></a><h3>cattle_tape_move_right_by ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_move_right_by (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>,
<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> steps</code></em>);</pre>
<p>
Move <em class="parameter"><code>tape</code></em> <em class="parameter"><code>steps</code></em> cells to the right.
</p>
<p>
Moving this way is much faster than calling
<a class="link" href="CattleTape.html#cattle-tape-move-right" title="cattle_tape_move_right ()"><code class="function">cattle_tape_move_right()</code></a> multiple times.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>steps</code></em> :</span></p></td>
<td>number of steps</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-is-at-beginning"></a><h3>cattle_tape_is_at_beginning ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cattle_tape_is_at_beginning (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Check if the current cell is the first one of <em class="parameter"><code>tape</code></em>.
</p>
<p>
Since the tape grows automatically as more cells are needed, it is
possible to move left from the first cell.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the current cell is the first one, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-is-at-end"></a><h3>cattle_tape_is_at_end ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cattle_tape_is_at_end (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Check if the current cell is the last one of <em class="parameter"><code>tape</code></em>.
</p>
<p>
Since the tape grows automatically as more cells are needed, it is
possible to move right from the last cell.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the current cell is the last one, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-push-bookmark"></a><h3>cattle_tape_push_bookmark ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> cattle_tape_push_bookmark (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Create a bookmark to the current tape position and save it on the
bookmark stack.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="cattle-tape-pop-bookmark"></a><h3>cattle_tape_pop_bookmark ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cattle_tape_pop_bookmark (<em class="parameter"><code><a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a> *tape</code></em>);</pre>
<p>
Restore the previously-saved tape position.
See <a class="link" href="CattleTape.html#cattle-tape-push-bookmark" title="cattle_tape_push_bookmark ()"><code class="function">cattle_tape_push_bookmark()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>tape</code></em> :</span></p></td>
<td>a <a class="link" href="CattleTape.html" title="CattleTape"><span class="type">CattleTape</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if the bookmarks stack is empty, <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> otherwise</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="CattleTape.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="CattleTape--current-value"></a><h3>The <code class="literal">"current-value"</code> property</h3>
<pre class="programlisting"> "current-value" <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> : Read / Write</pre>
<p>
Value of the current cell.
</p>
<p>
Changes to this property are not notified.
</p>
<p>Allowed values: >= -1</p>
<p>Default value: 0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|