瀏覽代碼

Added "value" method to Fl_Choice, because it's reimplemented.

mingodad 13 年之前
父節點
當前提交
6f0255baa6
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      ext/sq_fltk.cpp

+ 3 - 0
ext/sq_fltk.cpp

@@ -1024,11 +1024,14 @@ static SQRegFunction fl_menu_button_obj_funcs[]={
 #undef _DECL_FUNC
 #undef _DECL_FUNC
 
 
 FLTK_CONSTRUCTOR(Fl_Choice);
 FLTK_CONSTRUCTOR(Fl_Choice);
+#define SETUP_FL_CHOICE(v) SETUP_FL_KLASS(v, Fl_Choice)
+FUNC_GETSET_INT(_Fl_Choice_, SETUP_FL_CHOICE, self->, value, int);
 CHEAP_RTTI_FOR(Fl_Choice);
 CHEAP_RTTI_FOR(Fl_Choice);
 #define _DECL_FUNC(name,nparams,pmask,isStatic) {_SC(#name),_Fl_Choice_##name,nparams,pmask,isStatic}
 #define _DECL_FUNC(name,nparams,pmask,isStatic) {_SC(#name),_Fl_Choice_##name,nparams,pmask,isStatic}
 static SQRegFunction fl_choice_obj_funcs[]={
 static SQRegFunction fl_choice_obj_funcs[]={
     CHEAP_RTTI_REG_FUN_FOR(Fl_Choice)
     CHEAP_RTTI_REG_FUN_FOR(Fl_Choice)
 	_DECL_FUNC(constructor,-5,FLTK_constructor_Mask, SQFalse),
 	_DECL_FUNC(constructor,-5,FLTK_constructor_Mask, SQFalse),
+	_DECL_FUNC(value,-1,_SC("xi"),SQFalse),
 	{0,0}
 	{0,0}
 };
 };
 #undef _DECL_FUNC
 #undef _DECL_FUNC