xtd 1.0.0
Loading...
Searching...
No Matches
help_event_args.hpp
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
27 public:
29
33 explicit help_event_args(const xtd::drawing::point& mouse_pos) : mouse_pos_(mouse_pos) {}
35
37
42 [[nodiscard]] auto handled() const noexcept -> bool {return handled_;}
46 auto handled(bool value) -> help_event_args& {
47 handled_ = value;
48 return *this;
49 }
50
54 [[nodiscard]] auto mouse_pos() const noexcept -> xtd::drawing::point {return mouse_pos_;}
56
57 private:
58 bool handled_ = false;
59 xtd::drawing::point mouse_pos_;
60 };
61 }
62}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
auto handled(bool value) -> help_event_args &
Sets a value indicating whether the help event was handled.
Definition help_event_args.hpp:46
auto mouse_pos() const noexcept -> xtd::drawing::point
Gets the screen coordinates of the mouse pointer.
Definition help_event_args.hpp:54
help_event_args(const xtd::drawing::point &mouse_pos)
Initializes a new instance of the xtd::forms::help_event_args class.
Definition help_event_args.hpp:33
auto handled() const noexcept -> bool
Gets a value indicating whether the help event was handled.
Definition help_event_args.hpp:42
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition point.hpp:54