SilverScreen Solid Modeler

is_undo_stopped

is_undo_stopped

Previous topic Next topic  

is_undo_stopped

Previous topic Next topic JavaScript is required for the print function  

 

SilverScreenAPI

 

BOOLEAN is_undo_stopped ( void )

 

 

 

 

 




Synopsis

#include "silver.h"

 

The is_undo_stopped function determines if the undo system has been stopped

 

 

Parameters

none

 

 

Return Value

is_undo_stopped returns TRUE if the undo system has been stopped and FALSE otherwise

 

 

Remarks

When the undo system is stopped commands, undo commands, and redo commands are not recorded.

 

 

See Also

undo_initialize, undo_stop

 

 

Example

The following example shows how to stop the undo system, then reinitialize it with the same undo limit

C / C++ Code

 

 #include "silver.h

 

 ...

 

 BOOLEAN was_stopped;

 int     undo_limit;

 

 

 // Record the undo state, then stop it if it is running

 

 was_stopped = is_undo_stopped();

 

 if ( ! was_stopped )

    {

    undo_limit = undo_get_limit();

    undo_stop();

    }

 

 // Insert code here that will execute without undo system

 

 

 // Restart the undo system if we stopped it above

 

 if ( ! was_stopped )

    undo_initialize(undo_limit);