Class TSimpleNotifyEventList

Unit

Declaration

type TSimpleNotifyEventList = class(specialize TMethodList<TSimpleNotifyEvent>)

Description

This item has no description. Showing description inherited from TMethodList.

List of methods (callbacks "of object"). This is just TList class from Generics.Collections, with some useful helpers.

In practice, for now, this just fixes the list for CASTLE_LIST_METHODS_WORKAROUND (avoids FPC 3.2.3 issues on 32-bit Arm).

Hierarchy

Overview

Methods

Public procedure ExecuteAll;
Public procedure Pack;
Public procedure Unassign(const Event: TSimpleNotifyEvent);

Description

Methods

Public procedure ExecuteAll;

Call all (assigned) Items, from first to last.

Public procedure Pack;

Remove all unassigned items.

Public procedure Unassign(const Event: TSimpleNotifyEvent);

Unassign all items equal this Event. This is useful to do when (possibly) iterating over this list, and doing Remove(Event) would be risky (shifting the items order). So it's safer to do Unassign(Event) and call Pack once we don't iterate over the list anymore.


Generated by PasDoc 0.16.0-snapshot.