41 NSRect frame = [stackView frame];
42 frame.size.width = value;
43 [stackView setFrame:frame];
48 NSRect frame = [stackView frame];
49 frame.size.height = value;
50 [stackView setFrame:frame];
55 if (value >= 0 && value < [stackView numberOfTabViewItems]) {
56 [stackView selectTabViewItemAtIndex:value];
65 "Function is not appropriate for this type of widget (%s)",
91 return [stackView frame].size.width;
94 return [stackView frame].size.height;
97 return [stackView indexOfTabViewItem:[stackView selectedTabViewItem]];
104 "Function is not appropriate for this type of widget (%s)",
123 "Function is not appropriate for this type of widget (%s)",
134 const char *defaultValue) {
141 "Function is not appropriate for this type of widget (%s)",
158 NSTabViewItem *item = [[NSTabViewItem alloc] init];
160 [item setView:subview];
162 [stackView addTabViewItem:item];
176 wParent=GWEN_Widget_Tree_GetParent(w);
178 stackView = [[[
CocoaTabView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 100.0, 100.0)] autorelease];
179 [stackView setTabViewType:NSNoTabsNoBorder];
static GWENHYWFAR_CB int CocoaGui_WStack_GetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
static GWENHYWFAR_CB int CocoaGui_WStack_SetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)
#define COCOA_DIALOG_WIDGET_REAL
#define GWEN_ERROR_INVALID
static GWENHYWFAR_CB int CocoaGui_WStack_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild)
#define DBG_WARN(dbg_logger, format, args...)
static GWENHYWFAR_CB const char * CocoaGui_WStack_GetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
int CocoaGui_WStack_Setup(GWEN_WIDGET *w)
static GWENHYWFAR_CB int CocoaGui_WStack_SetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
#define COCOA_DIALOG_WIDGET_CONTENT
#define GWEN_WIDGET_FLAGS_FILLY
#define GWEN_WIDGET_FLAGS_FILLX