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
|
|
@ -1,16 +1,15 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31 Advanced Stamps 'How-To'
|
version 0.9.31 Advanced Stamps 'How-To'
|
||||||
|
|
||||||
Höfundarréttur © 2006-2022 eftir Albert Cahalan and others; sjá
|
Copyright © 2006-2022 by Albert Cahalan and others; see AUTHORS.txt.
|
||||||
AUTHORS-skrá.
|
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
4. júní 2022
|
júní 4, 2022
|
||||||
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
+----------------------------------------+
|
+----------------------------------------+
|
||||||
|Efnisyfirlit |
|
|Table of Contents |
|
||||||
|----------------------------------------|
|
|----------------------------------------|
|
||||||
| * About this 'How-To' |
|
| * About this 'How-To' |
|
||||||
| * Image choice is crucial |
|
| * Image choice is crucial |
|
||||||
|
|
@ -208,7 +207,7 @@ Replace the fringe and junk pixels
|
||||||
editing and viewing the WIP image. Frequent layer visibility changes
|
editing and viewing the WIP image. Frequent layer visibility changes
|
||||||
will help you to see what you are doing. You are likely to use all of:
|
will help you to see what you are doing. You are likely to use all of:
|
||||||
|
|
||||||
* composited over grænt (mask enabled)
|
* composited over green (mask enabled)
|
||||||
* composited over magenta (mask enabled)
|
* composited over magenta (mask enabled)
|
||||||
* original (the top or bottom layer)
|
* original (the top or bottom layer)
|
||||||
* composited over the original (mask enabled)
|
* composited over the original (mask enabled)
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31
|
version 0.9.31
|
||||||
Environment Variables Documentation
|
Environment Variables Documentation
|
||||||
|
|
||||||
Höfundarréttur © 2021-2023 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2021-2023 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
5. maí 2023
|
maí 5, 2023
|
||||||
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
Extending
|
Extending
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31
|
version 0.9.31
|
||||||
|
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2002-2023 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
29. maí 2023
|
maí 29, 2023
|
||||||
|
|
||||||
+------------------------------------------+
|
+------------------------------------------+
|
||||||
|Efnisyfirlit |
|
|Table of Contents |
|
||||||
|------------------------------------------|
|
|------------------------------------------|
|
||||||
| * Where Files Go |
|
| * Where Files Go |
|
||||||
| * Standard Files |
|
| * Standard Files |
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31 Frequently Asked Questions
|
version 0.9.31 Frequently Asked Questions
|
||||||
|
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2002-2023 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
16. mars 2023
|
mars 16, 2023
|
||||||
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
|
|
||||||
+------------------------------+
|
+------------------------------+
|
||||||
|Efnisyfirlit |
|
|Table of Contents |
|
||||||
|------------------------------|
|
|------------------------------|
|
||||||
| * Drawing-related |
|
| * Drawing-related |
|
||||||
| * Interface Problems |
|
| * Interface Problems |
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31
|
version 0.9.31
|
||||||
Installation Documentation
|
Installation Documentation
|
||||||
|
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2002-2023 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
13. maí 2023
|
maí 13, 2023
|
||||||
|
|
||||||
+----------------------------------------------------+
|
+----------------------------------------------------+
|
||||||
|Efnisyfirlit |
|
|Table of Contents |
|
||||||
|----------------------------------------------------|
|
|----------------------------------------------------|
|
||||||
| * Requirements |
|
| * Requirements |
|
||||||
| * Simple DirectMedia Layer library (libSDL) |
|
| * Simple DirectMedia Layer library (libSDL) |
|
||||||
|
|
@ -143,7 +143,7 @@ Simple DirectMedia Layer library (libSDL)
|
||||||
|
|
||||||
Windows
|
Windows
|
||||||
|
|
||||||
10. júlí 2022 Shin-ichi TOYAMA <dolphin6k@wmail.plala.or.jp>
|
júlí 10, 2022 Shin-ichi TOYAMA <dolphin6k@wmail.plala.or.jp>
|
||||||
|
|
||||||
Compiling Set-Up
|
Compiling Set-Up
|
||||||
|
|
||||||
|
|
@ -582,7 +582,7 @@ Linux/Unix
|
||||||
|
|
||||||
macOS
|
macOS
|
||||||
|
|
||||||
5. júní 2022 Mark Kim <markuskimius@gmail.com>
|
júní 5, 2022 Mark Kim <markuskimius@gmail.com>
|
||||||
|
|
||||||
Starting with Tux Paint 0.9.23, Tux Paint for macOS is built as though it
|
Starting with Tux Paint 0.9.23, Tux Paint for macOS is built as though it
|
||||||
were a Linux application.
|
were a Linux application.
|
||||||
|
|
@ -795,7 +795,7 @@ macOS
|
||||||
|
|
||||||
Android
|
Android
|
||||||
|
|
||||||
29. mars 2023 Pere Pujal i Carabantes <perepujal@gmail.com> (Edited by
|
mars 29, 2023 Pere Pujal i Carabantes <perepujal@gmail.com> (Edited by
|
||||||
Bill Kendrick)
|
Bill Kendrick)
|
||||||
|
|
||||||
As of March 2023, the Android build of Tux Paint is maintained in a
|
As of March 2023, the Android build of Tux Paint is maintained in a
|
||||||
|
|
@ -860,7 +860,7 @@ Android
|
||||||
|
|
||||||
Haiku
|
Haiku
|
||||||
|
|
||||||
7. maí 2023 Luc Schrijvers <begasus@gmail.com> (Edited by Bill Kendrick)
|
maí 7, 2023 Luc Schrijvers <begasus@gmail.com> (Edited by Bill Kendrick)
|
||||||
|
|
||||||
Prerequisites
|
Prerequisites
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,17 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
version 0.9.31
|
útgáfa 0.9.31
|
||||||
|
|
||||||
Magic Tool Plugin API Documentation
|
Magic Tool Plugin API Documentation
|
||||||
|
|
||||||
Copyright © 2007-2023 by various contributors; see AUTHORS.txt.
|
Höfundarréttur © 2007-2023 eftir various contributors; sjá AUTHORS-skrá.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
apríl 13, 2023
|
13. apríl 2023
|
||||||
|
|
||||||
+----------------------------------------------------+
|
+----------------------------------------------------+
|
||||||
|Table of Contents |
|
|Efnisyfirlit |
|
||||||
|----------------------------------------------------|
|
|----------------------------------------------------|
|
||||||
| * Prequisites |
|
| * Forkröfur |
|
||||||
| * Interfaces |
|
| * Interfaces |
|
||||||
| * 'Magic' tool plugin functions |
|
| * 'Magic' tool plugin functions |
|
||||||
| * Common arguments to plugin functions |
|
| * Common arguments to plugin functions |
|
||||||
|
|
@ -21,7 +21,7 @@ Magic Tool Plugin API Documentation
|
||||||
| * Tux Paint Functions and Data |
|
| * Tux Paint Functions and Data |
|
||||||
| * Pixel Manipulations |
|
| * Pixel Manipulations |
|
||||||
| * Helper Functions |
|
| * Helper Functions |
|
||||||
| * Informational |
|
| * Til upplýsingar |
|
||||||
| * Tux Paint System Calls |
|
| * Tux Paint System Calls |
|
||||||
| * Color Conversions |
|
| * Color Conversions |
|
||||||
| * Helper Macros in "tp_magic_api.h" |
|
| * Helper Macros in "tp_magic_api.h" |
|
||||||
|
|
@ -36,11 +36,11 @@ Magic Tool Plugin API Documentation
|
||||||
| * macOS |
|
| * macOS |
|
||||||
| * Creating plugins with multiple effects |
|
| * Creating plugins with multiple effects |
|
||||||
| * Example Code |
|
| * Example Code |
|
||||||
| * Getting Help |
|
| * Til að fá hjálp |
|
||||||
| * Glossary |
|
| * Orðasafn |
|
||||||
+----------------------------------------------------+
|
+----------------------------------------------------+
|
||||||
|
|
||||||
Overview
|
Yfirlit
|
||||||
|
|
||||||
Beginning with version 0.9.18, Tux Paint's 'Magic' tools were converted
|
Beginning with version 0.9.18, Tux Paint's 'Magic' tools were converted
|
||||||
from routines that lived within the application itself, to a set of
|
from routines that lived within the application itself, to a set of
|
||||||
|
|
@ -579,7 +579,7 @@ Tux Paint Functions and Data
|
||||||
to use this function. The "Blur" and "Smudge" tools that ship with
|
to use this function. The "Blur" and "Smudge" tools that ship with
|
||||||
Tux Paint are examples of such effects.
|
Tux Paint are examples of such effects.
|
||||||
|
|
||||||
Informational
|
Til upplýsingar
|
||||||
|
|
||||||
char * tp_version
|
char * tp_version
|
||||||
A string containing the version of Tux Paint that's running (e.g.,
|
A string containing the version of Tux Paint that's running (e.g.,
|
||||||
|
|
@ -1028,7 +1028,7 @@ macOS
|
||||||
The C source file "tp_magic_example.c" contains a complete example of a
|
The C source file "tp_magic_example.c" contains a complete example of a
|
||||||
plugin with multiple simple effects.
|
plugin with multiple simple effects.
|
||||||
|
|
||||||
Getting Help
|
Til að fá hjálp
|
||||||
|
|
||||||
For more information, check the Tux Paint website: https://tuxpaint.org/,
|
For more information, check the Tux Paint website: https://tuxpaint.org/,
|
||||||
and the Simple DirectMedia Layer library website: http://www.libsdl.org/.
|
and the Simple DirectMedia Layer library website: http://www.libsdl.org/.
|
||||||
|
|
@ -1037,57 +1037,57 @@ macOS
|
||||||
"tuxpaint-devel" and "tuxpaint-users" mailing lists:
|
"tuxpaint-devel" and "tuxpaint-users" mailing lists:
|
||||||
https://tuxpaint.org/lists/.
|
https://tuxpaint.org/lists/.
|
||||||
|
|
||||||
Glossary
|
Orðasafn
|
||||||
|
|
||||||
* alpha: See "RGBA"
|
* alfa: See "RGBA"
|
||||||
* &: See "ampersand"
|
* &: See "'og' merki"
|
||||||
* ampersand (pointers): "&". A symbol in C that allows you to refer to
|
* 'og' merki (bendlar): "&". A symbol in C that allows you to refer to
|
||||||
the memory address of a variable; that is, a pointer. (For example,
|
the memory address of a variable; that is, a pointer. (For example,
|
||||||
consider "int i;". Later, "&i" refers to the memory where "i" is
|
consider "int i;". Later, "&i" refers to the memory where "i" is
|
||||||
stored, not the value of "i" itself; it is a 'pointer to "i"'.) See
|
stored, not the value of "i" itself; it is a 'pointer to "i"'.) See
|
||||||
also: "star"
|
also: "star"
|
||||||
* ampersand (bitwise operator): "&". A symbol in C that acts as a
|
* 'og' merki (bitwise operator): "&". A symbol in C that acts as a
|
||||||
bitwise "and" operator. Only bits set in both values will be returned.
|
bitwise "and" operator. Only bits set in both values will be returned.
|
||||||
For example, "11 & 6" compares the binary values '1011' to '0110'.
|
For example, "11 & 6" compares the binary values '1011' to '0110'.
|
||||||
Only the bit in the 2's place is set, so the result is 2 ('0010'). See
|
Only the bit in the 2's place is set, so the result is 2 ('0010'). See
|
||||||
also: "bit"
|
also: "bitar"
|
||||||
* API: Application Programming Interface. TBD
|
* API: Application Programming Interface. TBD
|
||||||
* argument: A value sent to a function.
|
* viðfang: A value sent to a function.
|
||||||
* arrow: "->". A symbol in C that references an element within a pointer
|
* arrow: "->". A symbol in C that references an element within a pointer
|
||||||
to a struct.
|
to a struct.
|
||||||
* backquote: See "grave"
|
* backquote: See "grave"
|
||||||
* backtick: See "grave"
|
* bakslag: See "grave"
|
||||||
* bit: "Binary digit." Bits are the basic storage unit in a computer's
|
* bitar: "Binary digit." Bits are the basic storage unit in a computer's
|
||||||
memory, disk, networking, etc. They represent either 0 or 1. (Compared
|
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
|
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
|
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
|
"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
|
decimal, we go from right to left: ones place, tens place, hundreds
|
||||||
place, thousands place, etc. In binary, it is: ones place, twos place,
|
place, thousands place, etc. In binary, it is: ones place, twos place,
|
||||||
fours place, eights place, etc. See also: "byte"
|
fours place, eights place, etc. See also: "bæti"
|
||||||
* blue: See "RGBA"
|
* blátt: See "RGBA"
|
||||||
* boolean 'or': A mathematical operation that results in a true value if
|
* boole gildið 'eða': A mathematical operation that results in a true
|
||||||
either operand is true. ("1 | 0", "0 | 1" and "1 | 1" all result in
|
value if either operand is true. ("1 | 0", "0 | 1" and "1 | 1" all
|
||||||
"1". "0 | 0" results in "0".)
|
result in "1". "0 | 0" results in "0".)
|
||||||
* |: See "boolean 'or'"
|
* |: See "boole gildið 'eða'"
|
||||||
* .: See "dot"
|
* .: See "punktur"
|
||||||
* `: See "grave"
|
* `: See "grave"
|
||||||
* *: See "star"
|
* *: See "star"
|
||||||
* byte: A unit of memory made up of 8 bits. As a signed value, it can
|
* bæti: 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
|
represent -128 through 127. As an unsigned value, it can represent 0
|
||||||
through 255. As a series of bits, for example, the byte "00001100"
|
through 255. As a series of bits, for example, the byte "00001100"
|
||||||
represents the decimal value 12.
|
represents the decimal value 12.
|
||||||
* callback: TBD
|
* svörun: TBD
|
||||||
* C enumeration: A construct in C that allows you to label numeric
|
* C enumeration: A construct in C that allows you to label numeric
|
||||||
values (usually starting at 0 and incrementing by one). (e.g., "enum {
|
values (usually starting at 0 and incrementing by one). (e.g., "enum {
|
||||||
ONE, TWO, THREE };"
|
ONE, TWO, THREE };"
|
||||||
* C function: TBD
|
* C function: TBD
|
||||||
* C function prototype: TBD
|
* C function prototype: TBD
|
||||||
* C header file: TBD
|
* C header file: TBD
|
||||||
* channel: TBD
|
* rás: TBD
|
||||||
* click: The action of pressing a button on a mouse.
|
* smellur: The action of pressing a button on a mouse.
|
||||||
* coordinates: A set of numbers corresponding to a physical position;
|
* hnit: A set of numbers corresponding to a physical position; for
|
||||||
for example, in a two-dimensional (2D) image, "X" and "Y" coordinates
|
example, in a two-dimensional (2D) image, "X" and "Y" coordinates
|
||||||
specify the position across (left-to-right) and down the image,
|
specify the position across (left-to-right) and down the image,
|
||||||
respectively. In SDL, the coordinates (0,0) is the top-leftmost pixel
|
respectively. In SDL, the coordinates (0,0) is the top-leftmost pixel
|
||||||
of a surface.
|
of a surface.
|
||||||
|
|
@ -1105,17 +1105,18 @@ macOS
|
||||||
RADIUS 16"; all instances of "RADIUS" will be replaced with "16"), but
|
RADIUS 16"; all instances of "RADIUS" will be replaced with "16"), but
|
||||||
can also be used to create macros. Typically placed within C header
|
can also be used to create macros. Typically placed within C header
|
||||||
files.
|
files.
|
||||||
* dimensions: The size of an object, in terms of its width (left to
|
* stærðir: The size of an object, in terms of its width (left to right)
|
||||||
right) and height (top to bottom).
|
and height (top to bottom).
|
||||||
* .dll: See "Shared Object"
|
* .dll: See "Shared Object"
|
||||||
* dot: ".". A symbol in C that references an element within a struct.
|
* punktur: ".". A symbol in C that references an element within a
|
||||||
* drag: The action of moving a mouse while the button remains held.
|
struct.
|
||||||
|
* draga: The action of moving a mouse while the button remains held.
|
||||||
* element: A variable stored within a C structure. (Example: "w" and "h"
|
* element: A variable stored within a C structure. (Example: "w" and "h"
|
||||||
elements of SDL_Surface store the surface's width and height,
|
elements of SDL_Surface store the surface's width and height,
|
||||||
respectively.)
|
respectively.)
|
||||||
* enum: See "C enumeration"
|
* enum: See "C enumeration"
|
||||||
* float: See "floating point"
|
* float: See "fleytitala"
|
||||||
* floating point: TBD
|
* fleytitala: TBD
|
||||||
* format: An SDL_Surface element (a pointer to an SDL_PixelFormat
|
* format: An SDL_Surface element (a pointer to an SDL_PixelFormat
|
||||||
structure) that contains information about a surface; for example, the
|
structure) that contains information about a surface; for example, the
|
||||||
number of bits used to represent each pixel). See also the
|
number of bits used to represent each pixel). See also the
|
||||||
|
|
@ -1129,13 +1130,13 @@ macOS
|
||||||
* GNU C Compiler: See "gcc"
|
* GNU C Compiler: See "gcc"
|
||||||
* grave: The "`" character; used by the BASH shell to use the output of
|
* grave: The "`" character; used by the BASH shell to use the output of
|
||||||
a command as the command-line arguments to another.
|
a command as the command-line arguments to another.
|
||||||
* green: See "RGBA"
|
* grænt: See "RGBA"
|
||||||
* ->: See "arrow"
|
* ->: See "arrow"
|
||||||
* .h: See "C header file"
|
* .h: See "C header file"
|
||||||
* header: See "C header file"
|
* haus: See "C header file"
|
||||||
* header file: See "C header file"
|
* header file: See "C header file"
|
||||||
* HSV: Hue, Saturation and Value. TBD
|
* HSV: Hue, Saturation and Value. TBD
|
||||||
* hue: See "HSV"
|
* litblær: See "HSV"
|
||||||
* IMG_Load(): An SDL_image function that loads an image file (e.g., a
|
* IMG_Load(): An SDL_image function that loads an image file (e.g., a
|
||||||
PNG) and returns it as an "SDL_Surface *".
|
PNG) and returns it as an "SDL_Surface *".
|
||||||
* #include: A C statement that asks the compiler to read the contents of
|
* #include: A C statement that asks the compiler to read the contents of
|
||||||
|
|
@ -1143,12 +1144,12 @@ macOS
|
||||||
* int: See "integer"
|
* int: See "integer"
|
||||||
* integer: TBD
|
* integer: TBD
|
||||||
* libSDL: See "Simple DirectMedia Layer"
|
* libSDL: See "Simple DirectMedia Layer"
|
||||||
* linear: TBD
|
* línulegt: TBD
|
||||||
* macro: A C construct that looks similar to a C function, but is simply
|
* fjölvi: A C construct that looks similar to a C function, but is
|
||||||
a #define that is expanded 'inline'. For example, if you declared the
|
simply a #define that is expanded 'inline'. For example, if you
|
||||||
macro "#define ADD(A,B) ((A)+(B))", and then used it with "c =
|
declared the macro "#define ADD(A,B) ((A)+(B))", and then used it with
|
||||||
ADD(1,2);", that line of code would literally expand to "c = ((1) +
|
"c = ADD(1,2);", that line of code would literally expand to "c = ((1)
|
||||||
(2));", or more simply, "c = 1 + 2;".
|
+ (2));", or more simply, "c = 1 + 2;".
|
||||||
* magic_api: A C structure that is passed along to a plugin's functions
|
* magic_api: A C structure that is passed along to a plugin's functions
|
||||||
that exposes data and functions within the running copy of Tux Paint.
|
that exposes data and functions within the running copy of Tux Paint.
|
||||||
* make: A utility that automatically determines which pieces of a larger
|
* make: A utility that automatically determines which pieces of a larger
|
||||||
|
|
@ -1169,7 +1170,7 @@ macOS
|
||||||
* namespace: TBD
|
* namespace: TBD
|
||||||
* .ogg: See "Ogg Vorbis"
|
* .ogg: See "Ogg Vorbis"
|
||||||
* Ogg Vorbis: See also: "WAV"
|
* Ogg Vorbis: See also: "WAV"
|
||||||
* Plugin: TBD
|
* Viðbót: TBD
|
||||||
* .png: Portable Network Graphics. An extensible file format for the
|
* .png: Portable Network Graphics. An extensible file format for the
|
||||||
lossless, portable, well-compressed storage of raster images. It's the
|
lossless, portable, well-compressed storage of raster images. It's the
|
||||||
file format Tux Paint uses to save images, and for its brushes and
|
file format Tux Paint uses to save images, and for its brushes and
|
||||||
|
|
@ -1177,9 +1178,9 @@ macOS
|
||||||
with full 8bpp alpha transparency), excellent for use in graphics
|
with full 8bpp alpha transparency), excellent for use in graphics
|
||||||
programs like Tux Paint. See also the "png(5)" man page)
|
programs like Tux Paint. See also the "png(5)" man page)
|
||||||
* pointer: See "C pointer"
|
* pointer: See "C pointer"
|
||||||
* prototype: See "C function prototype"
|
* frumgerð: See "C function prototype"
|
||||||
* red: See "RGBA"
|
* rautt: See "RGBA"
|
||||||
* release: The action of releasing a button on a mouse.
|
* sleppa: The action of releasing a button on a mouse.
|
||||||
* RGBA: "Red, Green, Blue, Alpha." TBD
|
* RGBA: "Red, Green, Blue, Alpha." TBD
|
||||||
* RGB: See "RGBA"
|
* RGB: See "RGBA"
|
||||||
* saturation: See "HSV"
|
* saturation: See "HSV"
|
||||||
|
|
@ -1233,7 +1234,7 @@ macOS
|
||||||
variable. (For example, later "*p = 50;" assigns the value of 50 to
|
variable. (For example, later "*p = 50;" assigns the value of 50 to
|
||||||
the memory that "p" points to; it does not change the value of "p",
|
the memory that "p" points to; it does not change the value of "p",
|
||||||
which is still a pointer to an integer. In essence, it changed the
|
which is still a pointer to an integer. In essence, it changed the
|
||||||
integer that's being pointed to.) See also: "ampersand"
|
integer that's being pointed to.) See also: "'og' merki"
|
||||||
* strdup(): A C function that allocates enough memory to store a copy of
|
* strdup(): A C function that allocates enough memory to store a copy of
|
||||||
a string, copies the string to it, and returns a "char *" pointer to
|
a string, copies the string to it, and returns a "char *" pointer to
|
||||||
the new copy. See also the "strdup(3)" man page)
|
the new copy. See also the "strdup(3)" man page)
|
||||||
|
|
@ -1251,7 +1252,7 @@ macOS
|
||||||
representing a pixel's color; i.e., RBGA value).
|
representing a pixel's color; i.e., RBGA value).
|
||||||
* Uint8: An 8-bit, unsigned integer (defined by libSDL). In other words,
|
* Uint8: An 8-bit, unsigned integer (defined by libSDL). In other words,
|
||||||
a byte that can represent 0 through 255.
|
a byte that can represent 0 through 255.
|
||||||
* unsigned: In C, a variable that can store a numeric value can be
|
* óundirritað: In C, a variable that can store a numeric value can be
|
||||||
declared as either "signed" (the default), or "unsigned". In the
|
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
|
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
|
value (either positive or negative). In the latter case, the value can
|
||||||
|
|
@ -1261,7 +1262,7 @@ macOS
|
||||||
go below 0. For the purposes of graphics in SDL, unsigned values
|
go below 0. For the purposes of graphics in SDL, unsigned values
|
||||||
should be used for RGB values, since each channel (red, green and
|
should be used for RGB values, since each channel (red, green and
|
||||||
blue) may be between 0 (off) and 255 (brightest).
|
blue) may be between 0 (off) and 255 (brightest).
|
||||||
* value: See "HSV"
|
* gildi: See "HSV"
|
||||||
* variable: A construct in computer programming that contains a value
|
* variable: A construct in computer programming that contains a value
|
||||||
which can be referenced again later by referring to the variable's
|
which can be referenced again later by referring to the variable's
|
||||||
name, and typically changed later. For example, a variable to hold
|
name, and typically changed later. For example, a variable to hold
|
||||||
|
|
@ -1269,5 +1270,5 @@ macOS
|
||||||
examined later: "if (a >= 18) { /* they are an adult */ } else { /*
|
examined later: "if (a >= 18) { /* they are an adult */ } else { /*
|
||||||
they are not an adult */ }".
|
they are not an adult */ }".
|
||||||
* .wav: See also: "Ogg Vorbis"
|
* .wav: See also: "Ogg Vorbis"
|
||||||
* (w,h): See "Dimensions"
|
* (w,h): See "Stærðir"
|
||||||
* (x,y): See "Coordinates"
|
* (x,y): See "Hnit"
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31
|
version 0.9.31
|
||||||
|
|
||||||
Options Documentation
|
Options Documentation
|
||||||
|
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2002-2023 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
29. maí 2023
|
maí 29, 2023
|
||||||
|
|
||||||
+---------------------------------------------+
|
+---------------------------------------------+
|
||||||
|Efnisyfirlit |
|
|Table of Contents |
|
||||||
|---------------------------------------------|
|
|---------------------------------------------|
|
||||||
| * Tux Paint Config. |
|
| * Tux Paint Config. |
|
||||||
| * Configuration File |
|
| * Configuration File |
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31
|
version 0.9.31
|
||||||
PNG Documentation
|
PNG Documentation
|
||||||
|
|
||||||
Höfundarréttur © 2007-2022 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2007-2022 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
4. júní 2022
|
júní 4, 2022
|
||||||
|
|
||||||
About PNGs
|
About PNGs
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31
|
version 0.9.31
|
||||||
|
|
||||||
A simple drawing program for children
|
A simple drawing program for children
|
||||||
|
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2002-2023 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
29. maí 2023
|
maí 29, 2023
|
||||||
|
|
||||||
+----------------------------------------------------+
|
+----------------------------------------------------+
|
||||||
|Efnisyfirlit |
|
|Table of Contents |
|
||||||
|----------------------------------------------------|
|
|----------------------------------------------------|
|
||||||
| * About Tux Paint |
|
| * About Tux Paint |
|
||||||
| * Using Tux Paint |
|
| * Using Tux Paint |
|
||||||
|
|
@ -844,7 +844,7 @@ Available Tools
|
||||||
Click this button and your picture will be printed!
|
Click this button and your picture will be printed!
|
||||||
|
|
||||||
On most platforms, you can also hold the [Alt] key (called
|
On most platforms, you can also hold the [Alt] key (called
|
||||||
[Slaufa] on Macs) while clicking the 'Print' button to get a
|
[Option] on Macs) while clicking the 'Print' button to get a
|
||||||
printer dialog. Note that this may not work if you're running Tux
|
printer dialog. Note that this may not work if you're running Tux
|
||||||
Paint in fullscreen mode. See below.
|
Paint in fullscreen mode. See below.
|
||||||
|
|
||||||
|
|
@ -904,7 +904,7 @@ Available Tools
|
||||||
printer with default settings when the 'Print' button
|
printer with default settings when the 'Print' button
|
||||||
is pushed.
|
is pushed.
|
||||||
|
|
||||||
However, if you hold the [Alt] (or [Slaufa]) key on
|
However, if you hold the [Alt] (or [Option]) key on
|
||||||
the keyboard while clicking the 'Print' button, as
|
the keyboard while clicking the 'Print' button, as
|
||||||
long as you're not in fullscreen mode, your operating
|
long as you're not in fullscreen mode, your operating
|
||||||
system's printer dialog will appear, where you can
|
system's printer dialog will appear, where you can
|
||||||
|
|
@ -926,14 +926,14 @@ Available Tools
|
||||||
By default, Tux Paint only shows the printer dialog
|
By default, Tux Paint only shows the printer dialog
|
||||||
(or, on Linux/Unix, runs the "altprintcommand"; e.g.,
|
(or, on Linux/Unix, runs the "altprintcommand"; e.g.,
|
||||||
"kprinter" instead of "lpr") if the [Alt] (or
|
"kprinter" instead of "lpr") if the [Alt] (or
|
||||||
[Slaufa]) key is held while clicking the 'Print'
|
[Option]) key is held while clicking the 'Print'
|
||||||
button.
|
button.
|
||||||
|
|
||||||
However, this behavior can be changed. You can have
|
However, this behavior can be changed. You can have
|
||||||
the printer dialog always appear by using
|
the printer dialog always appear by using
|
||||||
"--altprintalways" on the command-line, or
|
"--altprintalways" on the command-line, or
|
||||||
"altprint=always" in Tux Paint's configuration file.
|
"altprint=always" in Tux Paint's configuration file.
|
||||||
Conversely, you can prevent the [Alt]/[Slaufa] key
|
Conversely, you can prevent the [Alt]/[Option] key
|
||||||
from having any effect by using "--altprintnever", or
|
from having any effect by using "--altprintnever", or
|
||||||
"altprint=never".
|
"altprint=never".
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31
|
version 0.9.31
|
||||||
Signals Documentation
|
Signals Documentation
|
||||||
|
|
||||||
Höfundarréttur © 2019-2022 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2019-2022 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
4. júní 2022
|
júní 4, 2022
|
||||||
|
|
||||||
Tux Paint responds to the following signals (which can be sent to the
|
Tux Paint responds to the following signals (which can be sent to the
|
||||||
program's process via `kill` or `killall`, for example).
|
program's process via `kill` or `killall`, for example).
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
Tux Paint
|
Tux Paint
|
||||||
útgáfa 0.9.31
|
version 0.9.31
|
||||||
SVG Documentation
|
SVG Documentation
|
||||||
|
|
||||||
Höfundarréttur © 2007-2022 eftir various contributors; sjá AUTHORS-skrá.
|
Copyright © 2007-2022 by various contributors; see AUTHORS.txt.
|
||||||
https://tuxpaint.org/
|
https://tuxpaint.org/
|
||||||
|
|
||||||
4. júní 2022
|
júní 4, 2022
|
||||||
|
|
||||||
About SVGs
|
About SVGs
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,15 +17,15 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31 Advanced Stamps 'How-To' </h1>
|
version 0.9.31 Advanced Stamps 'How-To' </h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2006-2022 eftir Albert Cahalan and others; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2006-2022 by Albert Cahalan and others; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
4. júní 2022 </p>
|
júní 4, 2022 </p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<hr size="2"
|
<hr size="2"
|
||||||
|
|
@ -34,10 +34,10 @@
|
||||||
<table border="2"
|
<table border="2"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
cellpadding="2"
|
cellpadding="2"
|
||||||
summary="Efnisyfirlit">
|
summary="Table of Contents">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Efnisyfirlit </th>
|
Table of Contents </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -232,7 +232,7 @@
|
||||||
Now you will paint away the existing edge fringe. Be sure that you are editing and viewing the WIP image. Frequent layer visibility changes will help you to see what you are doing. You are likely to use all of: </p>
|
Now you will paint away the existing edge fringe. Be sure that you are editing and viewing the WIP image. Frequent layer visibility changes will help you to see what you are doing. You are likely to use all of: </p>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>composited over grænt (mask enabled)</li>
|
<li>composited over green (mask enabled)</li>
|
||||||
<li>composited over magenta (mask enabled)</li>
|
<li>composited over magenta (mask enabled)</li>
|
||||||
<li>original (the top or bottom layer)</li>
|
<li>original (the top or bottom layer)</li>
|
||||||
<li>composited over the original (mask enabled)</li>
|
<li>composited over the original (mask enabled)</li>
|
||||||
|
|
|
||||||
|
|
@ -17,16 +17,16 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31<br/>
|
version 0.9.31<br/>
|
||||||
Environment Variables Documentation </h1>
|
Environment Variables Documentation </h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2021-2023 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2021-2023 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
5. maí 2023 </p>
|
maí 5, 2023 </p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
|
||||||
|
|
@ -92,27 +92,27 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31 </h1>
|
version 0.9.31 </h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2002-2023 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
29. maí 2023 </p>
|
maí 29, 2023 </p>
|
||||||
</center>
|
</center>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<table border="2"
|
<table border="2"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
cellpadding="2"
|
cellpadding="2"
|
||||||
summary="Efnisyfirlit"
|
summary="Table of Contents"
|
||||||
align="center"
|
align="center"
|
||||||
style="page-break-inside: avoid;">
|
style="page-break-inside: avoid;">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Efnisyfirlit </th>
|
Table of Contents </th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
||||||
|
|
@ -17,15 +17,15 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31 Frequently Asked Questions </h1>
|
version 0.9.31 Frequently Asked Questions </h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2002-2023 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
16. mars 2023 </p>
|
mars 16, 2023 </p>
|
||||||
</center>
|
</center>
|
||||||
|
|
||||||
<hr size="2"
|
<hr size="2"
|
||||||
|
|
@ -34,10 +34,10 @@
|
||||||
<table border="2"
|
<table border="2"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
cellpadding="2"
|
cellpadding="2"
|
||||||
summary="Efnisyfirlit">
|
summary="Table of Contents">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Efnisyfirlit </th>
|
Table of Contents </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -89,28 +89,28 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31<br/>
|
version 0.9.31<br/>
|
||||||
Installation Documentation </h1>
|
Installation Documentation </h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2002-2023 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
13. maí 2023 </p>
|
maí 13, 2023 </p>
|
||||||
</center>
|
</center>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<table border="2"
|
<table border="2"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
cellpadding="2"
|
cellpadding="2"
|
||||||
summary="Efnisyfirlit"
|
summary="Table of Contents"
|
||||||
align="center"
|
align="center"
|
||||||
style="page-break-inside: avoid;">
|
style="page-break-inside: avoid;">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Efnisyfirlit </th>
|
Table of Contents </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -300,7 +300,7 @@
|
||||||
|
|
||||||
<p style="font-size: small;">
|
<p style="font-size: small;">
|
||||||
<em>
|
<em>
|
||||||
10. júlí 2022 Shin-ichi TOYAMA <<a href="mailto:dolphin6k@wmail.plala.or.jp">dolphin6k@wmail.plala.or.jp</a>>
|
júlí 10, 2022 Shin-ichi TOYAMA <<a href="mailto:dolphin6k@wmail.plala.or.jp">dolphin6k@wmail.plala.or.jp</a>>
|
||||||
</em>
|
</em>
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -944,7 +944,7 @@
|
||||||
</h2>
|
</h2>
|
||||||
<p style="font-size: small;">
|
<p style="font-size: small;">
|
||||||
<em>
|
<em>
|
||||||
5. júní 2022 Mark Kim <<a href="mailto:markuskimius@gmail.com">markuskimius@gmail.com</a>>
|
júní 5, 2022 Mark Kim <<a href="mailto:markuskimius@gmail.com">markuskimius@gmail.com</a>>
|
||||||
</em>
|
</em>
|
||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
@ -1178,7 +1178,7 @@
|
||||||
</h2>
|
</h2>
|
||||||
<p style="font-size: small;">
|
<p style="font-size: small;">
|
||||||
<em>
|
<em>
|
||||||
29. mars 2023 Pere Pujal i Carabantes <<a href="mailto:perepujal@gmail.com">perepujal@gmail.com</a>>
|
mars 29, 2023 Pere Pujal i Carabantes <<a href="mailto:perepujal@gmail.com">perepujal@gmail.com</a>>
|
||||||
(Edited by Bill Kendrick)
|
(Edited by Bill Kendrick)
|
||||||
</em>
|
</em>
|
||||||
</p>
|
</p>
|
||||||
|
|
@ -1245,7 +1245,7 @@
|
||||||
</h2>
|
</h2>
|
||||||
<p style="font-size: small;">
|
<p style="font-size: small;">
|
||||||
<em>
|
<em>
|
||||||
7. maí 2023 Luc Schrijvers <<a href="mailto:begasus@gmail.com">begasus@gmail.com</a>>
|
maí 7, 2023 Luc Schrijvers <<a href="mailto:begasus@gmail.com">begasus@gmail.com</a>>
|
||||||
(Edited by Bill Kendrick)
|
(Edited by Bill Kendrick)
|
||||||
</em>
|
</em>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -91,36 +91,36 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
version 0.9.31 </h1>
|
útgáfa 0.9.31 </h1>
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
Magic Tool Plugin API Documentation </h2>
|
Magic Tool Plugin API Documentation </h2>
|
||||||
|
|
||||||
<p>
|
<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>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
apríl 13, 2023 </p>
|
13. apríl 2023 </p>
|
||||||
</center>
|
</center>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<table border="2"
|
<table border="2"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
cellpadding="2"
|
cellpadding="2"
|
||||||
summary="Table of Contents"
|
summary="Efnisyfirlit"
|
||||||
align="center"
|
align="center"
|
||||||
style="page-break-inside: avoid;">
|
style="page-break-inside: avoid;">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Table of Contents </th>
|
Efnisyfirlit </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<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="#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="#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>
|
<li><a href="#housekeeping">Plugin "housekeeping" functions</a></li> <li><a href="#eventfuncs">Plugin event functions</a></li> </ul>
|
||||||
|
|
@ -128,7 +128,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#tpfuncs">Tux Paint Functions and Data</a> <ul>
|
<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>
|
||||||
<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><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>
|
</li>
|
||||||
|
|
@ -138,7 +138,7 @@
|
||||||
<li><a href="#installing">Installing</a> <ul>
|
<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><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>
|
||||||
<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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
@ -149,7 +149,7 @@
|
||||||
<div class="keeptogether">
|
<div class="keeptogether">
|
||||||
<header>
|
<header>
|
||||||
<h1 id="overview">
|
<h1 id="overview">
|
||||||
Overview </h1>
|
Yfirlit </h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -593,7 +593,7 @@
|
||||||
<section class="indent"><!-- H3: Informational -->
|
<section class="indent"><!-- H3: Informational -->
|
||||||
<header>
|
<header>
|
||||||
<h3 id="informational">
|
<h3 id="informational">
|
||||||
Informational </h3>
|
Til upplýsingar </h3>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
|
|
@ -1122,7 +1122,7 @@
|
||||||
<section class="outer"><!-- H1: Getting Help -->
|
<section class="outer"><!-- H1: Getting Help -->
|
||||||
<header>
|
<header>
|
||||||
<h1 id="help">
|
<h1 id="help">
|
||||||
Getting Help </h1>
|
Til að fá hjálp </h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -1136,28 +1136,28 @@
|
||||||
<section class="outer"><!-- H1: Glossary -->
|
<section class="outer"><!-- H1: Glossary -->
|
||||||
<header>
|
<header>
|
||||||
<h1 id="glossary">
|
<h1 id="glossary">
|
||||||
Glossary </h1>
|
Orðasafn </h1>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<b>alpha:</b>
|
<b>alfa:</b>
|
||||||
See "RGBA" </li>
|
See "RGBA" </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>&</code>:</b>
|
<b><code>&</code>:</b>
|
||||||
See "ampersand" </li>
|
See "'og' merki" </li>
|
||||||
<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>
|
"<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>
|
<li>
|
||||||
<b>ampersand (bitwise operator):</b>
|
<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: "bit" </li>
|
"<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>
|
<li>
|
||||||
<b>API:</b>
|
<b>API:</b>
|
||||||
Application Programming Interface. <i>TBD</i>
|
Application Programming Interface. <i>TBD</i>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>argument:</b>
|
<b>viðfang:</b>
|
||||||
A value sent to a function. </li>
|
A value sent to a function. </li>
|
||||||
<li>
|
<li>
|
||||||
<b>arrow:</b>
|
<b>arrow:</b>
|
||||||
|
|
@ -1166,23 +1166,23 @@
|
||||||
<b>backquote:</b>
|
<b>backquote:</b>
|
||||||
See "grave" </li>
|
See "grave" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>backtick:</b>
|
<b>bakslag:</b>
|
||||||
See "grave" </li>
|
See "grave" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>bit:</b>
|
<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: "byte" </li>
|
"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>
|
<li>
|
||||||
<b>blue:</b>
|
<b>blátt:</b>
|
||||||
See "RGBA" </li>
|
See "RGBA" </li>
|
||||||
<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>
|
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>
|
<li>
|
||||||
<b><code>|</code>:</b>
|
<b><code>|</code>:</b>
|
||||||
See "boolean 'or'" </li>
|
See "boole gildið 'eða'" </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>.</code>:</b>
|
<b><code>.</code>:</b>
|
||||||
See "dot" </li>
|
See "punktur" </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>`</code>:</b>
|
<b><code>`</code>:</b>
|
||||||
See "grave" </li>
|
See "grave" </li>
|
||||||
|
|
@ -1190,10 +1190,10 @@
|
||||||
<b><code>*</code>:</b>
|
<b><code>*</code>:</b>
|
||||||
See "star" </li>
|
See "star" </li>
|
||||||
<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>
|
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>
|
<li>
|
||||||
<b>callback:</b>
|
<b>svörun:</b>
|
||||||
<i>TBD</i>
|
<i>TBD</i>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -1212,14 +1212,14 @@
|
||||||
<i>TBD</i>
|
<i>TBD</i>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>channel:</b>
|
<b>rás:</b>
|
||||||
<i>TBD</i>
|
<i>TBD</i>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>click:</b>
|
<b>smellur:</b>
|
||||||
The action of pressing a button on a mouse. </li>
|
The action of pressing a button on a mouse. </li>
|
||||||
<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>
|
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>
|
<li>
|
||||||
<b>C pointer:</b>
|
<b>C pointer:</b>
|
||||||
|
|
@ -1231,16 +1231,16 @@
|
||||||
<b><code>#define</code>:</b>
|
<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>
|
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>
|
<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>
|
The size of an object, in terms of its width (left to right) and height (top to bottom). </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>.dll</code>:</b>
|
<b><code>.dll</code>:</b>
|
||||||
See "Shared Object" </li>
|
See "Shared Object" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>dot:</b>
|
<b>punktur:</b>
|
||||||
"<code>.</code>". A symbol in C that references an element within a struct. </li>
|
"<code>.</code>". A symbol in C that references an element within a struct. </li>
|
||||||
<li>
|
<li>
|
||||||
<b>drag:</b>
|
<b>draga:</b>
|
||||||
The action of moving a mouse while the button remains held. </li>
|
The action of moving a mouse while the button remains held. </li>
|
||||||
<li>
|
<li>
|
||||||
<b>element:</b>
|
<b>element:</b>
|
||||||
|
|
@ -1250,9 +1250,9 @@
|
||||||
See "C enumeration" </li>
|
See "C enumeration" </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>float</code>:</b>
|
<b><code>float</code>:</b>
|
||||||
See "floating point" </li>
|
See "fleytitala" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>floating point:</b>
|
<b>fleytitala:</b>
|
||||||
<i>TBD</i>
|
<i>TBD</i>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -1277,7 +1277,7 @@
|
||||||
<b>grave:</b>
|
<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>
|
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>
|
<li>
|
||||||
<b>green:</b>
|
<b>grænt:</b>
|
||||||
See "RGBA" </li>
|
See "RGBA" </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>-></code>:</b>
|
<b><code>-></code>:</b>
|
||||||
|
|
@ -1286,7 +1286,7 @@
|
||||||
<b><code>.h</code>:</b>
|
<b><code>.h</code>:</b>
|
||||||
See "C header file" </li>
|
See "C header file" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>header:</b>
|
<b>haus:</b>
|
||||||
See "C header file" </li>
|
See "C header file" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>header file:</b>
|
<b>header file:</b>
|
||||||
|
|
@ -1296,7 +1296,7 @@
|
||||||
Hue, Saturation and Value. <i>TBD</i>
|
Hue, Saturation and Value. <i>TBD</i>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<b>hue:</b>
|
<b>litblær:</b>
|
||||||
See "HSV" </li>
|
See "HSV" </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>IMG_Load()</code>:</b>
|
<b><code>IMG_Load()</code>:</b>
|
||||||
|
|
@ -1315,11 +1315,11 @@
|
||||||
<b><code>libSDL</code>:</b>
|
<b><code>libSDL</code>:</b>
|
||||||
See "Simple DirectMedia Layer" </li>
|
See "Simple DirectMedia Layer" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>linear:</b>
|
<b>línulegt:</b>
|
||||||
<i>TBD</i>
|
<i>TBD</i>
|
||||||
</li>
|
</li>
|
||||||
<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>
|
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>
|
<li>
|
||||||
<b><code>magic_api</code>:</b>
|
<b><code>magic_api</code>:</b>
|
||||||
|
|
@ -1353,7 +1353,7 @@
|
||||||
<b><cite>Ogg Vorbis</cite>:</b>
|
<b><cite>Ogg Vorbis</cite>:</b>
|
||||||
See also: "WAV" </li>
|
See also: "WAV" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>Plugin:</b>
|
<b>Viðbót:</b>
|
||||||
<i>TBD</i>
|
<i>TBD</i>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -1363,13 +1363,13 @@
|
||||||
<b>pointer:</b>
|
<b>pointer:</b>
|
||||||
See "C pointer" </li>
|
See "C pointer" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>prototype:</b>
|
<b>frumgerð:</b>
|
||||||
See "C function prototype" </li>
|
See "C function prototype" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>red:</b>
|
<b>rautt:</b>
|
||||||
See "RGBA" </li>
|
See "RGBA" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>release:</b>
|
<b>sleppa:</b>
|
||||||
The action of releasing a button on a mouse. </li>
|
The action of releasing a button on a mouse. </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>RGBA</code>:</b>
|
<b><code>RGBA</code>:</b>
|
||||||
|
|
@ -1423,7 +1423,7 @@
|
||||||
See "RGBA" </li>
|
See "RGBA" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>star:</b>
|
<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>
|
<li>
|
||||||
<b><code>strdup()</code>:</b>
|
<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>
|
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>
|
<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>
|
An 8-bit, unsigned integer (defined by libSDL). In other words, a byte that can represent 0 through 255. </li>
|
||||||
<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>
|
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>
|
<li>
|
||||||
<b>value:</b>
|
<b>gildi:</b>
|
||||||
See "HSV" </li>
|
See "HSV" </li>
|
||||||
<li>
|
<li>
|
||||||
<b>variable:</b>
|
<b>variable:</b>
|
||||||
|
|
@ -1456,10 +1456,10 @@
|
||||||
See also: "Ogg Vorbis" </li>
|
See also: "Ogg Vorbis" </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>(w,h)</code>:</b>
|
<b><code>(w,h)</code>:</b>
|
||||||
See "Dimensions" </li>
|
See "Stærðir" </li>
|
||||||
<li>
|
<li>
|
||||||
<b><code>(x,y)</code>:</b>
|
<b><code>(x,y)</code>:</b>
|
||||||
See "Coordinates" </li>
|
See "Hnit" </li>
|
||||||
</ul>
|
</ul>
|
||||||
</section><!-- H1: Glossary -->
|
</section><!-- H1: Glossary -->
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,30 +91,30 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31 </h1>
|
version 0.9.31 </h1>
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
Options Documentation </h2>
|
Options Documentation </h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2002-2023 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
29. maí 2023 </p>
|
maí 29, 2023 </p>
|
||||||
</center>
|
</center>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<table border="2"
|
<table border="2"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
cellpadding="2"
|
cellpadding="2"
|
||||||
summary="Efnisyfirlit"
|
summary="Table of Contents"
|
||||||
align="center"
|
align="center"
|
||||||
style="page-break-inside: avoid;">
|
style="page-break-inside: avoid;">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Efnisyfirlit </th>
|
Table of Contents </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -89,16 +89,16 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31<br/>
|
version 0.9.31<br/>
|
||||||
PNG Documentation </h1>
|
PNG Documentation </h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2007-2022 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2007-2022 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
4. júní 2022 </p>
|
júní 4, 2022 </p>
|
||||||
</center>
|
</center>
|
||||||
</header>
|
</header>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -91,29 +91,29 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31 </h1>
|
version 0.9.31 </h1>
|
||||||
|
|
||||||
<h3 align="center">
|
<h3 align="center">
|
||||||
A simple drawing program for children </h3>
|
A simple drawing program for children </h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2002-2023 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br/>
|
Copyright © 2002-2023 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br/>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
29. maí 2023 </p>
|
maí 29, 2023 </p>
|
||||||
</center>
|
</center>
|
||||||
</header>
|
</header>
|
||||||
<table border="2"
|
<table border="2"
|
||||||
cellspacing="0"
|
cellspacing="0"
|
||||||
cellpadding="2"
|
cellpadding="2"
|
||||||
summary="Efnisyfirlit"
|
summary="Table of Contents"
|
||||||
align="center"
|
align="center"
|
||||||
style="page-break-inside: avoid;">
|
style="page-break-inside: avoid;">
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th>
|
||||||
Efnisyfirlit </th>
|
Table of Contents </th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
|
@ -1265,7 +1265,7 @@
|
||||||
Click this button and your picture will be printed! </p>
|
Click this button and your picture will be printed! </p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
On most platforms, you can also hold the <b><code>[Alt]</code></b> key (called <b><code>[Slaufa]</code></b> on Macs) while clicking the 'Print' button to get a printer dialog. Note that this may not work if you're running Tux Paint in fullscreen mode. See below. </p>
|
On most platforms, you can also hold the <b><code>[Alt]</code></b> key (called <b><code>[Option]</code></b> on Macs) while clicking the 'Print' button to get a printer dialog. Note that this may not work if you're running Tux Paint in fullscreen mode. See below. </p>
|
||||||
|
|
||||||
<dl>
|
<dl>
|
||||||
<dt>
|
<dt>
|
||||||
|
|
@ -1341,7 +1341,7 @@
|
||||||
By default, Tux Paint simply prints to the default printer with default settings when the 'Print' button is pushed. </p>
|
By default, Tux Paint simply prints to the default printer with default settings when the 'Print' button is pushed. </p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
However, if you hold the <b><code>[Alt]</code></b> (or <b><code>[Slaufa]</code></b>) key on the keyboard while clicking the 'Print' button, as long as you're not in fullscreen mode, your operating system's printer dialog will appear, where you can change the settings. </p>
|
However, if you hold the <b><code>[Alt]</code></b> (or <b><code>[Option]</code></b>) key on the keyboard while clicking the 'Print' button, as long as you're not in fullscreen mode, your operating system's printer dialog will appear, where you can change the settings. </p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
You can have the printer configuration changes stored between Tux Paint sessions by setting the "<code>printcfg</code>" option. </p>
|
You can have the printer configuration changes stored between Tux Paint sessions by setting the "<code>printcfg</code>" option. </p>
|
||||||
|
|
@ -1359,10 +1359,10 @@
|
||||||
|
|
||||||
<dd>
|
<dd>
|
||||||
<p>
|
<p>
|
||||||
By default, Tux Paint only shows the printer dialog (or, on Linux/Unix, runs the "<code>altprintcommand</code>"; e.g., "<code>kprinter</code>" instead of "<code>lpr</code>") if the <b><code>[Alt]</code></b> (or <b><code>[Slaufa]</code></b>) key is held while clicking the 'Print' button. </p>
|
By default, Tux Paint only shows the printer dialog (or, on Linux/Unix, runs the "<code>altprintcommand</code>"; e.g., "<code>kprinter</code>" instead of "<code>lpr</code>") if the <b><code>[Alt]</code></b> (or <b><code>[Option]</code></b>) key is held while clicking the 'Print' button. </p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
However, this behavior can be changed. You can have the printer dialog always appear by using "<code>--altprintalways</code>" on the command-line, or "<code>altprint=always</code>" in Tux Paint's configuration file. Conversely, you can prevent the <b><code>[Alt]</code></b>/<b><code>[Slaufa]</code></b> key from having any effect by using "<code>--altprintnever</code>", or "<code>altprint=never</code>". </p>
|
However, this behavior can be changed. You can have the printer dialog always appear by using "<code>--altprintalways</code>" on the command-line, or "<code>altprint=always</code>" in Tux Paint's configuration file. Conversely, you can prevent the <b><code>[Alt]</code></b>/<b><code>[Option]</code></b> key from having any effect by using "<code>--altprintnever</code>", or "<code>altprint=never</code>". </p>
|
||||||
|
|
||||||
<p class="note">
|
<p class="note">
|
||||||
<span title="Configuration option">⚙</span> See the "<a href="OPTIONS.html"><em>Options</em></a>" documentation. </p>
|
<span title="Configuration option">⚙</span> See the "<a href="OPTIONS.html"><em>Options</em></a>" documentation. </p>
|
||||||
|
|
|
||||||
|
|
@ -89,16 +89,16 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31<br/>
|
version 0.9.31<br/>
|
||||||
Signals Documentation </h1>
|
Signals Documentation </h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2019-2022 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2019-2022 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
4. júní 2022 </p>
|
júní 4, 2022 </p>
|
||||||
</header>
|
</header>
|
||||||
</center>
|
</center>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -91,16 +91,16 @@
|
||||||
width="205"
|
width="205"
|
||||||
height="210"
|
height="210"
|
||||||
alt="Tux Paint"><br>
|
alt="Tux Paint"><br>
|
||||||
útgáfa 0.9.31<br/>
|
version 0.9.31<br/>
|
||||||
SVG Documentation </h1>
|
SVG Documentation </h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Höfundarréttur © 2007-2022 eftir various contributors; sjá <a href="../../AUTHORS.txt">AUTHORS-skrá</a>.<br>
|
Copyright © 2007-2022 by various contributors; see <a href="../../AUTHORS.txt">AUTHORS.txt</a>.<br>
|
||||||
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
<a href="https://tuxpaint.org/">https://tuxpaint.org/</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
4. júní 2022 </p>
|
júní 4, 2022 </p>
|
||||||
</center>
|
</center>
|
||||||
</header>
|
</header>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/* tp_magic_example.c
|
/* tp_magic_example.c
|
||||||
|
|
||||||
An example of a "Magic" tool plugin for Tux Paint
|
An example of a "Magic" tool plugin for Tux Paint
|
||||||
13. apríl 2023
|
apríl 13, 2023
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h> // Fyrir "strdup()"
|
#include <string.h> // For "strdup()"
|
||||||
#include <libintl.h> // Fyrir "gettext()"
|
#include <libintl.h> // For "gettext()"
|
||||||
|
|
||||||
#include "tp_magic_api.h" // Tux Paint "Magic" tool API header
|
#include "tp_magic_api.h" // Tux Paint "Magic" tool API header
|
||||||
#include "SDL_image.h" // For IMG_Load(), to load our PNG icon
|
#include "SDL_image.h" // For IMG_Load(), to load our PNG icon
|
||||||
|
|
@ -87,7 +87,7 @@ selected in Tux Paint (for tool 1): */
|
||||||
Uint8 example_r, example_g, example_b;
|
Uint8 example_r, example_g, example_b;
|
||||||
|
|
||||||
/* The size the user has selected in Tux Paint (for tool 2): */
|
/* The size the user has selected in Tux Paint (for tool 2): */
|
||||||
Uint8 example_stærð;
|
Uint8 example_size;
|
||||||
|
|
||||||
|
|
||||||
/* Our local function prototypes: */
|
/* Our local function prototypes: */
|
||||||
|
|
@ -101,11 +101,11 @@ _before_ them.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void example_drag(magic_api * api, int which, SDL_Surface * canvas,
|
void example_drag(magic_api * api, int which, SDL_Surface * canvas,
|
||||||
SDL_Surface * skjámynd, int old_x, int old_y, int x, int y,
|
SDL_Surface * snapshot, int old_x, int old_y, int x, int y,
|
||||||
SDL_Rect * update_rect);
|
SDL_Rect * update_rect);
|
||||||
|
|
||||||
void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
||||||
SDL_Surface * skjámynd, int x, int y);
|
SDL_Surface * snapshot, int x, int y);
|
||||||
|
|
||||||
|
|
||||||
/* Setup Functions: */
|
/* Setup Functions: */
|
||||||
|
|
@ -129,7 +129,7 @@ Uint32 example_api_version(void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Frumstilling
|
Initialization
|
||||||
|
|
||||||
This happens once, when Tux Paint starts up and is loading all of the
|
This happens once, when Tux Paint starts up and is loading all of the
|
||||||
'Magic' tool plugins. (Assuming what we returned from api_version was
|
'Magic' tool plugins. (Assuming what we returned from api_version was
|
||||||
|
|
@ -281,7 +281,7 @@ Report our 'Magic' tool descriptions
|
||||||
When Tux Paint is starting up and loading plugins, it asks us to provide
|
When Tux Paint is starting up and loading plugins, it asks us to provide
|
||||||
descriptions of each 'Magic' tool.
|
descriptions of each 'Magic' tool.
|
||||||
*/
|
*/
|
||||||
char *example_get_description(magic_api * api, int which, int hamur)
|
char *example_get_description(magic_api * api, int which, int mode)
|
||||||
{
|
{
|
||||||
const char *our_desc_english;
|
const char *our_desc_english;
|
||||||
const char *our_desc_localized;
|
const char *our_desc_localized;
|
||||||
|
|
@ -340,7 +340,7 @@ int example_modes(magic_api * api, int which)
|
||||||
|
|
||||||
// Report whether the tools offer sizing options
|
// Report whether the tools offer sizing options
|
||||||
|
|
||||||
Uint8 example_accepted_sizes(magic_api * api, int which, int hamur)
|
Uint8 example_accepted_sizes(magic_api * api, int which, int mode)
|
||||||
{
|
{
|
||||||
if (which == TOOL_ONE)
|
if (which == TOOL_ONE)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
@ -351,14 +351,14 @@ Uint8 example_accepted_sizes(magic_api * api, int which, int hamur)
|
||||||
|
|
||||||
// Return our default sizing option
|
// Return our default sizing option
|
||||||
|
|
||||||
Uint8 example_default_size(magic_api * api, int which, int hamur)
|
Uint8 example_default_size(magic_api * api, int which, int mode)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Slökkva
|
Shut down
|
||||||
|
|
||||||
Tux Paint is quitting. When it quits, it asks all of the plugins to 'clean
|
Tux Paint is quitting. When it quits, it asks all of the plugins to 'clean
|
||||||
up' after themselves. We, for example, loaded some sound effects at
|
up' after themselves. We, for example, loaded some sound effects at
|
||||||
|
|
@ -384,8 +384,8 @@ void example_shutdown(magic_api * api)
|
||||||
/* Affect the canvas on click: */
|
/* Affect the canvas on click: */
|
||||||
|
|
||||||
void
|
void
|
||||||
example_click(magic_api * api, int which, int hamur,
|
example_click(magic_api * api, int which, int mode,
|
||||||
SDL_Surface * canvas, SDL_Surface * skjámynd, int x, int y,
|
SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y,
|
||||||
SDL_Rect * update_rect)
|
SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
@ -397,14 +397,14 @@ example_click(magic_api * api, int which, int hamur,
|
||||||
both the beginning and end points of a line.
|
both the beginning and end points of a line.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
example_drag(api, which, canvas, skjámynd, x, y, x, y, update_rect);
|
example_drag(api, which, canvas, snapshot, x, y, x, y, update_rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Affect the canvas on drag: */
|
/* Affect the canvas on drag: */
|
||||||
void
|
void
|
||||||
example_drag(magic_api * api, int which,
|
example_drag(magic_api * api, int which,
|
||||||
SDL_Surface * canvas, SDL_Surface * skjámynd,
|
SDL_Surface * canvas, SDL_Surface * snapshot,
|
||||||
int old_x, int old_y, int x, int y,
|
int old_x, int old_y, int x, int y,
|
||||||
SDL_Rect * update_rect)
|
SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
|
|
@ -417,15 +417,15 @@ example_drag(magic_api * api, int which,
|
||||||
coordinates along the line, as well as other useful things (which of our
|
coordinates along the line, as well as other useful things (which of our
|
||||||
'Magic' tools is being used and the current and snapshot canvases).
|
'Magic' tools is being used and the current and snapshot canvases).
|
||||||
*/
|
*/
|
||||||
SDL_LockSurface(skjámynd);
|
SDL_LockSurface(snapshot);
|
||||||
SDL_LockSurface(canvas);
|
SDL_LockSurface(canvas);
|
||||||
|
|
||||||
api->line((void *) api, which, canvas, skjámynd,
|
api->line((void *) api, which, canvas, snapshot,
|
||||||
old_x, old_y, x, y, 1,
|
old_x, old_y, x, y, 1,
|
||||||
example_line_callback);
|
example_line_callback);
|
||||||
|
|
||||||
SDL_UnlockSurface(canvas);
|
SDL_UnlockSurface(canvas);
|
||||||
SDL_UnlockSurface(skjámynd);
|
SDL_UnlockSurface(snapshot);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
If we need to, swap the X and/or Y values, so that the coordinates
|
If we need to, swap the X and/or Y values, so that the coordinates
|
||||||
|
|
@ -436,17 +436,17 @@ example_drag(magic_api * api, int which,
|
||||||
|
|
||||||
if (old_x > x)
|
if (old_x > x)
|
||||||
{
|
{
|
||||||
int bráðabirgða = old_x;
|
int temp = old_x;
|
||||||
|
|
||||||
old_x = x;
|
old_x = x;
|
||||||
x = bráðabirgða;
|
x = temp;
|
||||||
}
|
}
|
||||||
if (old_y > y)
|
if (old_y > y)
|
||||||
{
|
{
|
||||||
int bráðabirgða = old_y;
|
int temp = old_y;
|
||||||
|
|
||||||
old_y = y;
|
old_y = y;
|
||||||
y = bráðabirgða;
|
y = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -462,10 +462,10 @@ example_drag(magic_api * api, int which,
|
||||||
update_rect->w = (x - old_x) + 1;
|
update_rect->w = (x - old_x) + 1;
|
||||||
update_rect->h = (y - old_y) + 1;
|
update_rect->h = (y - old_y) + 1;
|
||||||
} else {
|
} else {
|
||||||
update_rect->x = old_x - example_stærð;
|
update_rect->x = old_x - example_size;
|
||||||
update_rect->y = old_y - example_stærð;
|
update_rect->y = old_y - example_size;
|
||||||
update_rect->w = (x + example_stærð) - update_rect->x + 1;
|
update_rect->w = (x + example_size) - update_rect->x + 1;
|
||||||
update_rect->h = (y + example_stærð) - update_rect->y + 1;
|
update_rect->h = (y + example_size) - update_rect->y + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -480,7 +480,7 @@ example_drag(magic_api * api, int which,
|
||||||
to speaker as you drag the mouse around the canvas!)
|
to speaker as you drag the mouse around the canvas!)
|
||||||
*/
|
*/
|
||||||
api->playsound(sound_effects[which],
|
api->playsound(sound_effects[which],
|
||||||
(x * 255) / canvas->w, /* vinstri/hægri hliðrun */
|
(x * 255) / canvas->w, /* Left/right pan */
|
||||||
255 /* Near/far distance (loudness) */);
|
255 /* Near/far distance (loudness) */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -489,7 +489,7 @@ example_drag(magic_api * api, int which,
|
||||||
|
|
||||||
void
|
void
|
||||||
example_release(magic_api * api, int which,
|
example_release(magic_api * api, int which,
|
||||||
SDL_Surface * canvas, SDL_Surface * skjámynd, int x, int y,
|
SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y,
|
||||||
SDL_Rect * update_rect)
|
SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
@ -511,7 +511,7 @@ changes their chosen, we'll be informed of that as well.
|
||||||
The color comes in as RGB (red, green, and blue) values from 0 (darkest) to
|
The color comes in as RGB (red, green, and blue) values from 0 (darkest) to
|
||||||
255 (brightest).
|
255 (brightest).
|
||||||
*/
|
*/
|
||||||
void example_set_color(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * skjámynd, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect)
|
void example_set_color(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * snapshot, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
We simply store the RGB values in the global variables we declared at
|
We simply store the RGB values in the global variables we declared at
|
||||||
|
|
@ -536,7 +536,7 @@ that as well.
|
||||||
The size comes in as an unsigned integer (Uint8) between 1 and the value
|
The size comes in as an unsigned integer (Uint8) between 1 and the value
|
||||||
returned by our example_accepted_sizes() function during setup.
|
returned by our example_accepted_sizes() function during setup.
|
||||||
*/
|
*/
|
||||||
void example_set_size(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * skjámynd, Uint8 stærð, SDL_Rect * update_rect)
|
void example_set_size(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * snapshot, Uint8 size, SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Store the new size into the global variable we declared at the top of
|
Store the new size into the global variable we declared at the top of
|
||||||
|
|
@ -565,7 +565,7 @@ Our callback pays attention to 'which' to determine which of our plugin's
|
||||||
tools is currently selected.
|
tools is currently selected.
|
||||||
*/
|
*/
|
||||||
void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
||||||
SDL_Surface * skjámynd, int x, int y)
|
SDL_Surface * snapshot, int x, int y)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
For technical reasons, we can't accept a pointer to the Tux Paint API's
|
For technical reasons, we can't accept a pointer to the Tux Paint API's
|
||||||
|
|
@ -611,14 +611,14 @@ void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
||||||
from the opposite side of the canvas and puts it under the cursor.
|
from the opposite side of the canvas and puts it under the cursor.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for (yy = -example_stærð; yy < example_stærð; yy++)
|
for (yy = -example_size; yy < example_size; yy++)
|
||||||
{
|
{
|
||||||
for (xx = -example_stærð; xx < example_stærð; xx++)
|
for (xx = -example_size; xx < example_size; xx++)
|
||||||
{
|
{
|
||||||
api->putpixel(canvas, x + xx, y + yy,
|
api->putpixel(canvas, x + xx, y + yy,
|
||||||
api->getpixel(skjámynd,
|
api->getpixel(snapshot,
|
||||||
skjámynd->w - x - xx,
|
snapshot->w - x - xx,
|
||||||
skjámynd->h - y - yy));
|
snapshot->h - y - yy));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Here we have simply use Tux Paint's "getpixel()" routine to pull pixel
|
Here we have simply use Tux Paint's "getpixel()" routine to pull pixel
|
||||||
|
|
@ -650,7 +650,7 @@ call to 'example_switchout()', below, for the old mode).
|
||||||
Our example doesn't do anything when we switch to, or away from, our Magic
|
Our example doesn't do anything when we switch to, or away from, our Magic
|
||||||
tools, so we just do nothing here.
|
tools, so we just do nothing here.
|
||||||
*/
|
*/
|
||||||
void example_switchin(magic_api * api, int which, int hamur,
|
void example_switchin(magic_api * api, int which, int mode,
|
||||||
SDL_Surface * canvas)
|
SDL_Surface * canvas)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -674,7 +674,7 @@ call to 'example_switchin()', above, for the new mode).
|
||||||
Our example doesn't do anything when we switch to, or away from, our Magic
|
Our example doesn't do anything when we switch to, or away from, our Magic
|
||||||
tools, so we just do nothing here.
|
tools, so we just do nothing here.
|
||||||
*/
|
*/
|
||||||
void example_switchout(magic_api * api, int which, int hamur,
|
void example_switchout(magic_api * api, int which, int mode,
|
||||||
SDL_Surface * canvas)
|
SDL_Surface * canvas)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<em>Last updated: 9. maí 2023</em>
|
<em>Last updated: maí 9, 2023</em>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
/* tp_magic_example.c
|
/* tp_magic_example.c
|
||||||
|
|
||||||
An example of a "Magic" tool plugin for Tux Paint
|
An example of a "Magic" tool plugin for Tux Paint
|
||||||
13. apríl 2023
|
apríl 13, 2023
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h> // Fyrir "strdup()"
|
#include <string.h> // For "strdup()"
|
||||||
#include <libintl.h> // Fyrir "gettext()"
|
#include <libintl.h> // For "gettext()"
|
||||||
|
|
||||||
#include "tp_magic_api.h" // Tux Paint "Magic" tool API header
|
#include "tp_magic_api.h" // Tux Paint "Magic" tool API header
|
||||||
#include "SDL_image.h" // For IMG_Load(), to load our PNG icon
|
#include "SDL_image.h" // For IMG_Load(), to load our PNG icon
|
||||||
|
|
@ -87,7 +87,7 @@ selected in Tux Paint (for tool 1): */
|
||||||
Uint8 example_r, example_g, example_b;
|
Uint8 example_r, example_g, example_b;
|
||||||
|
|
||||||
/* The size the user has selected in Tux Paint (for tool 2): */
|
/* The size the user has selected in Tux Paint (for tool 2): */
|
||||||
Uint8 example_stærð;
|
Uint8 example_size;
|
||||||
|
|
||||||
|
|
||||||
/* Our local function prototypes: */
|
/* Our local function prototypes: */
|
||||||
|
|
@ -101,11 +101,11 @@ _before_ them.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void example_drag(magic_api * api, int which, SDL_Surface * canvas,
|
void example_drag(magic_api * api, int which, SDL_Surface * canvas,
|
||||||
SDL_Surface * skjámynd, int old_x, int old_y, int x, int y,
|
SDL_Surface * snapshot, int old_x, int old_y, int x, int y,
|
||||||
SDL_Rect * update_rect);
|
SDL_Rect * update_rect);
|
||||||
|
|
||||||
void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
||||||
SDL_Surface * skjámynd, int x, int y);
|
SDL_Surface * snapshot, int x, int y);
|
||||||
|
|
||||||
|
|
||||||
/* Setup Functions: */
|
/* Setup Functions: */
|
||||||
|
|
@ -129,7 +129,7 @@ Uint32 example_api_version(void)
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Frumstilling
|
Initialization
|
||||||
|
|
||||||
This happens once, when Tux Paint starts up and is loading all of the
|
This happens once, when Tux Paint starts up and is loading all of the
|
||||||
'Magic' tool plugins. (Assuming what we returned from api_version was
|
'Magic' tool plugins. (Assuming what we returned from api_version was
|
||||||
|
|
@ -281,7 +281,7 @@ Report our 'Magic' tool descriptions
|
||||||
When Tux Paint is starting up and loading plugins, it asks us to provide
|
When Tux Paint is starting up and loading plugins, it asks us to provide
|
||||||
descriptions of each 'Magic' tool.
|
descriptions of each 'Magic' tool.
|
||||||
*/
|
*/
|
||||||
char *example_get_description(magic_api * api, int which, int hamur)
|
char *example_get_description(magic_api * api, int which, int mode)
|
||||||
{
|
{
|
||||||
const char *our_desc_english;
|
const char *our_desc_english;
|
||||||
const char *our_desc_localized;
|
const char *our_desc_localized;
|
||||||
|
|
@ -340,7 +340,7 @@ int example_modes(magic_api * api, int which)
|
||||||
|
|
||||||
// Report whether the tools offer sizing options
|
// Report whether the tools offer sizing options
|
||||||
|
|
||||||
Uint8 example_accepted_sizes(magic_api * api, int which, int hamur)
|
Uint8 example_accepted_sizes(magic_api * api, int which, int mode)
|
||||||
{
|
{
|
||||||
if (which == TOOL_ONE)
|
if (which == TOOL_ONE)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
@ -351,14 +351,14 @@ Uint8 example_accepted_sizes(magic_api * api, int which, int hamur)
|
||||||
|
|
||||||
// Return our default sizing option
|
// Return our default sizing option
|
||||||
|
|
||||||
Uint8 example_default_size(magic_api * api, int which, int hamur)
|
Uint8 example_default_size(magic_api * api, int which, int mode)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Slökkva
|
Shut down
|
||||||
|
|
||||||
Tux Paint is quitting. When it quits, it asks all of the plugins to 'clean
|
Tux Paint is quitting. When it quits, it asks all of the plugins to 'clean
|
||||||
up' after themselves. We, for example, loaded some sound effects at
|
up' after themselves. We, for example, loaded some sound effects at
|
||||||
|
|
@ -384,8 +384,8 @@ void example_shutdown(magic_api * api)
|
||||||
/* Affect the canvas on click: */
|
/* Affect the canvas on click: */
|
||||||
|
|
||||||
void
|
void
|
||||||
example_click(magic_api * api, int which, int hamur,
|
example_click(magic_api * api, int which, int mode,
|
||||||
SDL_Surface * canvas, SDL_Surface * skjámynd, int x, int y,
|
SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y,
|
||||||
SDL_Rect * update_rect)
|
SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
@ -397,14 +397,14 @@ example_click(magic_api * api, int which, int hamur,
|
||||||
both the beginning and end points of a line.
|
both the beginning and end points of a line.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
example_drag(api, which, canvas, skjámynd, x, y, x, y, update_rect);
|
example_drag(api, which, canvas, snapshot, x, y, x, y, update_rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Affect the canvas on drag: */
|
/* Affect the canvas on drag: */
|
||||||
void
|
void
|
||||||
example_drag(magic_api * api, int which,
|
example_drag(magic_api * api, int which,
|
||||||
SDL_Surface * canvas, SDL_Surface * skjámynd,
|
SDL_Surface * canvas, SDL_Surface * snapshot,
|
||||||
int old_x, int old_y, int x, int y,
|
int old_x, int old_y, int x, int y,
|
||||||
SDL_Rect * update_rect)
|
SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
|
|
@ -417,15 +417,15 @@ example_drag(magic_api * api, int which,
|
||||||
coordinates along the line, as well as other useful things (which of our
|
coordinates along the line, as well as other useful things (which of our
|
||||||
'Magic' tools is being used and the current and snapshot canvases).
|
'Magic' tools is being used and the current and snapshot canvases).
|
||||||
*/
|
*/
|
||||||
SDL_LockSurface(skjámynd);
|
SDL_LockSurface(snapshot);
|
||||||
SDL_LockSurface(canvas);
|
SDL_LockSurface(canvas);
|
||||||
|
|
||||||
api->line((void *) api, which, canvas, skjámynd,
|
api->line((void *) api, which, canvas, snapshot,
|
||||||
old_x, old_y, x, y, 1,
|
old_x, old_y, x, y, 1,
|
||||||
example_line_callback);
|
example_line_callback);
|
||||||
|
|
||||||
SDL_UnlockSurface(canvas);
|
SDL_UnlockSurface(canvas);
|
||||||
SDL_UnlockSurface(skjámynd);
|
SDL_UnlockSurface(snapshot);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
If we need to, swap the X and/or Y values, so that the coordinates
|
If we need to, swap the X and/or Y values, so that the coordinates
|
||||||
|
|
@ -436,17 +436,17 @@ example_drag(magic_api * api, int which,
|
||||||
|
|
||||||
if (old_x > x)
|
if (old_x > x)
|
||||||
{
|
{
|
||||||
int bráðabirgða = old_x;
|
int temp = old_x;
|
||||||
|
|
||||||
old_x = x;
|
old_x = x;
|
||||||
x = bráðabirgða;
|
x = temp;
|
||||||
}
|
}
|
||||||
if (old_y > y)
|
if (old_y > y)
|
||||||
{
|
{
|
||||||
int bráðabirgða = old_y;
|
int temp = old_y;
|
||||||
|
|
||||||
old_y = y;
|
old_y = y;
|
||||||
y = bráðabirgða;
|
y = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -462,10 +462,10 @@ example_drag(magic_api * api, int which,
|
||||||
update_rect->w = (x - old_x) + 1;
|
update_rect->w = (x - old_x) + 1;
|
||||||
update_rect->h = (y - old_y) + 1;
|
update_rect->h = (y - old_y) + 1;
|
||||||
} else {
|
} else {
|
||||||
update_rect->x = old_x - example_stærð;
|
update_rect->x = old_x - example_size;
|
||||||
update_rect->y = old_y - example_stærð;
|
update_rect->y = old_y - example_size;
|
||||||
update_rect->w = (x + example_stærð) - update_rect->x + 1;
|
update_rect->w = (x + example_size) - update_rect->x + 1;
|
||||||
update_rect->h = (y + example_stærð) - update_rect->y + 1;
|
update_rect->h = (y + example_size) - update_rect->y + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -480,7 +480,7 @@ example_drag(magic_api * api, int which,
|
||||||
to speaker as you drag the mouse around the canvas!)
|
to speaker as you drag the mouse around the canvas!)
|
||||||
*/
|
*/
|
||||||
api->playsound(sound_effects[which],
|
api->playsound(sound_effects[which],
|
||||||
(x * 255) / canvas->w, /* vinstri/hægri hliðrun */
|
(x * 255) / canvas->w, /* Left/right pan */
|
||||||
255 /* Near/far distance (loudness) */);
|
255 /* Near/far distance (loudness) */);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -489,7 +489,7 @@ example_drag(magic_api * api, int which,
|
||||||
|
|
||||||
void
|
void
|
||||||
example_release(magic_api * api, int which,
|
example_release(magic_api * api, int which,
|
||||||
SDL_Surface * canvas, SDL_Surface * skjámynd, int x, int y,
|
SDL_Surface * canvas, SDL_Surface * snapshot, int x, int y,
|
||||||
SDL_Rect * update_rect)
|
SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
|
@ -511,7 +511,7 @@ changes their chosen, we'll be informed of that as well.
|
||||||
The color comes in as RGB (red, green, and blue) values from 0 (darkest) to
|
The color comes in as RGB (red, green, and blue) values from 0 (darkest) to
|
||||||
255 (brightest).
|
255 (brightest).
|
||||||
*/
|
*/
|
||||||
void example_set_color(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * skjámynd, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect)
|
void example_set_color(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * snapshot, Uint8 r, Uint8 g, Uint8 b, SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
We simply store the RGB values in the global variables we declared at
|
We simply store the RGB values in the global variables we declared at
|
||||||
|
|
@ -536,7 +536,7 @@ that as well.
|
||||||
The size comes in as an unsigned integer (Uint8) between 1 and the value
|
The size comes in as an unsigned integer (Uint8) between 1 and the value
|
||||||
returned by our example_accepted_sizes() function during setup.
|
returned by our example_accepted_sizes() function during setup.
|
||||||
*/
|
*/
|
||||||
void example_set_size(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * skjámynd, Uint8 stærð, SDL_Rect * update_rect)
|
void example_set_size(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * snapshot, Uint8 size, SDL_Rect * update_rect)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
Store the new size into the global variable we declared at the top of
|
Store the new size into the global variable we declared at the top of
|
||||||
|
|
@ -565,7 +565,7 @@ Our callback pays attention to 'which' to determine which of our plugin's
|
||||||
tools is currently selected.
|
tools is currently selected.
|
||||||
*/
|
*/
|
||||||
void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
||||||
SDL_Surface * skjámynd, int x, int y)
|
SDL_Surface * snapshot, int x, int y)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
For technical reasons, we can't accept a pointer to the Tux Paint API's
|
For technical reasons, we can't accept a pointer to the Tux Paint API's
|
||||||
|
|
@ -611,14 +611,14 @@ void example_line_callback(void *pointer, int which, SDL_Surface * canvas,
|
||||||
from the opposite side of the canvas and puts it under the cursor.
|
from the opposite side of the canvas and puts it under the cursor.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for (yy = -example_stærð; yy < example_stærð; yy++)
|
for (yy = -example_size; yy < example_size; yy++)
|
||||||
{
|
{
|
||||||
for (xx = -example_stærð; xx < example_stærð; xx++)
|
for (xx = -example_size; xx < example_size; xx++)
|
||||||
{
|
{
|
||||||
api->putpixel(canvas, x + xx, y + yy,
|
api->putpixel(canvas, x + xx, y + yy,
|
||||||
api->getpixel(skjámynd,
|
api->getpixel(snapshot,
|
||||||
skjámynd->w - x - xx,
|
snapshot->w - x - xx,
|
||||||
skjámynd->h - y - yy));
|
snapshot->h - y - yy));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Here we have simply use Tux Paint's "getpixel()" routine to pull pixel
|
Here we have simply use Tux Paint's "getpixel()" routine to pull pixel
|
||||||
|
|
@ -650,7 +650,7 @@ call to 'example_switchout()', below, for the old mode).
|
||||||
Our example doesn't do anything when we switch to, or away from, our Magic
|
Our example doesn't do anything when we switch to, or away from, our Magic
|
||||||
tools, so we just do nothing here.
|
tools, so we just do nothing here.
|
||||||
*/
|
*/
|
||||||
void example_switchin(magic_api * api, int which, int hamur,
|
void example_switchin(magic_api * api, int which, int mode,
|
||||||
SDL_Surface * canvas)
|
SDL_Surface * canvas)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
@ -674,7 +674,7 @@ call to 'example_switchin()', above, for the new mode).
|
||||||
Our example doesn't do anything when we switch to, or away from, our Magic
|
Our example doesn't do anything when we switch to, or away from, our Magic
|
||||||
tools, so we just do nothing here.
|
tools, so we just do nothing here.
|
||||||
*/
|
*/
|
||||||
void example_switchout(magic_api * api, int which, int hamur,
|
void example_switchout(magic_api * api, int which, int mode,
|
||||||
SDL_Surface * canvas)
|
SDL_Surface * canvas)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -212,4 +212,4 @@ Shortcuts while drawing:
|
||||||
* [Alt]+[S] - Toggle sound effects on/off
|
* [Alt]+[S] - Toggle sound effects on/off
|
||||||
* [Esc] - ⤺Back or 🗙Quit
|
* [Esc] - ⤺Back or 🗙Quit
|
||||||
|
|
||||||
Last updated: 9. maí 2023
|
Last updated: maí 9, 2023
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
.\" tuxpaint.1 - 2023.06.04
|
.\" tuxpaint.1 - 2023.06.04
|
||||||
.TH TUXPAINT 1 " 4. júní 2023" "0.9.31" "Tux Paint"
|
.TH TUXPAINT 1 "júní 4, 2023" "0.9.31" "Tux Paint"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
tuxpaint -- "Tux Paint", a drawing program for young children.
|
tuxpaint -- "Tux Paint", a drawing program for young children.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue