xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
link_label_clicked_event_args.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
link.hpp
"
6
#include "
mouse_buttons.hpp
"
7
#include <xtd/event_args>
8
#include <cstdint>
9
11
namespace
xtd
{
13
namespace
forms
{
15
class
link_label
;
17
29
class
link_label_clicked_event_args
:
public
xtd::event_args
{
30
public
:
32
37
link_label_clicked_event_args
(
const
xtd::forms::link
&
link
,
xtd::forms::mouse_buttons
button
);
39
41
45
[[nodiscard]]
auto
link
() const noexcept -> const
xtd
::
forms
::
link
&;
46
49
[[nodiscard]] auto
button
() const noexcept ->
xtd
::
forms
::
mouse_buttons
;
50
53
[[nodiscard]] auto
visited
() const noexcept ->
bool
;
56
auto
visited
(
bool
value) ->
link_label_clicked_event_args
&;
58
59
private:
60
xtd
::
forms
::
link
link_;
61
xtd
::
forms
::
mouse_buttons
button_ =
xtd
::
forms
::
mouse_buttons
::
left
;
62
bool
visited_ = false;
63
};
64
}
65
}
66
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::link_label_clicked_event_args::button
auto button() const noexcept -> xtd::forms::mouse_buttons
Gets which mouse button was pressed.
xtd::forms::link_label_clicked_event_args::link_label_clicked_event_args
link_label_clicked_event_args(const xtd::forms::link &link, xtd::forms::mouse_buttons button)
Initialise a new instance of xtd::forms::link_labelc_clicked_event_args class.
xtd::forms::link_label_clicked_event_args::link
auto link() const noexcept -> const xtd::forms::link &
Geyts the link clicked.
xtd::forms::link_label_clicked_event_args::visited
auto visited() const noexcept -> bool
Gets the visited link value.
xtd::forms::link_label
Represents a Windows label control that can display hyperlinks.
Definition
link_label.hpp:43
xtd::forms::link
Represents a link within a xtd::forms::link_label control.
Definition
link.hpp:33
xtd::forms::mouse_buttons
mouse_buttons
Specifies constants that define which mouse button was pressed. This enumeration has a flag attribute...
Definition
mouse_buttons.hpp:22
xtd::forms::anchor_styles::left
@ left
Bind control edges to the left of its container.
Definition
anchor_styles.hpp:27
link.hpp
Contains xtd::forms::link class.
mouse_buttons.hpp
Contains xtd::forms::mouse_buttons enum class.
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
Generated on
for xtd by
Gammasoft
. All rights reserved.