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.
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>
10 namespace xtd {
12  namespace forms {
14  class control;
23  class control_event_args : public event_args {
24  public:
27  control_event_args& operator=(const control_event_args& control_event_args) = default;
32  control_event_args(const forms::control& control) : control_(&control) {}
36  const forms::control& control() const {return *control_;}
38  private:
39  const forms::control* control_ = nullptr;
40  };
41  }
42 }
Contains xtd::event_args event args.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
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
Contains xtd::drawing::point class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Defines the base class for controls, which are components with visual representation.
Definition: control.h:68
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
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The left or right CTRL modifier key.