Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mntone/mntoneuiframework

UI Framework for Windows like xaml
https://github.com/mntone/mntoneuiframework

Last synced: 8 days ago
JSON representation

UI Framework for Windows like xaml

Awesome Lists containing this project

README

        

# Mntone UI Framework

This is UI Framework for Windows like xaml. The next program is sample code.

```C++
text_box* tb = new text_box(L"initial text.あああああああああああああああああああああああああ");
button* btn = new button(L"push button sample");
size_t id = 0;
btn->click().add([](control_base const& s, event_args e)
{
MessageBoxW(s.root().hwnd(), L"clicked.", L"sample dialog", MB_OK);
return S_OK;
}, id);
grid* root = new grid(
{ grid_length(), 28 },
{ },
{
make_tuple(0, 0, tb),
make_tuple(1, 0, btn),
});

unique_ptr wnd = make_unique();
wnd->set_child(root);
wnd->set_margin(9);
wnd->set_text(L"guitest window");
```

Next UI is generated by this sample code.

![screenshot](https://github.com/mntone/MntoneUIFramework/blob/master/screenshot.png)

## License

This is under MIT.

## Contact

mntone (name: monotone): directly reply to [@mntone](https://twitter.com/mntone/)