xtd 0.2.0
Loading...
Searching...
No Matches
ibutton_control.h
Go to the documentation of this file.
1
4#pragma once
5#include "control.h"
6#include "dialog_result.h"
7#include <xtd/interface>
8
10namespace 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}
Defines the base class for controls, which are components with visual representation.
Definition control.h:79
Allows a control to act like a button on a form.
Definition ibutton_control.h:24
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.
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:58
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.h:41
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::style_sheets::control class.