xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
tool_bar_button_click_event_args.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
tool_bar_button.hpp
"
6
#include <xtd/any>
7
#include <xtd/event_args>
8
#include <cstdint>
9
11
namespace
xtd
{
13
namespace
forms
{
25
class
tool_bar_button_click_event_args
:
public
xtd::event_args
{
26
public
:
28
32
explicit
tool_bar_button_click_event_args
(
const
xtd::forms::tool_bar_button
&
button
) : button_(
button
) {}
36
tool_bar_button_click_event_args
(
const
xtd::forms::tool_bar_button
&
button
,
xtd::intptr
handle
) : button_(
button
), handle_(
handle
) {}
38
40
44
[[nodiscard]]
auto
button
() const noexcept -> const
xtd
::
forms
::
tool_bar_button
& {
return
button_;}
45
48
[[nodiscard]]
auto
handle
() const noexcept ->
xtd
::
intptr
{
return
handle_;}
50
51
private
:
52
xtd::forms::tool_bar_button
button_;
53
xtd::intptr
handle_ = 0;
54
};
55
}
56
}
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::tool_bar_button_click_event_args::tool_bar_button_click_event_args
tool_bar_button_click_event_args(const xtd::forms::tool_bar_button &button, xtd::intptr handle)
Initializes a new instance of the xtd::forms::tool_bar_button_click_event_args class.
Definition
tool_bar_button_click_event_args.hpp:36
xtd::forms::tool_bar_button_click_event_args::button
auto button() const noexcept -> const xtd::forms::tool_bar_button &
Gets the xtd::forms::tool_bar_button that was clicked.
Definition
tool_bar_button_click_event_args.hpp:44
xtd::forms::tool_bar_button_click_event_args::handle
auto handle() const noexcept -> xtd::intptr
Gets internal handle.
Definition
tool_bar_button_click_event_args.hpp:48
xtd::forms::tool_bar_button_click_event_args::tool_bar_button_click_event_args
tool_bar_button_click_event_args(const xtd::forms::tool_bar_button &button)
Initializes a new instance of the xtd::forms::tool_bar_button_click_event_args class.
Definition
tool_bar_button_click_event_args.hpp:32
xtd::forms::tool_bar_button
Represents a toolbar button.
Definition
tool_bar_button.hpp:42
xtd::intptr
std::intmax_t intptr
Represent a pointer or a handle.
Definition
intptr.hpp:23
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
tool_bar_button.hpp
Contains xtd::forms::tool_bar_button container.
Generated on
for xtd by
Gammasoft
. All rights reserved.