nsWidget* nsWidget::GetInstance( PtWidget_t * pWidget ) { if( pWidget ) { PtArg_t  arg; void     **data;  PtSetArg( &arg, Pt_ARG_USER_DATA, &data, 0 ); if( PtGetResources( pWidget, 1, &arg ) == 0 ) { if( data ) return (nsWidget *) *data; } } return NULL; }
static inline nsWidget*  GetInstance( PtWidget_t *pWidget ) { nsWidget *data; PtGetResource( pWidget, Pt_ARG_POINTER, &data, 0 ); return data; }
nsWidget* nsWidget::GetInstance( PtWidget_t * pWidget ) {  if( pWidget ) {    PtArg_t  arg;    void     **data;        PtSetArg( &arg, Pt_ARG_USER_DATA, &data, 0 );    if( PtGetResources( pWidget, 1, &arg ) == 0 ) {      if( data )        return (nsWidget *) *data;    	}  	}  return NULL;	}