xtd 1.0.0
Loading...
Searching...
No Matches
ibutton_control.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "control.hpp"
6#include "dialog_result.hpp"
7#include <xtd/interface>
8
10namespace xtd {
12 namespace forms {
27 public:
29
34 [[nodiscard]] virtual auto dialog_result() const noexcept -> xtd::forms::dialog_result = 0;
38 virtual auto dialog_result(xtd::forms::dialog_result value) -> xtd::forms::control& = 0;
40
42
47 virtual auto notify_default(bool value) -> void = 0;
48
51 virtual auto perform_click() -> void = 0;
53 };
54 }
55}
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
Allows a control to act like a button on a form.
Definition ibutton_control.hpp:26
virtual auto notify_default(bool value) -> void=0
Notifies a control that it is the default button so that its appearance and behavior is adjusted acco...
virtual auto perform_click() -> void=0
Generates a click event for the control.
virtual auto dialog_result() const noexcept -> xtd::forms::dialog_result=0
Gets the value returned to the parent form when the button is clicked.
Contains xtd::forms::control control.
Contains xtd::forms::dialog_result enum class.
#define interface_
This keyword is use to represent an interface.
Definition interface.hpp:58
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