mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-11 11:53:29 +00:00
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@167 b9cfdab3-6d41-4d17-bbe4-086880011989
34 lines
677 B
C
34 lines
677 B
C
/* $Id$ */
|
|
#include <Mw/Milsko.h>
|
|
|
|
static int create(MwWidget handle) {
|
|
MwSetDefault(handle);
|
|
|
|
return 0;
|
|
}
|
|
|
|
static void draw(MwWidget handle) {
|
|
MwRect r;
|
|
MwLLPixmap px = MwGetVoid(handle, MwNpixmap);
|
|
|
|
r.x = 0;
|
|
r.y = 0;
|
|
r.width = MwGetInteger(handle, MwNwidth);
|
|
r.height = MwGetInteger(handle, MwNheight);
|
|
if(px != NULL) {
|
|
MwLLDrawPixmap(handle->lowlevel, &r, px);
|
|
}
|
|
}
|
|
|
|
MwClassRec MwImageClassRec = {
|
|
create, /* create */
|
|
NULL, /* destroy */
|
|
draw, /* draw */
|
|
NULL, /* click */
|
|
NULL, /* parent_resize */
|
|
NULL, /* mouse_move */
|
|
NULL, /* mouse_up */
|
|
NULL /* mouse_down */
|
|
};
|
|
MwClass MwImageClass = &MwImageClassRec;
|