![]() | Defining Macros |
Prev | Advanced Usage | Next |
One of the more advanced features in Kig is its support for macros. This allows you to define a new type of objects by combining other ones.
For example: Suppose you want to make a macro for constructing a circle from three points on it, then you would just construct three points, some perpendiculars and midpoints until you find the center, and construct the circle by the center you constructed and one of the previous points. The following image should make this a bit more clear.
Next comes defining the macro. Select New macro from the Type menu, or click on the button on the toolbar. A wizard will appear and ask you to select the given objects. In our example, these are the three points. Select the three points (click on them for selecting, click again for unselecting) and click the next button to continue. Finally, select the last objects (only the circle in our example).
After the previous steps were completed, click the next button to continue. Enter a name and optionally a description for your new type, and click the Finish button. Your macro type is now finished.
To use the new macro type, click its button on the toolbar or use the Objects menu. Building a macro object is just like constructing any other object.
Prev | Home | Next |
Document context menus | Up | Working with types |