C# Class FairyGUI.EventDispatcher

Afficher le fichier Open project: fairygui/FairyGUI-unity Class Usage Examples

Méthodes publiques

Méthode Description
AddEventListener ( string strType, EventCallback0 callback ) : void

AddEventListener ( string strType, EventCallback1 callback ) : void

BroadcastEvent ( string strType, object data ) : bool

BubbleEvent ( string strType, object data ) : bool

DispatchEvent ( EventContext context ) : bool

DispatchEvent ( string strType ) : bool

DispatchEvent ( string strType, object data ) : bool

DispatchEvent ( string strType, object data, object initiator ) : bool
EventDispatcher ( ) : System
RemoveEventListener ( string strType, EventCallback0 callback ) : void

RemoveEventListener ( string strType, EventCallback1 callback ) : void

RemoveEventListeners ( ) : void

RemoveEventListeners ( string strType ) : void

Private Methods

Méthode Description
BubbleEvent ( string strType, object data, List addChain ) : bool

GetChainBridges ( string strType, List chain, bool bubble ) : void
GetChildEventBridges ( string strType, Container container, List bridges ) : void
GetChildEventBridges ( string strType, GComponent container, List bridges ) : void
GetEventBridge ( string strType ) : EventBridge
InternalDispatchEvent ( string strType, EventBridge bridge, object data, object initiator ) : bool
TryGetEventBridge ( string strType ) : EventBridge

Method Details

AddEventListener() public méthode

public AddEventListener ( string strType, EventCallback0 callback ) : void
strType string
callback EventCallback0
Résultat void

AddEventListener() public méthode

public AddEventListener ( string strType, EventCallback1 callback ) : void
strType string
callback EventCallback1
Résultat void

BroadcastEvent() public méthode

public BroadcastEvent ( string strType, object data ) : bool
strType string
data object
Résultat bool

BubbleEvent() public méthode

public BubbleEvent ( string strType, object data ) : bool
strType string
data object
Résultat bool

DispatchEvent() public méthode

public DispatchEvent ( EventContext context ) : bool
context EventContext
Résultat bool

DispatchEvent() public méthode

public DispatchEvent ( string strType ) : bool
strType string
Résultat bool

DispatchEvent() public méthode

public DispatchEvent ( string strType, object data ) : bool
strType string
data object
Résultat bool

DispatchEvent() public méthode

public DispatchEvent ( string strType, object data, object initiator ) : bool
strType string
data object
initiator object
Résultat bool

EventDispatcher() public méthode

public EventDispatcher ( ) : System
Résultat System

RemoveEventListener() public méthode

public RemoveEventListener ( string strType, EventCallback0 callback ) : void
strType string
callback EventCallback0
Résultat void

RemoveEventListener() public méthode

public RemoveEventListener ( string strType, EventCallback1 callback ) : void
strType string
callback EventCallback1
Résultat void

RemoveEventListeners() public méthode

public RemoveEventListeners ( ) : void
Résultat void

RemoveEventListeners() public méthode

public RemoveEventListeners ( string strType ) : void
strType string
Résultat void