xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
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
9
namespace
xtd
{
11
namespace
forms
{
13
class
control
;
15
26
class
help_event_args
:
public
xtd::event_args
{
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
}
xtd::event_args
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition
event_args.hpp:18
xtd::forms::control
Defines the base class for controls, which are components with visual representation.
Definition
control.hpp:81
xtd::forms::help_event_args::handled
auto handled(bool value) -> help_event_args &
Sets a value indicating whether the help event was handled.
Definition
help_event_args.hpp:46
xtd::forms::help_event_args::mouse_pos
auto mouse_pos() const noexcept -> xtd::drawing::point
Gets the screen coordinates of the mouse pointer.
Definition
help_event_args.hpp:54
xtd::forms::help_event_args::help_event_args
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
xtd::forms::help_event_args::handled
auto handled() const noexcept -> bool
Gets a value indicating whether the help event was handled.
Definition
help_event_args.hpp:42
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
xtd::drawing::point
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition
point.hpp:54
Generated on
for xtd by
Gammasoft
. All rights reserved.