xtd 0.2.0
tool_bar_button_click_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include "tool_bar_button.h"
6 #include <xtd/any>
7 #include <xtd/event_args>
8 #include <cstdint>
9 
11 namespace xtd {
13  namespace forms {
24  public:
29 
31 
39  tool_bar_button_click_event_args(const xtd::forms::tool_bar_button& button, intptr handle) : button_(button), handle_(handle) {}
41 
43 
47  const xtd::forms::tool_bar_button& button() const noexcept {return button_;}
48 
51  intptr handle() const noexcept {return handle_;}
53 
54  private:
56  intptr handle_ = 0;
57  };
58  }
59 }
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Represents a toolbar button.
Definition: tool_bar_button.h:40
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
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.h:39
Provides data for the xtd::forms::tool_bar::button_click event.
Definition: tool_bar_button_click_event_args.h:23
Contains xtd::forms::tool_bar_button container.
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.h:47
intptr handle() const noexcept
Gets internal handle.
Definition: tool_bar_button_click_event_args.h:51
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
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.h:35
Represents a Windows button control.
Definition: button.h:47