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.
help_event_args.hpp
1 #pragma once
2 #include <xtd/event_args.hpp>
3 #include <xtd/drawing/point.hpp>
4 
6 namespace xtd {
8  namespace forms {
10  class control;
12 
14  class help_event_args : public event_args {
15  public:
18  help_event_args& operator=(const help_event_args& help_event_args) = default;
20 
23  help_event_args(const drawing::point& mouse_pos) : mouse_pos_(mouse_pos) {}
24 
25  bool handled() const {return this->handled_;}
26  void handled(bool handled) {this->handled_ = handled;}
27 
28  drawing::point mouse_pos() const {return this->mouse_pos_;}
29  void mouse_pos(const drawing::point& mouse_pos) {this->mouse_pos_ = mouse_pos;}
30 
31  private:
32  bool handled_ = false;
33  drawing::point mouse_pos_;
34  };
35  }
36 }
help_event_args(const drawing::point &mouse_pos)
Initializes a new instance of the help_event_args class.
Definition: help_event_args.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Provides data for the control_added and control_removed events.
Definition: help_event_args.hpp:14
Provides data for the control_added and control_removed events.
Definition: control_event_args.hpp:15