These functions are used to create and manage the interface "globally".
They are called by sliceOmatic either at startup (Ctrl_Register() and Ctrl_Create()), at the end (Ctrl_Destroy()), when the interface for your module is opened, closed, resized, made visible or invisible (Ctrl_Open(), Ctrl_Close(), Ctrl_Resize(), Ctrl_show(), Ctrl_Hide()), when sliceOmatic need to know if your module is active (Ctrl_Query()) and when it wants to re-draw your interface (Ctrl_Draw()).
All of these functions are optional. If Ctrl_Register() is not present, none of the other control functions will be called.
|
|
Ctrl_Register
|
This function is needed if you want to have a user interface. the function return the vertical size of your interface (in pixels).
|
|
|
Ctrl_Create
|
This function is called once at startup. If you need to allocate memory for your interface, this would be a good place. also, if you create child windows.
|
|
|
Ctrl_Destroy
|
This function is called once when the program terminate.
|
|
|
Ctrl_Resize
|
This function is called each time the program need to resize the interface region of the program.
|
|
|
Ctrl_Open
|
This function is called each time your mode or tool is opened.
|
|
|
Ctrl_Close
|
This function is called each time your mode or tool is closed.
|
|
|
Ctrl_Query
|
This function returns the current state of the interface (opened or closed).
|
|
|
Ctrl_Show
|
This function is called each time your mode or tool become visible.
|
|
|
Ctrl_Hide
|
This function is called each time your mode or tool is no longer visible.
|
|
|
Ctrl_Draw
|
This function is called each time your mode or tool hs to be drawn.
|