forked from libRocket/libRocket
-
Notifications
You must be signed in to change notification settings - Fork 1
PythonManual Events
Gambini edited this page Oct 2, 2014
·
6 revisions
When an event is sent to python, three global variables are set up in the context of the called function. event - The event object document - The document in which the event fired self - The element context in which the event fired
Python property | Brief description | Equivalent C++ method |
---|---|---|
current_element | The current element in the event propagation. | GetCurrentElement() |
target_element | The element the event was originally targeted at. | GetTargetElement() |
type | The type of the event. | GetType() |
parameters | Dictionary style container of all the parameters in the event | GetParameters() |
Events have a single Python method, StopPropagation(), which interrupts the event propagation if allowed by the event (ie, if it is interruptible).