picture works
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@83 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
8ea2d4a50a
commit
13164f0ed5
11 changed files with 71 additions and 13 deletions
|
|
@ -6,11 +6,13 @@ int main() {
|
|||
MwNtitle, "image button",
|
||||
NULL);
|
||||
MwWidget button = MwCreateWidget(MwButtonClass, "button", window, 50, 50, 400, 400);
|
||||
MwLLPixmap px = MwLoadImage(button, "examples/picture.png");
|
||||
MwLLPixmap px = MwLoadImage(window, "examples/picture.png");
|
||||
|
||||
MwVaApply(button,
|
||||
MwNpixmap, px,
|
||||
NULL);
|
||||
|
||||
MwWindowSetIcon(window, px);
|
||||
|
||||
MwLoop(window);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ int main() {
|
|||
window = MwVaCreateWidget(MwWindowClass, "main", NULL, 0, 0, 400, 450,
|
||||
MwNtitle, "hello world",
|
||||
NULL);
|
||||
opengl = MwCreateWidget(MwOpenGLClass, "opengl", window, 50, 50, (ow = 300), (oh = 250));
|
||||
opengl = MwCreateWidget(MwOpenGLClass, "opengl", window, 50, 50, (ow = 300), (oh = 300));
|
||||
button = MwVaCreateWidget(MwButtonClass, "button", window, 50, 350, 300, 50,
|
||||
MwNtext, "Reverse",
|
||||
NULL);
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Loading…
Add table
Add a link
Reference in a new issue