xtd - Reference Guide  0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
control_ref.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/object.h>
6 
8 namespace xtd {
10  namespace forms {
12  class control;
14 
21  using control_ref = std::reference_wrapper<control>;
22 
29  using const_control_ref = std::reference_wrapper<const control>;
30 
37  struct control_ref_less : public object {
42  bool operator()(const control_ref& value1, const control_ref& value2) const {
43  return &value1.get() < &value2.get();
44  }
45  };
46 
58  bool operator()(const const_control_ref& value1, const const_control_ref& value2) const {
59  return &value1.get() < &value2.get();
60  }
61  };
62  }
63 }
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition: object.h:26
@ control
The left or right CTRL modifier key.
std::reference_wrapper< const control > const_control_ref
Represents a const control reference.
Definition: control_ref.h:29
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition: control_ref.h:21
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
Contains xtd::object class.
Represents less comparator for const const_control_ref.
Definition: control_ref.h:53
bool operator()(const const_control_ref &value1, const const_control_ref &value2) const
Compare two specified const_control_ref.
Definition: control_ref.h:58
Represents less comparator for control_ref.
Definition: control_ref.h:37
bool operator()(const control_ref &value1, const control_ref &value2) const
Compare two specified control_ref.
Definition: control_ref.h:42