xtd 0.2.0
control_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/drawing/point>
6 #include <xtd/event_args>
7 #include <cstdint>
8 
10 namespace xtd {
12  namespace forms {
14  class control;
16 
25  class control_event_args : public event_args {
26  public:
29  control_event_args& operator =(control_event_args& control_event_args) = default;
31 
33 
37  explicit control_event_args(forms::control& control) : control_(&control) {}
39 
41 
45  forms::control& control() const noexcept {return *control_;}
47 
48  private:
49  forms::control* control_ = nullptr;
50  };
51  }
52 }
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
control_event_args(forms::control &control)
Initializes a new instance of the control_event_args class for the specified control.
Definition: control_event_args.h:37
Defines the base class for controls, which are components with visual representation.
Definition: control.h:78
Provides data for the xtd::forms::control::control_added and xtd::forms::control::control_removed eve...
Definition: control_event_args.h:25
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
forms::control & control() const noexcept
Gets the control object used by this event.
Definition: control_event_args.h:45
The left or right CTRL modifier key.