Node class |
Homepage |
The Node class is designed to be a template - use it to create your own Classes. See extending node for details.
When creating a Class you can choose to create a Class that allows expansion via project-specific, user-defined values.
Node_new(UserDefinedSize = ""):
Creates a new Node object capable of storing user-defined values. See
Node_new for details.
Or, you can create a Class that doesn't allow user-defined values, and that only consists of built-in values.
Node_new():
Creates a new Node object not capable of storing
user-defined values.
Node_destroy(NodeObject):
Destroys the Node object and frees its memory.
Node_constant(variable, setValue = ""):
Returns (or sets) a Class constant (static value).
Node.ahk is designed as a template - use it to create your own Classes.
All that is required is to copy the file's contents to a new file - YourClass.ahk.
By placing YourClass.ahk in a library folder you can easily include your Class (as needed) into your scripts (without the need for an explicit #Include).
Finally, modify your new Class by adding built-in values and functions. Check out Rectangle.ahk and Rectangle_test.ahk for an example.
You might want to check out the class basics, which will spell out what you need to start designing and using Classes.