xtd - Reference Guide  0.1.0
Modern c++17 framework to create console, gui and unit test applications on Windows, macOS and Linux.
xtd::event_args Class Reference

Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data. More...

#include <event_args.h>

Inheritance diagram for xtd::event_args:
xtd::console_cancel_event_args xtd::forms::cancel_event_args xtd::forms::common_dialog_closed_event_args xtd::forms::control_event_args xtd::forms::do_work_event_args xtd::forms::form_closed_event_args xtd::forms::help_event_args xtd::forms::item_check_event_args xtd::forms::key_event_args xtd::forms::key_press_event_args xtd::forms::message_dialog_closed_event_args xtd::forms::mouse_event_args xtd::forms::paint_event_args xtd::forms::progress_changed_event_args xtd::forms::run_worker_completed_event_args

Public Member Functions

 event_args ()=default
 Initializes a new instance of the event_args class. More...
 

Static Public Attributes

static const event_args empty
 Provides a value to use with events that do not have event data. More...
 

Detailed Description

Represents the base class for classes that contain event data, and provides a value to use for events that do not include event data.

Remarks
This class serves as the base class for all classes that represent event data. For example, the xtd::forms::form_closing_event_args class derives from event_args and is used to hold information when form closin. To create a custom event data class, create a class that derives from the event_args class and provide the properties to store the necessary data. The name of your custom event data class should end with _event_args.
To pass an object that does not contain any data, use the empty field.

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