49 NSRect frame = [progressbar frame];
50 frame.size.width = value;
51 [progressbar setFrame:frame];
56 NSRect frame = [progressbar frame];
57 frame.size.height = value;
58 [progressbar setFrame:frame];
68 [progressbar setDoubleValue:d];
78 [progressbar setMinValue:d];
88 [progressbar setMaxValue:d];
98 "Function is not appropriate for this type of widget (%s)",
129 return [progressbar frame].size.width;
131 return [progressbar frame].size.height;
147 "Function is not appropriate for this type of widget (%s)",
161 "Function is not appropriate for this type of widget (%s)",
172 const char *defaultValue) {
174 "Function is not appropriate for this type of widget (%s)",
201 wParent=GWEN_Widget_Tree_GetParent(w);
205 progressbar = [[[
CocoaProgressbar alloc] initWithFrame:NSMakeRect(0.0, 0.0, 100.0, 20.0)] autorelease];
208 [progressbar setIndeterminate:NO];
209 [progressbar setUsesThreadedAnimation:YES];
210 [progressbar startAnimation:nil];
#define COCOA_DIALOG_WIDGET_REAL
#define COCOA_DIALOG_WIDGET_CONTENT
#define DBG_WARN(dbg_logger, format, args...)
#define GWEN_WIDGET_FLAGS_FILLY
#define GWEN_WIDGET_FLAGS_FILLX
@ GWEN_DialogProperty_MinValue
@ GWEN_DialogProperty_MaxValue
@ GWEN_DialogProperty_Height
@ GWEN_DialogProperty_Enabled
@ GWEN_DialogProperty_Value
@ GWEN_DialogProperty_Focus
@ GWEN_DialogProperty_Width
#define GWEN_ERROR_INVALID
#define GWEN_INHERIT_SETDATA(bt, t, element, data, fn)
#define GWEN_INHERIT(bt, t)
#define GWEN_INHERIT_GETDATA(bt, t, element)
#define GWEN_FREE_OBJECT(varname)
#define GWEN_NEW_OBJECT(typ, varname)
static GWENHYWFAR_CB int CocoaGui_WProgressBar_SetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
static GWENHYWFAR_CB const char * CocoaGui_WProgressBar_GetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
static GWENHYWFAR_CB int CocoaGui_WProgressBar_SetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
static void GWENHYWFAR_CB CocoaGui_WProgressBar_FreeData(void *bp, void *p)
int CocoaGui_WProgressBar_Setup(GWEN_WIDGET *w)
static GWENHYWFAR_CB int CocoaGui_WProgressBar_GetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)