demonstrates the use of xtd::debug_forms::debug_form container.
- Windows
-
- macOS
-
- Gnome
-
#define DEBUG
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("Debug form example");
button1.auto_repeat(true);
button1.auto_size(true);
button1.location({10, 10});
button1.parent(*this);
button1.text("Write line...");
static auto counter = 0;
diagnostics::debug::write_line("Write line {}...", ++counter);
};
}
private:
button button1;
};
auto main() -> int {
auto df = debug_form {};
application::run(form1 {});
}
static const xtd::drawing::color lime
Gets a system-defined color that has an ARGB value of 0xFF00FF00. This field is constant.
Definition color.hpp:287
static const xtd::drawing::color black
Gets a system-defined color that has an ARGB value of 0xFF000000. This field is constant.
Definition color.hpp:80
#define delegate_
The declaration of a delegate type is similar to a method signature. It has a return value and any nu...
Definition delegate.hpp:900