milsko/src/window.c
NishiOwO ed7dc61897 OpenGL
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@61 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-09-29 08:20:45 +00:00

28 lines
559 B
C

/* $Id$ */
#include <Mw/Milsko.h>
static void create(MwWidget handle) {
MwSetDefault(handle);
}
static void draw(MwWidget handle) {
MwLLColor c = MwParseColor(handle, MwGetText(handle, MwNbackground));
MwRect r;
r.x = 0;
r.y = 0;
r.width = MwGetInteger(handle, MwNwidth);
r.height = MwGetInteger(handle, MwNheight);
MwDrawRect(handle, &r, c);
MwLLFreeColor(c);
}
MwClassRec MwWindowClassRec = {
create, /* create */
NULL, /* destroy */
draw, /* draw */
NULL /* click */
};
MwClass MwWindowClass = &MwWindowClassRec;