Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mntone/mntoneuiframework
- Owner: mntone
- License: mit
- Created: 2015-07-02T08:31:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-02T01:04:01.000Z (about 9 years ago)
- Last Synced: 2023-03-24T01:57:41.162Z (over 1 year ago)
- Language: C++
- Size: 223 KB
- Stars: 11
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
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/)