Class TSimpleNotifyEventList

Unit

Declaration

type TSimpleNotifyEventList = class(specialize TMethodList<TSimpleNotifyEvent>)

Description

List of TSimpleNotifyEvent, a callback that can be any method that doesn't take any parameters.

Source: base/castleclassutils.pas (line 996).

Hierarchy

Show Additional Members:

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.

Source: base/castleclassutils.pas (line 999).

Public procedure Pack;

Remove all unassigned items.

Source: base/castleclassutils.pas (line 1002).

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.

Source: base/castleclassutils.pas (line 1009).


Generated by PasDoc 1.0.4.