xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
ibutton_control.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/interface.h>
6 #include "control.h"
7 #include "dialog_result.h"
8 
10 namespace xtd {
12  namespace forms {
23  public:
27  virtual forms::dialog_result dialog_result() const = 0;
32 
36  virtual void notify_default(bool value) = 0;
37 
40  virtual void perform_click() = 0;
41  };
42  }
43 }
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition: dialog_result.h:39
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Contains xtd::interface interface.
Contains xtd::forms::dialog_result enum class.
#define interface_
This keyword is use to represent an interface.
Definition: interface.h:55
Defines the base class for controls, which are components with visual representation.
Definition: control.h:68
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:22
virtual forms::dialog_result dialog_result() const =0
Gets the value returned to the parent form when the button is clicked.