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 // Force debug mode even if example is builded in release.
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/debug_form>
#include <xtd/forms/enable_debug>
#include <xtd/forms/form>
#include <xtd/forms/text_box>
class form1 :
public form {
public:
form1() {
text(
"Enable debug example");
name("form1");
text_box1.location({10, 50});
text_box1.parent(*this);
text_box1.text("Text box");
text_box1.name("text_box1");
}
private:
};
auto main()->int {
}
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More...
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More...
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More...
|
|
virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More...
|
|
virtual bool | equals (const enable_debug &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
◆ 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 |
◆ trace_switch()
◆ all
◆ creation
Represent creation debug.
◆ events
◆ key_events
◆ layout
◆ mouse_events
◆ none
◆ workaround
Represent workaround debug.
The documentation for this class was generated from the following file: