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.
help_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/event_args.h>
6 #include <xtd/drawing/point.h>
7 
9 namespace xtd {
11  namespace forms {
13  class control;
15 
22  class help_event_args : public event_args {
23  public:
29  help_event_args& operator=(const help_event_args& help_event_args) = default;
31 
35  bool handled() const {return handled_;}
39  void handled(bool handled) {handled_ = handled;}
40 
44  xtd::drawing::point mouse_pos() const {return mouse_pos_;}
45 
46  private:
47  bool handled_ = false;
48  drawing::point mouse_pos_;
49  };
50  }
51 }
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:48
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
Provides data for the control_added and control_removed events.
Definition: help_event_args.h:22
void handled(bool handled)
Sets a value indicating whether the help event was handled.
Definition: help_event_args.h:39
help_event_args(const drawing::point &mouse_pos)
Initializes a new instance of the help_event_args class.
Definition: help_event_args.h:26
bool handled() const
Gets a value indicating whether the help event was handled.
Definition: help_event_args.h:35
xtd::drawing::point mouse_pos() const
Gets the screen coordinates of the mouse pointer.
Definition: help_event_args.h:44
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.