Represent enable debug class.
- Header
#include <xtd/forms/enable_debug>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Examples
- The following code example demonstrates the use of enable_debug class.
#define DEBUG
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text(
"Enable debug example");
text_box1.location({10, 50});
text_box1.parent(*this);
text_box1.text("Text box");
text_box1.name("text_box1");
}
private:
button button1;
text_box text_box1;
};
auto main() -> int {
auto df = debug_form {};
enable_debug::set(enable_debug::key_events | enable_debug::mouse_events, true);
application::run(form1 {});
}
@ verbose
Output all debugging and tracing messages.
Definition trace_level.hpp:34
|
bool | equals (const xtd::object &obj) const noexcept override |
| Determines whether the specified object is equal to the current object.
|
|
bool | equals (const enable_debug &other) const noexcept override |
| Determines whether the specified object is equal to the current object.
|
|
xtd::size | get_hash_code () const noexcept override |
| Serves as a hash function for a particular type.
|
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<class object_t> |
xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
virtual bool | equals (const enable_debug &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type.
|
|
template<class object_a_t, class object_b_t> |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are considered equal.
|
|
template<class object_a_t, class object_b_t> |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
| Determines whether the specified object instances are the same instance.
|
|
◆ trace_switch()
◆ equals() [1/2]
bool xtd::forms::enable_debug::equals |
( |
const xtd::object & | obj | ) |
const |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
obj | The object to compare with the current object. |
- Returns
true
if the specified object is equal to the current object. otherwise, false
.
Reimplemented from xtd::object.
◆ equals() [2/2]
bool xtd::forms::enable_debug::equals |
( |
const enable_debug & | other | ) |
const |
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
- Parameters
-
other | The object to compare with the current object. |
- Returns
true
if the specified object is equal to the current object. otherwise, false
.
◆ get_hash_code()
xtd::size xtd::forms::enable_debug::get_hash_code |
( |
| ) |
const |
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
- Returns
- A hash code for the current object.
Reimplemented from xtd::object.
◆ get()
static bool xtd::forms::enable_debug::get |
( |
const enable_debug & | flags | ) |
|
|
static |
◆ set()
static void xtd::forms::enable_debug::set |
( |
const enable_debug & | flags, |
|
|
bool | on ) |
|
static |
◆ none
◆ creation
Represent creation debug.
◆ events
◆ key_events
Represent key events debug.
◆ mouse_events
Represent mouse events debug.
◆ layout
◆ workaround
Represent workaround debug.
◆ style
◆ all
The documentation for this class was generated from the following file: