21 NSWindow *window = nil;
37 NSLog(
@"setWidth %i", value);
38 NSRect frame = [window frame];
39 frame.size.width = value;
40 [window setFrame:frame display:YES];
45 NSRect frame = [window frame];
46 frame.size.height = value;
47 [window setFrame:frame display:YES];
57 "Function is not appropriate for this type of widget (%s)",
70 NSWindow *window = nil;
80 return [window isKeyWindow];
83 return [window frame].size.width;
86 return [window frame].size.height;
93 "Function is not appropriate for this type of widget (%s)",
106 NSWindow *window = nil;
108 NSLog(
@"CocoaGui_WDialog_SetCharProperty");
115 NSString *newTitle = [[NSString alloc] initWithCString:value encoding:NSUTF8StringEncoding];
116 [window setTitle:newTitle];
125 "Function is not appropriate for this type of widget (%s)",
136 const char *defaultValue) {
137 NSWindow *window = nil;
144 return [[window title] cStringUsingEncoding:NSUTF8StringEncoding];
150 "Function is not appropriate for this type of widget (%s)",
160 NSLog(
@"CocoaGui_WDialog_AddChildGuiWidget");
162 NSWindow *window = nil;
169 NSRect bounds = [[window contentView] bounds];
170 [subview setFrame:bounds];
171 [subview setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable];
174 [contentView addLayoutSubview:subview];
189 newWindow=[[
CocoaWindow alloc] initWithContentRect:NSMakeRect(50.0, 50.0, 400.0, 200.0) styleMask:NSTitledWindowMask|NSResizableWindowMask backing:NSBackingStoreBuffered defer:YES];
190 [newWindow setReleasedWhenClosed:NO];
193 [newContentView setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable];
194 [newWindow setContentView:newContentView];
195 [newContentView release];
197 NSLog(
@"getWindow Title");
200 NSString *stringValue = [[NSString alloc] initWithCString:s encoding:NSUTF8StringEncoding];
201 NSLog(
@"Window Title = %@", stringValue);
202 [newWindow setTitle:stringValue];
203 [stringValue release];
#define COCOA_DIALOG_WIDGET_REAL
#define COCOA_DIALOG_WIDGET_CONTENT
#define DBG_WARN(dbg_logger, format,...)
@ GWEN_DialogProperty_Title
@ GWEN_DialogProperty_Height
@ GWEN_DialogProperty_Enabled
@ GWEN_DialogProperty_Focus
@ GWEN_DialogProperty_Width
#define GWEN_ERROR_INVALID
static GWENHYWFAR_CB const char * CocoaGui_WDialog_GetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *defaultValue)
static GWENHYWFAR_CB int CocoaGui_WDialog_SetCharProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, const char *value, int doSignal)
static GWENHYWFAR_CB int CocoaGui_WDialog_GetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int defaultValue)
int CocoaGui_WDialog_Setup(GWEN_WIDGET *w)
static GWENHYWFAR_CB int CocoaGui_WDialog_AddChildGuiWidget(GWEN_WIDGET *w, GWEN_WIDGET *wChild)
static GWENHYWFAR_CB int CocoaGui_WDialog_SetIntProperty(GWEN_WIDGET *w, GWEN_DIALOG_PROPERTY prop, int index, int value, int doSignal)