Class TTouchList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TTouchList = class(specialize TGenericStructList<TTouch>)

Description

no description available, TGenericStructList description follows

Generic list of types that are compared by CompareByte.

This is equivalent to TFPGList, except it doesn't override IndexOf, so your type doesn't need to have a "=" operator built-in inside FPC. When calling IndexOf or Remove, it will simply compare values using CompareByte, this is what TFPSList.IndexOf uses. This way it works to create lists of records, vectors (constant size arrays), old-style TP objects, and also is suitable to create a list of methods (since for methods, the "=" is broken, for Delphi compatibility, see http://bugs.freepascal.org/view.php?id=9228).

We also add some trivial helper methods like Add and L.

Hierarchy

Overview

Methods

Public procedure RemoveFingerIndex(const FingerIndex: TFingerIndex);

Properties

Public property FingerIndexPosition[constFingerIndex:TFingerIndex]: TVector2Single read GetFingerIndexPosition write SetFingerIndexPosition;

Description

Methods

Public procedure RemoveFingerIndex(const FingerIndex: TFingerIndex);

Remove a touch item for given FingerIndex.

Properties

Public property FingerIndexPosition[constFingerIndex:TFingerIndex]: TVector2Single read GetFingerIndexPosition write SetFingerIndexPosition;

Gets or sets a position corresponding to given FingerIndex. If there is no information for given FingerIndex on the list, the getter will return zero, and the setter will automatically create and add appropriate information.


Generated by PasDoc 0.13.0 on 2014-04-30 22:06:45