xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
event_handler.h
Go to the documentation of this file.
1 #pragma once
5 
6 #include "delegate.h"
7 #include "event.h"
8 #include "event_args.h"
9 
11 namespace xtd {
12 
22  template<typename event_args_t = const xtd::event_args&>
23  using generic_event_handler = xtd::delegate<void(xtd::object& sender, event_args_t e)>;
24 
34 }
Contains xtd::delegate delegate.
Contains xtd::event_args event args.
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition: event_handler.h:33
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
xtd::delegate< void(xtd::object &sender, event_args_t e)> generic_event_handler
Represents the method that will handle an event when the event provides data.
Definition: event_handler.h:23
Contains xtd::event event.