Class TDOMElementScriptHelper
Unit
Declaration
type TDOMElementScriptHelper = class helper(TDOMElementHelper) for TDOMElement
Description
Class helper to read CastleScript expressions from DOM (XML files). Use this unit, and then you can call powerful methods AttributeFloatExpression, AttributeFloatExpressionDef instead of the TDOMElementHelper.AttributeFloat, TDOMElementHelper.AttributeFloatDef.
Hierarchy
- TObject
- TDOMElementHelper
- TDOMElementScriptHelper
Overview
Methods
function AttributeFloatExpression(const AttrName: string; var Value: Float): boolean; |
|
function AttributeFloatExpression(const AttrName: string): Float; |
|
function AttributeFloatExpressionDef(const AttrName: string; const DefaultValue: Float): Float; |
Description
Methods
function AttributeFloatExpression(const AttrName: string; var Value: Float): boolean; |
|
Read from Element attribute value as a Float expression, and returns If there is no such attribute returns |
function AttributeFloatExpression(const AttrName: string): Float; |
|
Retrieves from Element given attribute as a Float expression, raises EDOMAttributeMissing if missing. The expression can be anything in CastleScript https://castle-engine.io/castle_script.php , for example something crazy like Exceptions raised |
function AttributeFloatExpressionDef(const AttrName: string; const DefaultValue: Float): Float; |
|
Retrieves from Element given attribute as a Float expression, or a default value. The expression can be anything in CastleScript https://castle-engine.io/castle_script.php , for example something crazy like |
Generated by PasDoc 0.16.0-snapshot.