xtd - Reference Guide  0.1.1
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 event_args&>
23  using generic_event_handler = xtd::delegate<void(object& sender, event_args_t e)>;
24 
34 }
Contains xtd::delegate delegate.
Contains xtd::event event.
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
xtd::delegate< void(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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17