Class TDOMElementScriptHelper
Unit
CastleScriptXML
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
Overview
Methods
Description
Methods
 |
function AttributeFloatExpression(const AttrName: string; var Value: Float): boolean; |
Read from Element attribute value as a Float expression, and returns True . The expression can be anything in CastleScript http://castle-engine.sourceforge.net/castle_script.php , for example something crazy like 2.0 * sin(5.0) + Pi . You can use this method instead of AttributeFloat to easily allow mathematical exressions in XML attributes.
If there is no such attribute returns False and does not modify Value.
|
Generated by PasDoc 0.15.0.
|