xtd 0.2.0
ibutton_control.h
Go to the documentation of this file.
1 #pragma once
5 #include "control.h"
6 #include "dialog_result.h"
7 #include <xtd/interface>
8 
10 namespace xtd {
12  namespace forms {
25  public:
27 
32  virtual forms::dialog_result dialog_result() const noexcept = 0;
38 
40 
45  virtual void notify_default(bool value) = 0;
46 
49  virtual void perform_click() = 0;
51  };
52  }
53 }
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition: dialog_result.h:41
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
virtual forms::dialog_result dialog_result() const noexcept=0
Gets the value returned to the parent form when the button is clicked.
Contains xtd::forms::dialog_result enum class.
#define interface_
This keyword is use to represent an interface.
Definition: interface.h:54
Defines the base class for controls, which are components with visual representation.
Definition: control.h:78
virtual void notify_default(bool value)=0
Notifies a control that it is the default button so that its appearance and behavior is adjusted acco...
virtual void perform_click()=0
Generates a click event for the control.
Contains xtd::forms::control control.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Allows a control to act like a button on a form.
Definition: ibutton_control.h:24