WIP Magic size option; regen docs for 0.9.30 version
This commit is contained in:
parent
9dd95721d5
commit
e49c55fbe6
456 changed files with 692 additions and 480 deletions
|
|
@ -102,7 +102,7 @@
|
|||
</p>
|
||||
|
||||
<p>
|
||||
January 25, 2023 </p>
|
||||
April 9, 2023 </p>
|
||||
</center>
|
||||
</header>
|
||||
|
||||
|
|
@ -385,6 +385,14 @@
|
|||
<b>Note:</b> Called once for each Magic tool your plugin claims to contain (by your "<code>get_tool_count()</code>"). </p>
|
||||
</dd>
|
||||
|
||||
<dt><code><b>int accepted_sizes(magic_api * api, int which)</b></code></dt>
|
||||
<dd>
|
||||
<p>
|
||||
Return how many size variations the 'Magic' tool accepts. Return a '0' if the 'Magic' tool should not offer sizing options. Returning '1' is the same as returning '0'. </p>
|
||||
<p>
|
||||
<b>Note:</b> Called once for each Magic tool your plugin claims to contain (by your "<code>get_tool_count()</code>"). </p>
|
||||
</dd>
|
||||
|
||||
<dt><code><b>void shutdown(magic_api * api)</b></code></dt>
|
||||
<dd>
|
||||
<p>
|
||||
|
|
@ -431,6 +439,16 @@
|
|||
<b>Note:</b> Changed most recently in Tux Paint 0.9.29; Magic API version 0x00000007. </p>
|
||||
</dd>
|
||||
|
||||
<dt><code><b>void set_size(magic_api * api, int which, SDL_Surface * canvas, SDL_Surface * last, Uint8 size, SDL_Rect * update_rect) </b></code></dt>
|
||||
<dd>
|
||||
<p>
|
||||
Tux Paint will call this function to inform the plugin of the 'Magic' tool size option chosen. (It will be called whenever one of the plugin's Magic tools that accept sizes becomes active, and whenever the user picks a new size while such a tool is currently active.) </p>
|
||||
<p>
|
||||
Generally, Magic tools will not alter the canvas in any way when receiving an updated size, but it is possible. </p>
|
||||
<p>
|
||||
<b>Note:</b> Added to Tux Paint 0.9.30; Magic API version 0x00000008. </p>
|
||||
</dd>
|
||||
|
||||
<dt><code><b>void click(magic_api * api, int which, int mode, SDL_Surface * snapshot, SDL_Surface * canvas, int x, int y, SDL_Rect * update_rect) </b></code></dt>
|
||||
<dd>
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue