Describe user-friendly information about an expression, its parameters and the function name as well as other information for code generation.
More...
|
| ExpressionMetadata (const gd::String &returnType, const gd::String &extensionNamespace, const gd::String &name, const gd::String &fullname, const gd::String &description, const gd::String &group, const gd::String &smallicon) |
|
| ExpressionMetadata () |
|
ExpressionMetadata & | SetHidden () override |
| Set the expression as not shown in the IDE.
|
|
ExpressionMetadata & | SetGroup (const gd::String &str) |
| Set the group of the instruction in the IDE.
|
|
const gd::String & | GetHelpPath () const |
|
ExpressionMetadata & | SetHelpPath (const gd::String &path) |
|
bool | IsPrivate () const |
|
ExpressionMetadata & | SetPrivate () override |
|
bool | IsRelevantForLayoutEvents () const |
|
bool | IsRelevantForFunctionEvents () const |
|
bool | IsRelevantForAsynchronousFunctionEvents () const |
|
bool | IsRelevantForCustomObjectEvents () const |
|
ExpressionMetadata & | SetRelevantForLayoutEventsOnly () override |
|
ExpressionMetadata & | SetRelevantForFunctionEventsOnly () override |
|
ExpressionMetadata & | SetRelevantForAsynchronousFunctionEventsOnly () override |
|
ExpressionMetadata & | SetRelevantForCustomObjectEventsOnly () override |
|
gd::ExpressionMetadata & | AddParameter (const gd::String &type, const gd::String &label, const gd::String &supplementaryInformation="", bool parameterIsOptional=false) override |
|
gd::ExpressionMetadata & | AddCodeOnlyParameter (const gd::String &type, const gd::String &supplementaryInformation) override |
|
ExpressionMetadata & | SetDefaultValue (const gd::String &defaultValue) override |
|
ExpressionMetadata & | SetParameterLongDescription (const gd::String &longDescription) override |
| Set the long description shown in the editor for the last added parameter. More...
|
|
ExpressionMetadata & | SetParameterExtraInfo (const gd::String &extraInfo) override |
| Set the additional information, used for some parameters with special type (for example, it can contains the type of object accepted by the parameter), for the last added parameter. More...
|
|
ExpressionMetadata & | SetRequiresBaseObjectCapability (const gd::String &capability) |
| Mark this (object) expression as requiring the specified capability, offered by the base object. This is useful for some objects that don't support this capability, so that the editor can hide the expression as it does not apply to them.
|
|
const gd::String & | GetRequiredBaseObjectCapability () const |
| Get the required specified capability for this (object) expression, or an empty string if there is nothing specific required.
|
|
bool | IsShown () const |
|
const gd::String & | GetReturnType () const |
|
const gd::String & | GetFullName () const |
|
const gd::String & | GetDescription () const |
|
const gd::String & | GetGroup () const |
|
const gd::String & | GetSmallIconFilename () const |
|
const gd::ParameterMetadata & | GetParameter (std::size_t id) const |
|
gd::ParameterMetadata & | GetParameter (std::size_t id) |
|
std::size_t | GetParametersCount () const |
|
const gd::ParameterMetadataContainer & | GetParameters () const |
|
ExpressionMetadata & | SetFunctionName (const gd::String &functionName) override |
| Set the function name which will be used when generating the code. More...
|
|
const gd::String & | GetFunctionName () |
| Return the name of the function which will be called in the generated code.
|
|
ExpressionMetadata & | SetStatic () |
| Set that the function is static.
|
|
ExpressionMetadata & | SetIncludeFile (const gd::String &includeFile) override |
| Erase any existing include file and add the specified include. More...
|
|
ExpressionMetadata & | AddIncludeFile (const gd::String &includeFile) override |
| Add a file to the already existing include files.
|
|
const std::vector< gd::String > & | GetIncludeFiles () const override |
| Get the files that must be included to use the instruction.
|
|
ExpressionMetadata & | SetCustomCodeGenerator (std::function< gd::String(const std::vector< gd::Expression > ¶meters, gd::EventsCodeGenerator &codeGenerator, gd::EventsCodeGenerationContext &context)> codeGenerator) |
| Set that the function must be generated using a custom code generator.
|
|
ExpressionMetadata & | RemoveCustomCodeGenerator () |
|
bool | HasCustomCodeGenerator () const |
|
ExpressionMetadata & | GetCodeExtraInformation () |
| Return the structure containing the information about code generation for the expression. More...
|
|
Describe user-friendly information about an expression, its parameters and the function name as well as other information for code generation.