xtd 0.2.0
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);
static void run()
Begins running a standard application message loop on the current thread, without a form.
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:167
@ text
The xtd::forms::status_bar_panel displays text in the standard font.
Definition status_bar_panel_style.hpp:25
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:217