These functions are called by sliceO when the mouse is interacting with the image window and your module is active.
Since multiple tools (in addition to the current mode) can be active at the same time, and each of these may possibly interact with the image, sliceOmatic will call the callback functions of each of the active tools and the callback function of the active mode. If your module's callback function is called and you act on the callback, you should return "1" to signal to sliceO that the action was for your module.
SliceO will first go through all the active tools and call the appropriate function if they have been defined. if none of those claim the mouse action (by returning 1), then it call the appropriate function for the current mode.
The available callback functions are:
|
|
Ima_Click()
|
This function is called when sliceO detect a mouse "click" (either on or off for any of the 3 mouse keys) while the cursor is over an image window.
|
|
|
Ctrl_DblClick()
|
This function is called when sliceO detect a mouse "double click" (for any of the 3 mouse keys) while the cursor is over an image window.
|
|
|
Ima_Help()
|
This function is called when the "Help" key is pressed while the cursor is over an image window.
|
|
|
Ima_Key()
|
This function is called when a keyboard key is pressed while the cursor is over an image window.
|
|
|
Ima_Motion()
|
This function is called when the cursor is moved while it is over an image window.
|
|
|
Ima_Scroll()
|
This function is called when the mouse scroll wheel is activate while the cursor is over an image window.
|
|
|
Ima_Leave()
|
This function is called each the cursor leave an image window.
|