Class Description

GB_CONSTANT Declares a constant.
GB_AUTO_CREATABLE Indicates an auto-creatable class.
GB_DECLARE Begins a class description.
GB_DESC Class description structure.
GB_END_DECLARE Ends a class description.
GB_EVENT Declares an event.
GB_INHERITS Makes the class inherit another one.
GB_METHOD Declares a method.
GB_NOT_CREATABLE Indicates that a class is not creatable.
GB_PROPERTY Declares a property.
GB_PROPERTY_READ Declares a read-only property.
GB_PROPERTY_SELF Declares a property that returns a virtual class.
GB_STATIC_METHOD Declares a static method.
GB_STATIC_PROPERTY Declares a static property.
GB_STATIC_PROPERTY_READ Declares a static read-only property.
GB_STATIC_PROPERTY_SELF Declares a static property that returns a virtual class.
GB_VIRTUAL_CLASS Indicates a virtual class.

Overview

These macros must be used when describing a class.

A class description is an array of GB_DESC structure, whose each element is filled with one of the following macros.

The first element must be filled with the GB_DECLARE macro, and the last one must be filled with the GB_END_DECLARE macro.

The following macros must be used at the beginning of the array, just after GB_END_DECLARE: The other macros can be used in any order, as the interpreter will sort them anyway.

Here is the declaration of the Window class:

Examples

[gb.markdown].Markup.ProcessCode.1104: Cannot load component 'gb.highlight': cannot find component