src/experiments/k4/K4GUI/src/mycommands.cc
double read_double_from_widget(PtWidget_t *widget)
{
      PtArg_t args[1];
      double *dval;
  
      PtSetArg(&args[0], Pt_ARG_NUMERIC_VALUE, &dval, 0);
      PtGetResources(widget, 1, args);
      return(*dval);
}
/* utility function for reading double from a numeric widget */
utility function for reading double from a numeric widget
utility function for reading double from a numeric widget
double read_double_from_widget(PtWidget_t *widget)
{
      PtArg_t args[1];
      double *dval;
      PtSetArg(&args[0], Pt_ARG_NUMERIC_VALUE, &dval, 0);
      PtGetResources(widget, 1, args);
      return(*dval);
}
double read_double_from_widget ( PtWidget_t * widget ) { PtArg_t args [ 1 ] ; double * dval ; PtSetArg ( & args [ 0 ] , Pt_ARG_NUMERIC_VALUE , & dval , 0 ) ; PtGetResources ( widget , 1 , args ) ; return ( * dval ) ; }
utility function for reading double from a numeric widget
utility function for reading double from a numeric widget