CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
cydui::components::event_dispatcher_t< ComponentType, EventHandler > Class Template Referencefinalexport
+ Inheritance diagram for cydui::components::event_dispatcher_t< ComponentType, EventHandler >:
+ Collaboration diagram for cydui::components::event_dispatcher_t< ComponentType, EventHandler >:

Public Member Functions

 event_dispatcher_t (component_base_t *component)
 
std::vector< component_holder_tupdate (StyleArchive &style_archive, component_builder_t &content_children_builder) override
 
void paint_fragment (vg::fragment_t &fragment) override
 
void dispatch_key_press (const KeyEvent &ev) override
 
void dispatch_key_release (const KeyEvent &ev) override
 
void dispatch_text_input (const TextInputEvent &ev) override
 
void dispatch_button_press (const Button &button, dimension_t::value_type x, dimension_t::value_type y) override
 
void dispatch_button_release (const Button &button, dimension_t::value_type x, dimension_t::value_type y) override
 
void dispatch_mouse_enter (dimension_t::value_type x, dimension_t::value_type y) override
 
void dispatch_mouse_exit (dimension_t::value_type x, dimension_t::value_type y) override
 
void dispatch_mouse_motion (dimension_t::value_type x, dimension_t::value_type y) override
 
void dispatch_scroll (dimension_t::value_type dx, dimension_t::value_type dy) override
 
void dispatch_focus_changed () override
 
- Public Member Functions inherited from cydui::components::event_dispatcher_base_t
virtual ~event_dispatcher_base_t ()=default
 

Detailed Description

template<typename ComponentType, typename EventHandler>
class cydui::components::event_dispatcher_t< ComponentType, EventHandler >

Definition at line 22 of file component_event_dispatcher.cppm.

Constructor & Destructor Documentation

◆ event_dispatcher_t()

template<typename ComponentType, typename EventHandler>
cydui::components::event_dispatcher_t< ComponentType, EventHandler >::event_dispatcher_t ( component_base_t * component)
inlineexplicit

Definition at line 24 of file component_event_dispatcher.cppm.

Member Function Documentation

◆ dispatch_button_press()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_button_press ( const Button & button,
dimension_t::value_type x,
dimension_t::value_type y )
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 128 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_button_release()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_button_release ( const Button & button,
dimension_t::value_type x,
dimension_t::value_type y )
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 151 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_focus_changed()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_focus_changed ( )
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 246 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_key_press()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_key_press ( const KeyEvent & ev)
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 77 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_key_release()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_key_release ( const KeyEvent & ev)
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 94 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_mouse_enter()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_mouse_enter ( dimension_t::value_type x,
dimension_t::value_type y )
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 174 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_mouse_exit()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_mouse_exit ( dimension_t::value_type x,
dimension_t::value_type y )
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 192 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_mouse_motion()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_mouse_motion ( dimension_t::value_type x,
dimension_t::value_type y )
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 210 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_scroll()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_scroll ( dimension_t::value_type dx,
dimension_t::value_type dy )
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 228 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ dispatch_text_input()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::dispatch_text_input ( const TextInputEvent & ev)
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 111 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ paint_fragment()

template<typename ComponentType, typename EventHandler>
void cydui::components::event_dispatcher_t< ComponentType, EventHandler >::paint_fragment ( vg::fragment_t & fragment)
inlineoverridevirtual

Implements cydui::components::event_dispatcher_base_t.

Definition at line 60 of file component_event_dispatcher.cppm.

+ Here is the call graph for this function:

◆ update()

template<typename ComponentType, typename EventHandler>
std::vector< component_holder_t > cydui::components::event_dispatcher_t< ComponentType, EventHandler >::update ( StyleArchive & style_archive,
component_builder_t & content_children_builder )
inlineoverridevirtual

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