Mercurial > dwindows
view dwtestoo.cpp @ 2861:ef7a414f9b71
Add initial C++ binding header and example program.
Still trying to figure out how it will work, but it is loosely
based on GTK-- and when complete dwtestoo will replicate dwtest.
Added support for building dwtestoo on Unix and Mac.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 Dec 2022 12:42:34 +0000 |
parents | |
children | 939fbceec13f |
line wrap: on
line source
#include <dw.hpp> class MyWindow : public DW::Window { public: MyWindow(); }; MyWindow::MyWindow() { SetText("Basic application"); SetSize(200, 200); } int main(int argc, char* argv[]) { DW::App *app = new DW::App(argc, argv, "org.dbsoft.dwindows.dwtestoo"); MyWindow *window = new MyWindow(); window->Show(); app->Main(); app->Exit(0); return 0; }