WEBELO
HTML Visualizer & DOM Library
Loading...
Searching...
No Matches
EventTarget Class Reference
Inheritance diagram for EventTarget:
AbortSignal Node Attr CharacterData DocumentType ParentNode Comment ProcessingInstruction Text Document DocumentFragment Element CDATASection XMLDocument ShadowRoot HTMLSlotElement

Public Member Functions

void addEventListener (DOMString &type, EventListener *callback, std::variant< AddEventListenerOptions, bool > &options)
void removeEventListener (DOMString &type, EventListener *callback, bool capture)
void removeAllEventListeners ()
bool dispatchEvent (Event *event)
bool operator== (const EventTarget &a)
bool operator!= (const EventTarget &a)
virtual EventTargetget_the_parent (const Event *event)

Public Attributes

bool has_activation_behavior = false
bool has_legacy_canceled_activation_behavior = false
bool has_legacy_pre_activation_behavior = false
std::function< void(Event *event)> activation_behavior_algorithm = [](Event* event) {}
std::function< void()> legacy_canceled_activation_behavior_algorithm = []() {}
std::function< void()> legacy_pre_activation_behavior_algorithm = []() {}
std::vector< event_listener * > event_listener_list = {}

Detailed Description

Definition at line 304 of file Webelo.cpp.

Constructor & Destructor Documentation

◆ EventTarget()

EventTarget::EventTarget ( )
inline

Definition at line 317 of file Webelo.cpp.

Member Function Documentation

◆ addEventListener()

void EventTarget::addEventListener ( DOMString & type,
EventListener * callback,
std::variant< AddEventListenerOptions, bool > & options )

Definition at line 3761 of file Webelo.cpp.

◆ dispatchEvent()

bool EventTarget::dispatchEvent ( Event * event)

Definition at line 3785 of file Webelo.cpp.

◆ get_the_parent()

virtual EventTarget * EventTarget::get_the_parent ( const Event * event)
inlinevirtual

Definition at line 341 of file Webelo.cpp.

◆ operator!=()

bool EventTarget::operator!= ( const EventTarget & a)
inline

Definition at line 337 of file Webelo.cpp.

◆ operator==()

bool EventTarget::operator== ( const EventTarget & a)
inline

Definition at line 324 of file Webelo.cpp.

◆ removeAllEventListeners()

void EventTarget::removeAllEventListeners ( )

Definition at line 3777 of file Webelo.cpp.

◆ removeEventListener()

void EventTarget::removeEventListener ( DOMString & type,
EventListener * callback,
bool capture )

Definition at line 3766 of file Webelo.cpp.

Member Data Documentation

◆ activation_behavior_algorithm

std::function<void(Event* event)> EventTarget::activation_behavior_algorithm = [](Event* event) {}

Definition at line 311 of file Webelo.cpp.

◆ event_listener_list

std::vector<event_listener*> EventTarget::event_listener_list = {}

Definition at line 315 of file Webelo.cpp.

◆ has_activation_behavior

bool EventTarget::has_activation_behavior = false

Definition at line 306 of file Webelo.cpp.

◆ has_legacy_canceled_activation_behavior

bool EventTarget::has_legacy_canceled_activation_behavior = false

Definition at line 307 of file Webelo.cpp.

◆ has_legacy_pre_activation_behavior

bool EventTarget::has_legacy_pre_activation_behavior = false

Definition at line 308 of file Webelo.cpp.

◆ legacy_canceled_activation_behavior_algorithm

std::function<void()> EventTarget::legacy_canceled_activation_behavior_algorithm = []() {}

Definition at line 312 of file Webelo.cpp.

◆ legacy_pre_activation_behavior_algorithm

std::function<void()> EventTarget::legacy_pre_activation_behavior_algorithm = []() {}

Definition at line 313 of file Webelo.cpp.


The documentation for this class was generated from the following file: