Documenting 'int mode' arg to click() functions in Magic tool API docs.
This commit is contained in:
parent
fdb90e51aa
commit
8623bfb428
2 changed files with 10 additions and 4 deletions
|
|
@ -401,12 +401,15 @@ then the names of your functions must begin with "<code><b>zoom_</b></code>"
|
|||
<br>
|
||||
|
||||
<li><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><br>
|
||||
The plugin should apply the appropriate 'Magic' tool on the
|
||||
'<code>canvas</code>' surface. The (x,y) coordinates are where the
|
||||
mouse was (within the canvas) when the mouse button was clicked.<br>
|
||||
mouse was (within the canvas) when the mouse button was clicked, and
|
||||
you are told which 'mode' your tool is in (i.e.,
|
||||
'<code>MODE_PAINT</code>' or '<code>MODE_FULLSCREEN</code>).<br>
|
||||
<br>
|
||||
The plugin should report back what part of the canvas was affected, by
|
||||
filling in the (x,y) and (w,h) elements of '<code>update_rect</code>'.<br>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue