xtd 1.0.0
Loading...
Searching...
No Matches
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
11namespace xtd {
13 namespace forms {
26 public:
28
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:
53 xtd::intptr handle_ = 0;
54 };
55 }
56}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
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
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
auto handle() const noexcept -> xtd::intptr
Gets internal handle.
Definition tool_bar_button_click_event_args.hpp:48
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
Represents a toolbar button.
Definition tool_bar_button.hpp:42
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
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
Contains xtd::forms::tool_bar_button container.