Previous: , Up: Graphics setup   [Contents][Index]


5.2.10 Stop drawing

Method on mglGraph: void Stop (bool stop=true)
C function only: void mgl_ask_stop (HMGL gr, int stop)

Ask to stop drawing if stop is non-zero, otherwise reset stop flag.

Method on mglGraph: bool NeedStop ()
C function only: void mgl_need_stop (HMGL gr)

Return true if drawing should be terminated. Also it process all events in GUI. User should call this function from time to time inside a long calculation to allow processing events for GUI.

Method on mglGraph: bool SetEventFunc (void (*func)(void *), void *par=NULL)
C function only: void mgl_set_event_func (HMGL gr, void (*func)(void *), void *par)

Set callback function which will be called to process events of GUI library.