Class TSerializedComponentHelper

Unit

Declaration

type TSerializedComponentHelper = class helper(TObject) for TSerializedComponent

Description

Helper methods extending TSerializedComponent.

Implementation note: Ideally these should be split in CastleUIControls and CastleTransform units. But we cannot, as these units should not depend on each other, and only last defined helper works. FPC trunk has a solution to this ($modeswitch multiscopehelpers) https://wiki.lazarus.freepascal.org/Helper_types but we cannot use it yet, we need to work with FPC 3.0.4.

Hierarchy

Overview

Methods

Public function UserInterfaceLoad(const Owner: TComponent): TCastleUserInterface;
Public function TransformLoad(const Owner: TComponent): TCastleTransform;

Description

Methods

Public function UserInterfaceLoad(const Owner: TComponent): TCastleUserInterface;

Instantiate component. Using this is equivalent to using global CastleUIControls.UserInterfaceLoad, but this is much faster if you want to instantiate the same file many times.

Public function TransformLoad(const Owner: TComponent): TCastleTransform;

Instantiate component. Using this is equivalent to using global CastleTransform.TransformLoad, but this is much faster if you want to instantiate the same file many times.


Generated by PasDoc 0.16.0.