xtd 0.2.0
Loading...
Searching...
No Matches
help_event_args.h
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/drawing/point>
6#include <xtd/event_args>
7
9namespace xtd {
11 namespace forms {
13 class control;
15
26 class help_event_args : public event_args {
27 public:
29
33 explicit help_event_args(const drawing::point& mouse_pos) : mouse_pos_(mouse_pos) {}
35
38 help_event_args& operator =(const help_event_args& help_event_args) = default;
40
42
47 bool handled() const noexcept {return handled_;}
51 void handled(bool handled) {handled_ = handled;}
52
56 xtd::drawing::point mouse_pos() const noexcept {return mouse_pos_;}
58
59 private:
60 bool handled_ = false;
61 drawing::point mouse_pos_;
62 };
63 }
64}
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.h:54
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 xtd::forms::control::control_added and xtd::forms::control::control_removed eve...
Definition control_event_args.h:27
Provides data for the xtd::forms::control::control_added and xtd::forms::control::control_removed eve...
Definition help_event_args.h:26
xtd::drawing::point mouse_pos() const noexcept
Gets the screen coordinates of the mouse pointer.
Definition help_event_args.h:56
void handled(bool handled)
Sets a value indicating whether the help event was handled.
Definition help_event_args.h:51
bool handled() const noexcept
Gets a value indicating whether the help event was handled.
Definition help_event_args.h:47
help_event_args(const drawing::point &mouse_pos)
Initializes a new instance of the xtd::forms::help_event_args class.
Definition help_event_args.h:33
@ control
The left or right CTRL modifier key.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10