コード例 #1
0
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);
}
コード例 #2
0
ファイル: sp_dial.c プロジェクト: OrangeTide/xforms
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 );
}
コード例 #3
0
ファイル: sp_dial.c プロジェクト: OrangeTide/xforms
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 );
}
コード例 #4
0
ファイル: sp_counter.c プロジェクト: OrangeTide/xforms
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 );
}
コード例 #5
0
ファイル: sp_counter.c プロジェクト: OrangeTide/xforms
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 );
}
コード例 #6
0
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);
}
コード例 #7
0
/* 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);
}
コード例 #8
0
ファイル: child.c プロジェクト: OrangeTide/xforms
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;
}
コード例 #9
0
ファイル: C_compatability.c プロジェクト: alexw168/flatlandvr
void free_object( OBJECT_TYPE *o )
{
  fl_free_object( o );
}
コード例 #10
0
ファイル: FORMgenom.cpp プロジェクト: jmainpri/move3d-studio
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);
}