28 #ifndef ROCKETCOREEVENT_H
29 #define ROCKETCOREEVENT_H
66 EventPhase GetPhase()
const;
69 void SetPhase(EventPhase phase);
73 void SetCurrentElement(
Element* element);
76 Element* GetCurrentElement()
const;
80 Element* GetTargetElement()
const;
84 const String& GetType()
const;
88 bool operator==(
const String& type)
const;
92 bool IsPropagating()
const;
94 void StopPropagation();
99 template <
typename T >
102 return parameters.
Get(key, default_value);
109 virtual void OnReferenceDeactivate();
Definition: ScriptInterface.h:43
Definition: Clipboard.h:33
EventPhase
Definition: Event.h:62
String type
Definition: Event.h:112
Element * current_element
Definition: Event.h:116
Definition: Dictionary.h:44
Definition: EventInstancer.h:46
Element * target_element
Definition: Event.h:115
Dictionary parameters
Definition: Event.h:113
Variant * Get(const String &key) const
Get an item from the dictionary.
T GetParameter(const String &key, const T &default_value)
Definition: Event.h:100