mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-21 16:44:07 +00:00
frame
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@68 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
30
src/frame.c
Normal file
30
src/frame.c
Normal file
@@ -0,0 +1,30 @@
|
||||
/* $Id$ */
|
||||
#include <Mw/Milsko.h>
|
||||
|
||||
static void create(MwWidget handle) {
|
||||
MwSetDefault(handle);
|
||||
}
|
||||
|
||||
static void draw(MwWidget handle) {
|
||||
MwRect r;
|
||||
MwLLColor base = MwParseColor(handle, MwGetText(handle, MwNbackground));
|
||||
|
||||
r.x = 0;
|
||||
r.y = 0;
|
||||
r.width = MwGetInteger(handle, MwNwidth);
|
||||
r.height = MwGetInteger(handle, MwNheight);
|
||||
|
||||
MwDrawFrameEx(handle, &r, base, 1, 1);
|
||||
MwDrawFrameEx(handle, &r, base, 0, 1);
|
||||
MwDrawRect(handle, &r, base);
|
||||
|
||||
MwLLFreeColor(base);
|
||||
}
|
||||
|
||||
MwClassRec MwFrameClassRec = {
|
||||
create, /* create */
|
||||
NULL, /* destroy */
|
||||
draw, /* draw */
|
||||
NULL /* click */
|
||||
};
|
||||
MwClass MwFrameClass = &MwFrameClassRec;
|
||||
Reference in New Issue
Block a user