add clock widget (closes #35)

This commit is contained in:
Nishi 2026-09-13 20:11:01 +09:00
commit c6aaf54656
15 changed files with 210 additions and 16 deletions

View file

@ -245,6 +245,15 @@ int main() {
MwNscale, 1,
NULL);
f = frame("Clock", -PaddingContent, -PaddingContent, MwClockClass,
MwNhour, 15,
MwNminute, 0,
MwNsecond, 10,
NULL);
f = frame("Chart", -PaddingContent, -PaddingContent, MwCalendarClass,
NULL);
f = frame("ComboBox", -PaddingContent, 24, MwComboBoxClass, NULL);
w = child(f);
MwComboBoxAdd(w, -1, "Hello!");

View file

@ -4,7 +4,7 @@
#include <math.h>
#ifndef M_PI
#define M_PI 3.14159265
#define M_PI 3.14159265359
#endif
#define SIZE 100