Getting Icelandic docs translated for real this time
This commit is contained in:
parent
580572892f
commit
9ca2bcb8e5
27 changed files with 282 additions and 282 deletions
|
|
@ -91,36 +91,36 @@
|
|||
width="205"
|
||||
height="210"
|
||||
alt="Tux Paint"><br>
|
||||
version 0.9.31 </h1>
|
||||
útgáfa 0.9.31 </h1>
|
||||
|
||||
<h2>
|
||||
Magic Tool Plugin API Documentation </h2>
|
||||
|
||||
<p>
|
||||
Copyright © 2007-2023 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||
Höfundarréttur © 2007-2023 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
apríl 13, 2023 </p>
|
||||
13. apríl 2023 </p>
|
||||
</center>
|
||||
</header>
|
||||
|
||||
<table border="2"
|
||||
cellspacing="0"
|
||||
cellpadding="2"
|
||||
summary="Table of Contents"
|
||||
summary="Efnisyfirlit"
|
||||
align="center"
|
||||
style="page-break-inside: avoid;">
|
||||
<tr>
|
||||
<th>
|
||||
Table of Contents </th>
|
||||
Efnisyfirlit </th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<ul>
|
||||
<li><a href="#prereqs">Prequisites</a></li> <li><a href="#interfaces">Interfaces</a> <ul>
|
||||
<li><a href="#prereqs">Forkröfur</a></li> <li><a href="#interfaces">Interfaces</a> <ul>
|
||||
<li><a href="#magic_plugin_funcs">'Magic' tool plugin functions</a> <ul>
|
||||
<li><a href="#common_args">Common arguments to plugin functions</a></li> <li><a href="#toolfuncs">Required Plugin Functions</a> <ul>
|
||||
<li><a href="#housekeeping">Plugin "housekeeping" functions</a></li> <li><a href="#eventfuncs">Plugin event functions</a></li> </ul>
|
||||
|
|
@ -128,7 +128,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
<li><a href="#tpfuncs">Tux Paint Functions and Data</a> <ul>
|
||||
<li><a href="#pixel_manip">Pixel Manipulations</a></li> <li><a href="#helper_funcs">Helper Functions</a></li> <li><a href="#informational">Informational</a></li> <li><a href="#syscalls">Tux Paint System Calls</a></li> <li><a href="#color_convs">Color Conversions</a></li> </ul>
|
||||
<li><a href="#pixel_manip">Pixel Manipulations</a></li> <li><a href="#helper_funcs">Helper Functions</a></li> <li><a href="#informational">Til upplýsingar</a></li> <li><a href="#syscalls">Tux Paint System Calls</a></li> <li><a href="#color_convs">Color Conversions</a></li> </ul>
|
||||
</li>
|
||||
<li><a href="#macros">Helper Macros in "tp_magic_api.h"</a></li> <li><a href="#consts">Constant Definitions in "tp_magic_api.h"</a></li> </ul>
|
||||
</li>
|
||||
|
|
@ -138,7 +138,7 @@
|
|||
<li><a href="#installing">Installing</a> <ul>
|
||||
<li><a href="#installing-linux">Linux and other Unix-like Platforms</a></li> <li><a href="#installing-windows">Windows</a></li> <li><a href="#installing-macos">macOS</a></li> </ul>
|
||||
</li>
|
||||
<li><a href="#multiple">Creating plugins with multiple effects</a></li> <li><a href="#examples">Example Code</a></li> <li><a href="#help">Getting Help</a></li> <li><a href="#glossary">Glossary</a></li> </ul>
|
||||
<li><a href="#multiple">Creating plugins with multiple effects</a></li> <li><a href="#examples">Example Code</a></li> <li><a href="#help">Til að fá hjálp</a></li> <li><a href="#glossary">Orðasafn</a></li> </ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
@ -149,7 +149,7 @@
|
|||
<div class="keeptogether">
|
||||
<header>
|
||||
<h1 id="overview">
|
||||
Overview </h1>
|
||||
Yfirlit </h1>
|
||||
</header>
|
||||
|
||||
<p>
|
||||
|
|
@ -593,7 +593,7 @@
|
|||
<section class="indent"><!-- H3: Informational -->
|
||||
<header>
|
||||
<h3 id="informational">
|
||||
Informational </h3>
|
||||
Til upplýsingar </h3>
|
||||
</header>
|
||||
|
||||
<dl>
|
||||
|
|
@ -1122,7 +1122,7 @@
|
|||
<section class="outer"><!-- H1: Getting Help -->
|
||||
<header>
|
||||
<h1 id="help">
|
||||
Getting Help </h1>
|
||||
Til að fá hjálp </h1>
|
||||
</header>
|
||||
|
||||
<p>
|
||||
|
|
@ -1136,28 +1136,28 @@
|
|||
<section class="outer"><!-- H1: Glossary -->
|
||||
<header>
|
||||
<h1 id="glossary">
|
||||
Glossary </h1>
|
||||
Orðasafn </h1>
|
||||
</header>
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<b>alpha:</b>
|
||||
<b>alfa:</b>
|
||||
See "RGBA" </li>
|
||||
<li>
|
||||
<b><code>&</code>:</b>
|
||||
See "ampersand" </li>
|
||||
See "'og' merki" </li>
|
||||
<li>
|
||||
<b>ampersand (pointers):</b>
|
||||
<b>'og' merki (bendlar):</b>
|
||||
"<code>&</code>". A symbol in C that allows you to refer to the memory address of a variable; that is, a pointer. (For example, consider "<code>int i;</code>". Later, "<code>&i</code>" refers to the memory where "<code>i</code>" is stored, not the value of "<code>i</code>" itself; it is a 'pointer to "<code>i</code>"'.) See also: "star" </li>
|
||||
<li>
|
||||
<b>ampersand (bitwise operator):</b>
|
||||
"<code>&</code>". A symbol in C that acts as a bitwise "and" operator. Only bits set in both values will be returned. For example, "<code>11 & 6</code>" compares the binary values '1011' to '0110'. Only the bit in the 2's place is set, so the result is <code>2</code> ('0010'). See also: "bit" </li>
|
||||
<b>'og' merki (bitwise operator):</b>
|
||||
"<code>&</code>". A symbol in C that acts as a bitwise "and" operator. Only bits set in both values will be returned. For example, "<code>11 & 6</code>" compares the binary values '1011' to '0110'. Only the bit in the 2's place is set, so the result is <code>2</code> ('0010'). See also: "bitar" </li>
|
||||
<li>
|
||||
<b>API:</b>
|
||||
Application Programming Interface. <i>TBD</i>
|
||||
</li>
|
||||
<li>
|
||||
<b>argument:</b>
|
||||
<b>viðfang:</b>
|
||||
A value sent to a function. </li>
|
||||
<li>
|
||||
<b>arrow:</b>
|
||||
|
|
@ -1166,23 +1166,23 @@
|
|||
<b>backquote:</b>
|
||||
See "grave" </li>
|
||||
<li>
|
||||
<b>backtick:</b>
|
||||
<b>bakslag:</b>
|
||||
See "grave" </li>
|
||||
<li>
|
||||
<b>bit:</b>
|
||||
"Binary digit." Bits are the basic storage unit in a computer's memory, disk, networking, etc. They represent either 0 or 1. (Compared to a decimal digit, which can be anything between 0 and 9.) Just as a series of decimal digits can represent a larger number (e.g., "1" and "5" is fifteen (15)), so can bits (e.g., "1" and "0", is two). In decimal, we go from right to left: ones place, tens place, hundreds place, thousands place, etc. In binary, it is: ones place, twos place, fours place, eights place, etc. See also: "byte" </li>
|
||||
<b>bitar:</b>
|
||||
"Binary digit." Bits are the basic storage unit in a computer's memory, disk, networking, etc. They represent either 0 or 1. (Compared to a decimal digit, which can be anything between 0 and 9.) Just as a series of decimal digits can represent a larger number (e.g., "1" and "5" is fifteen (15)), so can bits (e.g., "1" and "0", is two). In decimal, we go from right to left: ones place, tens place, hundreds place, thousands place, etc. In binary, it is: ones place, twos place, fours place, eights place, etc. See also: "bæti" </li>
|
||||
<li>
|
||||
<b>blue:</b>
|
||||
<b>blátt:</b>
|
||||
See "RGBA" </li>
|
||||
<li>
|
||||
<b>boolean 'or':</b>
|
||||
<b>boole gildið 'eða':</b>
|
||||
A mathematical operation that results in a true value if either operand is true. ("1 | 0", "0 | 1" and "1 | 1" all result in "1". "0 | 0" results in "0".) </li>
|
||||
<li>
|
||||
<b><code>|</code>:</b>
|
||||
See "boolean 'or'" </li>
|
||||
See "boole gildið 'eða'" </li>
|
||||
<li>
|
||||
<b><code>.</code>:</b>
|
||||
See "dot" </li>
|
||||
See "punktur" </li>
|
||||
<li>
|
||||
<b><code>`</code>:</b>
|
||||
See "grave" </li>
|
||||
|
|
@ -1190,10 +1190,10 @@
|
|||
<b><code>*</code>:</b>
|
||||
See "star" </li>
|
||||
<li>
|
||||
<b>byte:</b>
|
||||
<b>bæti:</b>
|
||||
A unit of memory made up of 8 bits. As a signed value, it can represent -128 through 127. As an unsigned value, it can represent 0 through 255. As a series of bits, for example, the byte "00001100" represents the decimal value 12. </li>
|
||||
<li>
|
||||
<b>callback:</b>
|
||||
<b>svörun:</b>
|
||||
<i>TBD</i>
|
||||
</li>
|
||||
<li>
|
||||
|
|
@ -1212,14 +1212,14 @@
|
|||
<i>TBD</i>
|
||||
</li>
|
||||
<li>
|
||||
<b>channel:</b>
|
||||
<b>rás:</b>
|
||||
<i>TBD</i>
|
||||
</li>
|
||||
<li>
|
||||
<b>click:</b>
|
||||
<b>smellur:</b>
|
||||
The action of pressing a button on a mouse. </li>
|
||||
<li>
|
||||
<b>coordinates:</b>
|
||||
<b>hnit:</b>
|
||||
A set of numbers corresponding to a physical position; for example, in a two-dimensional (2D) image, "X" and "Y" coordinates specify the position across (left-to-right) and down the image, respectively. In SDL, the coordinates (0,0) is the top-leftmost pixel of a surface. </li>
|
||||
<li>
|
||||
<b>C pointer:</b>
|
||||
|
|
@ -1231,16 +1231,16 @@
|
|||
<b><code>#define</code>:</b>
|
||||
A C statement that defines a substitution that can occur later in the code. Generally used for constant values (e.g., "<code>#define RADIUS 16</code>"; all instances of "<code>RADIUS</code>" will be replaced with "<code>16</code>"), but can also be used to create macros. Typically placed within C header files. </li>
|
||||
<li>
|
||||
<b>dimensions:</b>
|
||||
<b>stærðir:</b>
|
||||
The size of an object, in terms of its width (left to right) and height (top to bottom). </li>
|
||||
<li>
|
||||
<b><code>.dll</code>:</b>
|
||||
See "Shared Object" </li>
|
||||
<li>
|
||||
<b>dot:</b>
|
||||
<b>punktur:</b>
|
||||
"<code>.</code>". A symbol in C that references an element within a struct. </li>
|
||||
<li>
|
||||
<b>drag:</b>
|
||||
<b>draga:</b>
|
||||
The action of moving a mouse while the button remains held. </li>
|
||||
<li>
|
||||
<b>element:</b>
|
||||
|
|
@ -1250,9 +1250,9 @@
|
|||
See "C enumeration" </li>
|
||||
<li>
|
||||
<b><code>float</code>:</b>
|
||||
See "floating point" </li>
|
||||
See "fleytitala" </li>
|
||||
<li>
|
||||
<b>floating point:</b>
|
||||
<b>fleytitala:</b>
|
||||
<i>TBD</i>
|
||||
</li>
|
||||
<li>
|
||||
|
|
@ -1277,7 +1277,7 @@
|
|||
<b>grave:</b>
|
||||
The "<code><font size=+1>`</font></code>" character; used by the BASH shell to use the output of a command as the command-line arguments to another. </li>
|
||||
<li>
|
||||
<b>green:</b>
|
||||
<b>grænt:</b>
|
||||
See "RGBA" </li>
|
||||
<li>
|
||||
<b><code>-></code>:</b>
|
||||
|
|
@ -1286,7 +1286,7 @@
|
|||
<b><code>.h</code>:</b>
|
||||
See "C header file" </li>
|
||||
<li>
|
||||
<b>header:</b>
|
||||
<b>haus:</b>
|
||||
See "C header file" </li>
|
||||
<li>
|
||||
<b>header file:</b>
|
||||
|
|
@ -1296,7 +1296,7 @@
|
|||
Hue, Saturation and Value. <i>TBD</i>
|
||||
</li>
|
||||
<li>
|
||||
<b>hue:</b>
|
||||
<b>litblær:</b>
|
||||
See "HSV" </li>
|
||||
<li>
|
||||
<b><code>IMG_Load()</code>:</b>
|
||||
|
|
@ -1315,11 +1315,11 @@
|
|||
<b><code>libSDL</code>:</b>
|
||||
See "Simple DirectMedia Layer" </li>
|
||||
<li>
|
||||
<b>linear:</b>
|
||||
<b>línulegt:</b>
|
||||
<i>TBD</i>
|
||||
</li>
|
||||
<li>
|
||||
<b>macro:</b>
|
||||
<b>fjölvi:</b>
|
||||
A C construct that looks similar to a C function, but is simply a #define that is expanded 'inline'. For example, if you declared the macro "<code>#define ADD(A,B) ((A)+(B))</code>", and then used it with "<code>c = ADD(1,2);</code>", that line of code would literally expand to "<code>c = ((1) + (2));</code>", or more simply, "<code>c = 1 + 2;</code>". </li>
|
||||
<li>
|
||||
<b><code>magic_api</code>:</b>
|
||||
|
|
@ -1353,7 +1353,7 @@
|
|||
<b><cite>Ogg Vorbis</cite>:</b>
|
||||
See also: "WAV" </li>
|
||||
<li>
|
||||
<b>Plugin:</b>
|
||||
<b>Viðbót:</b>
|
||||
<i>TBD</i>
|
||||
</li>
|
||||
<li>
|
||||
|
|
@ -1363,13 +1363,13 @@
|
|||
<b>pointer:</b>
|
||||
See "C pointer" </li>
|
||||
<li>
|
||||
<b>prototype:</b>
|
||||
<b>frumgerð:</b>
|
||||
See "C function prototype" </li>
|
||||
<li>
|
||||
<b>red:</b>
|
||||
<b>rautt:</b>
|
||||
See "RGBA" </li>
|
||||
<li>
|
||||
<b>release:</b>
|
||||
<b>sleppa:</b>
|
||||
The action of releasing a button on a mouse. </li>
|
||||
<li>
|
||||
<b><code>RGBA</code>:</b>
|
||||
|
|
@ -1423,7 +1423,7 @@
|
|||
See "RGBA" </li>
|
||||
<li>
|
||||
<b>star:</b>
|
||||
"<code>*</code>". A symbol in C that, when used in the declaration of variables (e.g., arguments to a function), denotes that the variable is a pointer. (For example, "<code>int * p;</code>" means that "<code>p</code>" is a <i>pointer</i> to an integer.) When used next to a pointer, it 'dereferences' the variable. (For example, later "<code>*p = 50;</code>" assigns the value of 50 to the memory that "<code>p</code>" points to; it does not change the value of "<code>p</code>", which is still a pointer to an integer. In essence, it changed the integer that's being pointed to.) See also: "ampersand" </li>
|
||||
"<code>*</code>". A symbol in C that, when used in the declaration of variables (e.g., arguments to a function), denotes that the variable is a pointer. (For example, "<code>int * p;</code>" means that "<code>p</code>" is a <i>pointer</i> to an integer.) When used next to a pointer, it 'dereferences' the variable. (For example, later "<code>*p = 50;</code>" assigns the value of 50 to the memory that "<code>p</code>" points to; it does not change the value of "<code>p</code>", which is still a pointer to an integer. In essence, it changed the integer that's being pointed to.) See also: "'og' merki" </li>
|
||||
<li>
|
||||
<b><code>strdup()</code>:</b>
|
||||
A C function that allocates enough memory to store a copy of a string, copies the string to it, and returns a "<code>char *</code>" pointer to the new copy. See also the "<code>strdup(3)</code>" <i>man page</i>) </li>
|
||||
|
|
@ -1443,10 +1443,10 @@
|
|||
<b><code>Uint8</code>:</b>
|
||||
An 8-bit, unsigned integer (defined by libSDL). In other words, a byte that can represent 0 through 255. </li>
|
||||
<li>
|
||||
<b>unsigned:</b>
|
||||
<b>óundirritað:</b>
|
||||
In C, a variable that can store a numeric value can be declared as either "signed" (the default), or "unsigned". In the former case, one bit of the value is used to denote the sign of the value (either positive or negative). In the latter case, the value can only be positive, but benefits from one extra bit of storage for the number. A signed byte (8 bits), for example, can represent any number between -128 and 127. An unsigned byte can go up to 255, but it cannot go below 0. For the purposes of graphics in SDL, unsigned values should be used for RGB values, since each channel (red, green and blue) may be between 0 (off) and 255 (brightest). </li>
|
||||
<li>
|
||||
<b>value:</b>
|
||||
<b>gildi:</b>
|
||||
See "HSV" </li>
|
||||
<li>
|
||||
<b>variable:</b>
|
||||
|
|
@ -1456,10 +1456,10 @@
|
|||
See also: "Ogg Vorbis" </li>
|
||||
<li>
|
||||
<b><code>(w,h)</code>:</b>
|
||||
See "Dimensions" </li>
|
||||
See "Stærðir" </li>
|
||||
<li>
|
||||
<b><code>(x,y)</code>:</b>
|
||||
See "Coordinates" </li>
|
||||
See "Hnit" </li>
|
||||
</ul>
|
||||
</section><!-- H1: Glossary -->
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue