Ima_Leave

 

The "Ima_Leave()" function is called whenever the cursor leave an image window.

 

Syntax

 

extern "C" __declspec(dllexportint  Ctrl_Leave(

          void

)

 

 

Parameters

 

This function does not have a parameter.

 

 

Return value

 

The function returns "0" if an error occurred, "1" otherwise.

 

 

Remarks

 

This callback function is just called for "Mode" modules.

 

 

Requirements

 

Header:

          sliceO_include.hpp

 

Library:

          sliceO_Structures.lib

 

 

Example

 

Sample "Ima_Leave" function  from the "Region Growing mode" module.

 

...

 

// ----------------------------------------------------------------------------

//

//          Function:          Ima_Leave

//

//          Parameters:          (void)

//          Returns:          (int)                    0 if error

//

//          The cursor has leaved the image region.

//

// ----------------------------------------------------------------------------

extern "C" __declspec(dllexport) int          Ima_Leave( void )

{

          // --- if there is a preview drawn on the image, erase it ---

          if ( Region_Preview_On )

              Region_Preview_Erase() ;

 

          return( 1 ) ;

}

 

...

 

See also