This commit is contained in:
Nishi 2026-04-23 23:27:44 +09:00
commit 85c5409790
2 changed files with 6 additions and 5 deletions

View file

@ -35,7 +35,9 @@ int main() {
// MwNpixmap, px,
// NULL);
MwViewportSetSize(vp, 1024, 1024);
MwCreateWidget(MwButtonClass, "btn", MwViewportGetViewport(vp), 256, 256, 128, 128);
MwWidget f = MwCreateWidget(MwFrameClass, "fr", MwViewportGetViewport(vp), 256, 256, 128, 128);
f = MwCreateWidget(MwFrameClass, "fr", f, 0, 0, 128, 128);
MwCreateWidget(MwButtonClass, "btn", f, 64, 64, 128, 128);
MwAddUserHandler(w, MwNresizeHandler, resize, NULL);