static void g3d_delete_retract_strat_frame(void){ g3d_fl_free_object(GLOBAL_SEARCH_CHECKB); g3d_fl_free_object(FORW_SEARCH_CHECKB); g3d_fl_free_object(LINEAR_SEARCH_CHECKB); fl_free_object(RETRACT_STRAT_GROUP); g3d_fl_free_object(RETRACT_STRAT_FRAME); }
void dial_emit_spec_fd_code( FILE * fp, FL_OBJECT * obj ) { FL_OBJECT *defobj = fl_create_dial( obj->type, 0, 0, 0, 0, "" ); FLI_DIAL_SPEC *sp = obj->spec, *defsp = defobj->spec; if ( sp->min != defsp->min || sp->max != defsp->max ) fprintf( fp, " bounds: %g %g\n", sp->min, sp->max ); if ( sp->thetai != defsp->thetai || sp->thetaf != defsp->thetaf ) fprintf( fp, " angles: %g %g\n", sp->thetai, sp->thetaf ); if ( sp->val != defsp->val ) fprintf( fp, " value: %g\n", sp->val ); if ( sp->step != defsp->step ) fprintf( fp, " step: %g\n", sp->step ); if ( sp->direction != defsp->direction ) fprintf( fp, " dir: %s\n", fli_get_vn_name( dial_dir, sp->direction ) ); fl_free_object( defobj ); }
void dial_emit_spec_c_code( FILE * fp, FL_OBJECT * obj ) { FL_OBJECT *defobj = fl_create_dial( obj->type, 0, 0, 0, 0, "" ); FLI_DIAL_SPEC *sp = obj->spec, *defsp = defobj->spec; if ( sp->min != defsp->min || sp->max != defsp->max ) fprintf( fp, " fl_set_dial_bounds( obj, %g, %g );\n", sp->min, sp->max ); if ( sp->thetai != defsp->thetai || sp->thetaf != defsp->thetaf ) fprintf( fp, " fl_set_dial_angles( obj, %g, %g );\n", sp->thetai, sp->thetaf ); if ( sp->val != defsp->val ) fprintf( fp, " fl_set_dial_value( obj, %g );\n", sp->val ); if ( sp->step != defsp->step ) fprintf( fp, " fl_set_dial_step( obj, %g );\n", sp->step ); if ( sp->direction != defsp->direction ) fprintf( fp, " fl_set_dial_direction( obj, %s );\n", fli_get_vn_name( dial_dir, sp->direction ) ); fl_free_object( defobj ); }
void counter_emit_spec_c_code( FILE * fp, FL_OBJECT * obj ) { FL_OBJECT *defobj = fl_create_counter( obj->type, 0, 0, 0, 0, "" ); FLI_COUNTER_SPEC *sp = obj->spec, *defsp = defobj->spec; if ( sp->prec != defsp->prec ) fprintf( fp, " fl_set_counter_precision( obj, %d );\n", sp->prec ); if ( sp->min != defsp->min || sp->max != defsp->max ) fprintf( fp, " fl_set_counter_bounds( obj, %.*f, %.*f );\n", sp->prec, sp->min, sp->prec, sp->max ); if ( sp->val != defsp->val ) fprintf( fp, " fl_set_counter_value( obj, %.*f );\n", sp->prec, sp->val ); if ( sp->sstep != defsp->sstep || sp->lstep != defsp->lstep ) fprintf( fp, " fl_set_counter_step( obj, %.*f, %.*f );\n", sp->prec, sp->sstep, sp->prec, sp->lstep ); fl_free_object( defobj ); }
void counter_emit_spec_fd_code( FILE * fp, FL_OBJECT * obj ) { FL_OBJECT *defobj = fl_create_counter( obj->type, 0, 0, 0, 0, "" ); FLI_COUNTER_SPEC *sp = obj->spec, *defsp = defobj->spec; if ( sp->min != defsp->min || sp->max != defsp->max ) fprintf( fp, " bounds: %.*f %.*f\n", sp->prec, sp->min, sp->prec, sp->max ); if ( sp->prec != defsp->prec ) fprintf( fp, " precision: %d\n", sp->prec ); if ( sp->val != defsp->val ) fprintf( fp, " value: %.*f\n", sp->prec, sp->val ); if ( sp->sstep != defsp->sstep ) fprintf( fp, " sstep: %.*f\n", sp->prec, sp->sstep ); if ( sp->lstep != defsp->lstep ) fprintf( fp, " lstep: %.*f\n", sp->prec, sp->lstep ); fl_free_object( defobj ); }
static void generic_dealloc(genericobject *g) { fl_free_object(g->ob_generic); Py_XDECREF(g->ob_callback); Py_XDECREF(g->ob_callback_arg); PyObject_Del(g); }
/* fonctions de destruction des objets forms */ void g3d_delete_steering_form(void) {int n,i; n = 4; if(fl_get_button(steering_obj)){fl_hide_form(STEERING_FORM);} fl_free_object(obj1); fl_free_object(obj2); for(i=0;i<n;i++){ BUTTON_TAB_OBJ[i]->u_vdata = NULL; BUTTON_TAB_OBJ[i]->next = NULL; BUTTON_TAB_OBJ[i]->prev = NULL; fl_free_object(BUTTON_TAB_OBJ[i]); } GROUP->next = NULL; GROUP->prev = NULL; fl_free_object(GROUP); fl_free_form(STEERING_FORM); free(BUTTON_TAB_OBJ); }
void fli_free_composite( FL_OBJECT * obj ) { FL_OBJECT *next, *parent = obj; for ( obj = obj->child; obj; obj = next ) { next = obj->nc; fl_free_object( obj ) ; } parent->child = NULL; }
void free_object( OBJECT_TYPE *o ) { fl_free_object( o ); }
static void CB_cancel(FL_OBJECT *ob, long arg) { fl_hide_form(INPUT_FORM); fl_free_object(INPUT_OBJ1); fl_free_object(INPUT_OBJ2); fl_free_form(INPUT_FORM); }