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
event_args
{
26
public
:
28
tool_bar_button_click_event_args
(
const
tool_bar_button_click_event_args
&) =
default
;
29
tool_bar_button_click_event_args
& operator =(
const
tool_bar_button_click_event_args
&) =
default
;
31
33
37
explicit
tool_bar_button_click_event_args
(
const
xtd::forms::tool_bar_button
&
button
) : button_(
button
) {}
41
tool_bar_button_click_event_args
(
const
xtd::forms::tool_bar_button
&
button
,
intptr
handle
) : button_(
button
), handle_(
handle
) {}
43
45
49
const
xtd::forms::tool_bar_button
&
button
() const noexcept {
return
button_;}
50
53
intptr
handle
() const noexcept {
return
handle_;}
55
56
private
:
57
xtd::forms::tool_bar_button
button_;
58
intptr
handle_ = 0;
59
};
60
}
61
}
xtd::event_args::event_args
event_args()=default
Initializes a new instance of the event_args class.
xtd::forms::tool_bar_button_click_event_args::handle
intptr handle() const noexcept
Gets internal handle.
Definition
tool_bar_button_click_event_args.hpp:53
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, 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:41
xtd::forms::tool_bar_button_click_event_args::button
const xtd::forms::tool_bar_button & button() const noexcept
Gets the xtd::forms::tool_bar_button that was clicked.
Definition
tool_bar_button_click_event_args.hpp:49
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:37
xtd::forms::tool_bar_button
Represents a toolbar button.
Definition
tool_bar_button.hpp:43
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.