xtd.forms - Reference Guide  0.1.0
Modern c++17 library containing classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows, Apple macOS and Linux like Ubuntu operating system.
1 #pragma once
2 #include <cstdint>
3 #include <xtd/event_args.h>
4 #include <xtd/drawing/point.h>
7 namespace xtd {
9  namespace forms {
11  class control;
15  class control_event_args : public event_args {
16  public:
19  control_event_args& operator=(const control_event_args& control_event_args) = default;
24  control_event_args(const forms::control& control) : control_(&control) {}
28  const forms::control& control() const {return *this->control_;}
30  private:
31  const forms::control* control_ = nullptr;
32  };
33  }
34 }
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:24
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Defines the base class for controls, which are components with visual representation.
Definition: control.h:59
Provides data for the control_added and control_removed events.
Definition: control_event_args.h:15
const forms::control & control() const
Gets the control object used by this event.
Definition: control_event_args.h:28