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
24 class help_event_args : public event_args {
25 public:
27
31 explicit help_event_args(const drawing::point& mouse_pos) : mouse_pos_(mouse_pos) {}
33
36 help_event_args& operator =(const help_event_args& help_event_args) = default;
38
40
45 bool handled() const noexcept {return handled_;}
49 void handled(bool handled) {handled_ = handled;}
50
54 xtd::drawing::point mouse_pos() const noexcept {return mouse_pos_;}
56
57 private:
58 bool handled_ = false;
59 drawing::point mouse_pos_;
60 };
61 }
62}
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:25
Provides data for the xtd::forms::control::control_added and xtd::forms::control::control_removed eve...
Definition help_event_args.h:24
xtd::drawing::point mouse_pos() const noexcept
Gets the screen coordinates of the mouse pointer.
Definition help_event_args.h:54
void handled(bool handled)
Sets a value indicating whether the help event was handled.
Definition help_event_args.h:49
bool handled() const noexcept
Gets a value indicating whether the help event was handled.
Definition help_event_args.h:45
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:31
@ 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