xtd 0.2.0
Loading...
Searching...
No Matches
target_default_namespace.cpp

Shows how to set target default namespace with cmake target_default_namespace().

#include <xtd/forms/application>
#include <xtd/forms/form>
#include <xtd/startup>
using namespace xtd::forms;
namespace other_namespace {
class program : public form {
public:
static auto main() {
application::run(program {});
}
program() {
text("Application default namespace");
}
};
}
startup_(other_namespace::program::main);
Represents a window or dialog box that makes up an application's user interface.
Definition form.hpp:54
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:175
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12