#import "PhWindow.h" @implementation PhWindow - (void) createWindow { widget = PtCreateWidget(PtWindow, myparent, 0, NULL); } - (void) title: (char*) title { PtSetResource( widget, Pt_ARG_WINDOW_TITLE, title, 0 ); } - (void) Width: (int) width Height: (int) height { int i; i = 0; PtArg_t args[2]; PtSetArg( &args[i++], Pt_ARG_HEIGHT, height, 0 ); PtSetArg( &args[i++], Pt_ARG_WIDTH, width, 0 ); PtSetResources( widget, i, args ); } @end