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.
control_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include <cstdint>
6 #include <xtd/event_args.h>
7 #include <xtd/drawing/point.h>
8 
10 namespace xtd {
12  namespace forms {
14  class control;
16 
23  class control_event_args : public event_args {
24  public:
27  control_event_args& operator=(const control_event_args& control_event_args) = default;
29 
33 
36  const forms::control& control() const {return *control_;}
37 
38  private:
39  const forms::control* control_ = nullptr;
40  };
41  }
42 }
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Provides data for the control_added and control_removed events.
Definition: control_event_args.h:23
const forms::control & control() const
Gets the control object used by this event.
Definition: control_event_args.h:36
control_event_args(const forms::control &control)
Initializes a new instance of the control_event_args class for the specified control.
Definition: control_event_args.h:32
Defines the base class for controls, which are components with visual representation.
Definition: control.h:67
Contains xtd::event_args event args.
@ control
The left or right CTRL modifier key.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::drawing::point class.