Simple GUI Library
gui_event_dispatching.cpp File Reference
#include <assert.h>
#include "events/gui_event_dispatching.h"
#include "scene/component.h"
Include dependency graph for gui_event_dispatching.cpp:

Go to the source code of this file.

Functions

Sml::Event * fireEvent (Sml::Event *event)
 Fire the event from the specified. More...
 

Detailed Description

Author
Nikita Mochalov (github.com/tralf-strues)
Date
2021-10-24

Definition in file gui_event_dispatching.cpp.

Function Documentation

◆ fireEvent()

Sml::Event * fireEvent ( Sml::Event *  event)

Fire the event from the specified.

event->target

.

Build a GuiEventDispatchChain from target to the root component and send the event through it.

Parameters
event
Returns
The return event or nullptr if the event has been consumed.

Definition at line 13 of file gui_event_dispatching.cpp.