EventDispatcher
命名空间:FairyGUI
源码:Assets/Scripts/Event/EventDispatcher.cs (行 12)
public class EventDispatcher : IEventDispatcher
构造函数
EventDispatcher()
public EventDispatcher();
源码:Event/EventDispatcher.cs (行 16)
方法
AddCapture(string, EventCallback1)
public void AddCapture(string strType, EventCallback1 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback1 |
源码:Event/EventDispatcher.cs (行 75)
AddEventListener(string, EventCallback0)
public void AddEventListener(string strType, EventCallback0 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback0 |
源码:Event/EventDispatcher.cs (行 35)
AddEventListener(string, EventCallback1)
public void AddEventListener(string strType, EventCallback1 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback1 |
源码:Event/EventDispatcher.cs (行 25)
BroadcastEvent(string, object)
public bool BroadcastEvent(string strType, object data);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
data | object |
源码:Event/EventDispatcher.cs (行 369)
BubbleEvent(string, object)
public bool BubbleEvent(string strType, object data);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
data | object |
源码:Event/EventDispatcher.cs (行 358)
DispatchEvent(EventContext)
public bool DispatchEvent(EventContext context);
| 参数 | 类型 | 说明 |
|---|---|---|
context | EventContext |
源码:Event/EventDispatcher.cs (行 254)
DispatchEvent(string)
public bool DispatchEvent(string strType);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string |
源码:Event/EventDispatcher.cs (行 182)
DispatchEvent(string, object)
public bool DispatchEvent(string strType, object data);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
data | object |
源码:Event/EventDispatcher.cs (行 193)
DispatchEvent(string, object, object)
public bool DispatchEvent(string strType, object data, object initiator);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
data | object | |
initiator | object |
源码:Event/EventDispatcher.cs (行 198)
RemoveCapture(string, EventCallback1)
public void RemoveCapture(string strType, EventCallback1 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback1 |
源码:Event/EventDispatcher.cs (行 85)
RemoveEventListener(string, EventCallback0)
public void RemoveEventListener(string strType, EventCallback0 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback0 |
源码:Event/EventDispatcher.cs (行 60)
RemoveEventListener(string, EventCallback1)
public void RemoveEventListener(string strType, EventCallback1 callback);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string | |
callback | EventCallback1 |
源码:Event/EventDispatcher.cs (行 45)
RemoveEventListeners()
public void RemoveEventListeners();
源码:Event/EventDispatcher.cs (行 98)
RemoveEventListeners(string)
public void RemoveEventListeners(string strType);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string |
源码:Event/EventDispatcher.cs (行 107)
hasEventListeners(string)
public bool hasEventListeners(string strType);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string |
源码:Event/EventDispatcher.cs (行 130)
isDispatching(string)
public bool isDispatching(string strType);
| 参数 | 类型 | 说明 |
|---|---|---|
strType | string |
源码:Event/EventDispatcher.cs (行 144)