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