OSDN Git Service

stdout への printf を排除
[unagi/old-svn-converted.git] / client / trunk / widget.h
1 #ifndef _WIDGET_H_
2 #define _WIDGET_H_
3 #ifndef __cplusplus 
4   #include <stdarg.h>
5 #else
6   #include <cstdarg>
7 #endif
8
9 struct gauge{
10         void *bar, *label;
11         void (*range_set)(void *, int range);
12         void (*value_set)(void *, void *, int value);
13         void (*value_add)(void *, void *, int value);
14         void (*label_set)(void *, const char *str, ...);
15 };
16 struct textcontrol{
17         void *object;
18         void (*append)(void *, const char *, ...);
19         void (*append_va)(void *, const char *, va_list);
20 };
21 extern const struct gauge GAUGE_DUMMY;
22 #endif