src/experiments/k4/K4GUI/src/mycommands.cc
int read_state_from_onoff(PtWidget_t *widget)
{
  PtArg_t args[1];
  int *intval;
  PtSetArg(&args[0], Pt_ARG_ONOFF_STATE, &intval,0);
  PtGetResources(widget,1,args);
  return(*intval);
  
}
/* utility function for reading current state of the onoff button */
utility function for reading current state of the onoff button
utility function for reading current state of the onoff button
int read_state_from_onoff(PtWidget_t *widget)
{
  PtArg_t args[1];
  int *intval;
  PtSetArg(&args[0], Pt_ARG_ONOFF_STATE, &intval,0);
  PtGetResources(widget,1,args);
  return(*intval);
}
int read_state_from_onoff ( PtWidget_t * widget ) { PtArg_t args [ 1 ] ; int * intval ; PtSetArg ( & args [ 0 ] , Pt_ARG_ONOFF_STATE , & intval , 0 ) ; PtGetResources ( widget , 1 , args ) ; return ( * intval ) ; }
utility function for reading current state of the onoff button
utility function for reading current state of the onoff button