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 1
#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
|
| static const enable_debug | none |
| | Represent none debug.
|
| static const enable_debug | creation |
| | Represent creation debug.
|
| static const enable_debug | events |
| | Represent events debug.
|
| static const enable_debug | key_events |
| | Represent key events debug.
|
| static const enable_debug | mouse_events |
| | Represent mouse events debug.
|
| static const enable_debug | layout |
| | Represent layout debug.
|
| static const enable_debug | workaround |
| | Represent workaround debug.
|
| static const enable_debug | style |
| | Represent style debug.
|
| static const enable_debug | all |
| | Represent all debug.
|
|
| static bool | get (const enable_debug &flags) |
| | Gets enable_debug flags status.
|
| static void | set (const enable_debug &flags, bool on) |
| | Sets enable_debug flags status.
|
|
| 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 |
| | 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()
| bool xtd::forms::enable_debug::get |
( |
const enable_debug & | flags | ) |
|
|
static |
◆ set()
| void xtd::forms::enable_debug::set |
( |
const enable_debug & | flags, |
|
|
bool | on ) |
|
static |
◆ none
| const enable_debug xtd::forms::enable_debug::none |
|
static |
◆ creation
| const enable_debug xtd::forms::enable_debug::creation |
|
static |
Represent creation debug.
◆ events
| const enable_debug xtd::forms::enable_debug::events |
|
static |
◆ key_events
| const enable_debug xtd::forms::enable_debug::key_events |
|
static |
Represent key events debug.
◆ mouse_events
| const enable_debug xtd::forms::enable_debug::mouse_events |
|
static |
Represent mouse events debug.
◆ layout
| const enable_debug xtd::forms::enable_debug::layout |
|
static |
◆ workaround
| const enable_debug xtd::forms::enable_debug::workaround |
|
static |
Represent workaround debug.
◆ style
| const enable_debug xtd::forms::enable_debug::style |
|
static |
◆ all
| const enable_debug xtd::forms::enable_debug::all |
|
static |
The documentation for this class was generated from the following file: