xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
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
10
namespace
xtd
{
12
namespace
forms
{
26
class
ibutton_control
interface_
{
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
}
xtd::forms::control
Defines the base class for controls, which are components with visual representation.
Definition
control.hpp:81
xtd::forms::ibutton_control
Allows a control to act like a button on a form.
Definition
ibutton_control.hpp:26
xtd::forms::ibutton_control::notify_default
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...
xtd::forms::ibutton_control::perform_click
virtual auto perform_click() -> void=0
Generates a click event for the control.
xtd::forms::ibutton_control::dialog_result
virtual auto dialog_result() const noexcept -> xtd::forms::dialog_result=0
Gets the value returned to the parent form when the button is clicked.
control.hpp
Contains xtd::forms::control control.
dialog_result.hpp
Contains xtd::forms::dialog_result enum class.
interface_
#define interface_
This keyword is use to represent an interface.
Definition
interface.hpp:58
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
Generated on
for xtd by
Gammasoft
. All rights reserved.