OSDN Git Service

progress bar の更新頻度を定量化, front end -> script 実行形の構造体を統合
authornaruko <naruko@24ea1065-a21e-4ca1-99c9-f5125deb0858>
Sat, 23 Oct 2010 22:49:17 +0000 (22:49 +0000)
committernaruko <naruko@24ea1065-a21e-4ca1-99c9-f5125deb0858>
Sat, 23 Oct 2010 22:49:17 +0000 (22:49 +0000)
git-svn-id: svn+ssh://svn.osdn.net/svnroot/unagi@373 24ea1065-a21e-4ca1-99c9-f5125deb0858

client/trunk/widget.c [new file with mode: 0644]
client/trunk/widget.h [new file with mode: 0644]

diff --git a/client/trunk/widget.c b/client/trunk/widget.c
new file mode 100644 (file)
index 0000000..00d028d
--- /dev/null
@@ -0,0 +1,21 @@
+#include <stddef.h>
+#include "widget.h"
+
+static void gauge_range_nothing(void *a, int b)
+{
+}
+static void gauge_value_nothing(void *a, void *b, int c)
+{
+}
+static void label_nothing(void *a, const char *str)
+{
+}
+const struct gauge GAUGE_DUMMY = {
+       .bar = NULL, .label = NULL,
+       .range_set = gauge_range_nothing,
+       .value_set = gauge_value_nothing,
+       .value_add = gauge_value_nothing,
+       .label_set = label_nothing
+};
+
+
diff --git a/client/trunk/widget.h b/client/trunk/widget.h
new file mode 100644 (file)
index 0000000..137e76a
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef _WIDGET_H_
+#define _WIDGET_H_
+struct gauge{
+       void *bar, *label;
+       void (*range_set)(void *, int range);
+       void (*value_set)(void *, void *, int value);
+       void (*value_add)(void *, void *, int value);
+       void (*label_set)(void *, const char *str);
+};
+struct textcontrol{
+       void *object;
+       void (*append)(void *, const char *);
+};
+extern const struct gauge GAUGE_DUMMY;
+#endif