image widget

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@145 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-04 00:45:41 +00:00
parent 2e4377cb70
commit 280286f389
4 changed files with 25 additions and 4 deletions

View File

@@ -3,16 +3,16 @@
int main() {
MwWidget window = MwVaCreateWidget(MwWindowClass, "window", NULL, 0, 0, 500, 500,
MwNtitle, "image button",
MwNtitle, "image image",
NULL);
MwWidget button = MwCreateWidget(MwButtonClass, "button", window, 50, 50, 400, 400);
MwWidget image = MwCreateWidget(MwImageClass, "image", window, 50, 50, 400, 400);
MwLLPixmap px = MwLoadImage(window, "examples/picture.png");
MwVaApply(window,
MwNiconPixmap, px,
NULL);
MwVaApply(button,
MwVaApply(image,
MwNpixmap, px,
NULL);