class Fox::FXListBox
The List Box is a control to select one of a list of options. It looks similar to a Combo Box except that List Box yields integer numbers only. When an option is selected, List Box will send an SEL_COMMAND with the index of the opton. While manipulating the list, it may send SEL_CHANGED messages to indicate which option the cursor is hovering over. The List Box is able to receive ID_GETINTVALUE and ID_SETINTVALUE which will retrieve the current option or change the selected option.
Events¶ ↑
The following messages are sent by FXListBox to its target:
SEL_COMMAND-
sent when a new list item is clicked; the message data is the index of the selected item.
SEL_CHANGED-
sent when a new list item is clicked.
List Box styles¶ ↑
LISTBOX_NORMAL-
Normal style
Message identifiers¶ ↑
ID_LIST ID_FIELD
Attributes
Background color {FXColor}
Current item’s index, or -1 if no current item [Integer]
Text font {FXFont}
Status line help text [String]
Number of items in the list [Integer]
Number of visible items [Integer]
Background color for selected items {FXColor}
Text color for selected items {FXColor}
Text color {FXColor}
Tool tip message [String]
Public Class Methods
Source
SWIGINTERN VALUE
_wrap_new_FXListBox(int argc, VALUE *argv, VALUE self) {
FXComposite *arg1 = (FXComposite *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 = (FXSelector) 0 ;
FXuint arg4 = (FXuint) FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL ;
FXint arg5 = (FXint) 0 ;
FXint arg6 = (FXint) 0 ;
FXint arg7 = (FXint) 0 ;
FXint arg8 = (FXint) 0 ;
FXint arg9 = (FXint) DEFAULT_PAD ;
FXint arg10 = (FXint) DEFAULT_PAD ;
FXint arg11 = (FXint) DEFAULT_PAD ;
FXint arg12 = (FXint) DEFAULT_PAD ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
FXListBox *result = 0 ;
if ((argc < 1) || (argc > 12)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXComposite, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXComposite *","FXListBox", 1, argv[0] ));
}
arg1 = reinterpret_cast< FXComposite * >(argp1);
if (argc > 1) {
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","FXListBox", 2, argv[1] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
}
if (argc > 2) {
arg3 = NUM2UINT(argv[2]);
}
if (argc > 3) {
arg4 = NUM2UINT(argv[3]);
}
if (argc > 4) {
arg5 = NUM2INT(argv[4]);
}
if (argc > 5) {
arg6 = NUM2INT(argv[5]);
}
if (argc > 6) {
arg7 = NUM2INT(argv[6]);
}
if (argc > 7) {
arg8 = NUM2INT(argv[7]);
}
if (argc > 8) {
arg9 = NUM2INT(argv[8]);
}
if (argc > 9) {
arg10 = NUM2INT(argv[9]);
}
if (argc > 10) {
arg11 = NUM2INT(argv[10]);
}
if (argc > 11) {
arg12 = NUM2INT(argv[11]);
}
{
if (!arg1) {
SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
}
}
{
result = (FXListBox *)new_FXListBox(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
if(rb_block_given_p()){
rb_yield(self);
}
}
return self;
fail:
return Qnil;
}
Source
# File lib/fox16/kwargs.rb, line 1317 def initialize(p, *args, &blk) argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom} default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|LISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD } params = {} params = args.pop if args.last.is_a? Hash args.each_with_index { |e, i| params[argument_names[i].intern] = e } if params.key? :padding value = params.delete(:padding) [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value } end params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) } params = default_params.merge(params) old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk) end
Public Instance Methods
Source
SWIGINTERN VALUE
_wrap_FXListBox_appendItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXString *arg2 = 0 ;
FXIcon *arg3 = (FXIcon *) 0 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p2 ;
void *argp3 = 0 ;
int res3 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","appendItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
if (argc > 1) {
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXIcon *","appendItem", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXIcon * >(argp3);
}
if (argc > 2) {
arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2];
}
result = (FXint)(arg1)->appendItem((FXString const &)*arg2,arg3,arg4);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_canFocus(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","canFocus", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (bool)FXListBox_canFocus((FXListBox const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_changeFocus(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXWindow *arg2 = (FXWindow *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","changeFocus", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","changeFocus", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXWindow * >(argp2);
FXListBox_changeFocus(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_clearItems(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","clearItems", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
(arg1)->clearItems();
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_clearShape(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","clearShape", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_clearShape(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_contains(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","contains", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
result = (bool)FXListBox_contains((FXListBox const *)arg1,arg2,arg3);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_create(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","create", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_create(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_destroy(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_destroy(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_detach(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","detach", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_detach(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_disable(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","disable", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_disable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_doesSaveUnder(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","doesSaveUnder", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (bool)FXListBox_doesSaveUnder((FXListBox const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_dropDisable(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","dropDisable", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_dropDisable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_dropEnable(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","dropEnable", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_dropEnable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
# File lib/fox16/iterators.rb, line 141 def each 0.upto(numItems - 1) do |i| yield getItemText(i), getItemIcon(i), getItemData(i) end self end
Calls block once for each item in the list, passing the item’s text, icon and user data as parameters.
Source
SWIGINTERN VALUE
_wrap_FXListBox_enable(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","enable", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_enable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_extractItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXListItem *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","extractItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = (FXListItem *)(arg1)->extractItem(arg2);
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXListItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_fillItems(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXchar **arg2 = (FXchar **) 0 ;
FXIcon *arg3 = (FXIcon *) 0 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","fillItems", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
{
arg2 = NULL;
if(!NIL_P(argv[0])){
Check_Type(argv[0], T_ARRAY);
if (FXMALLOC(&arg2, FXchar *, RARRAY_LEN(argv[0])+1)) {
for (long i = 0; i < RARRAY_LEN(argv[0]); i++) {
VALUE e = rb_ary_entry(argv[0], i);
arg2[i] = (FXchar *) StringValuePtr(e);
}
arg2[RARRAY_LEN(argv[0])] = 0;
}
}
}
if (argc > 1) {
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXIcon *","fillItems", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXIcon * >(argp3);
}
if (argc > 2) {
arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2];
}
result = (FXint)(arg1)->fillItems((FXchar const **)arg2,arg3,arg4);
vresult = SWIG_From_int(static_cast< int >(result));
FXFREE(&arg2);
return vresult;
fail:
FXFREE(&arg2);
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_findItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXString *arg2 = 0 ;
FXint arg3 = (FXint) -1 ;
FXuint arg4 = (FXuint) SEARCH_FORWARD|SEARCH_WRAP ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p2 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","findItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
if (argc > 1) {
arg3 = NUM2INT(argv[1]);
}
if (argc > 2) {
arg4 = NUM2UINT(argv[2]);
}
result = (FXint)((FXListBox const *)arg1)->findItem((FXString const &)*arg2,arg3,arg4);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_findItemByData(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *arg2 = (void *) 0 ;
FXint arg3 = (FXint) -1 ;
FXuint arg4 = (FXuint) SEARCH_FORWARD|SEARCH_WRAP ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","findItemByData", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = (argv[0] == Qnil) ? NULL : (void *) argv[0];
if (argc > 1) {
arg3 = NUM2INT(argv[1]);
}
if (argc > 2) {
arg4 = NUM2UINT(argv[2]);
}
result = (FXint)((FXListBox const *)arg1)->findItemByData((void const *)arg2,arg3,arg4);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
# File lib/fox16/iterators.rb, line 133 def first getFirst end
Override Enumerable#first with FXWindow#first for backwards compatibility.
Source
SWIGINTERN VALUE
_wrap_FXListBox_getBackColor(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXColor result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXColor)((FXListBox const *)arg1)->getBackColor();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getCurrentItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getCurrentItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXint)((FXListBox const *)arg1)->getCurrentItem();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getDefaultHeight(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","getDefaultHeight", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXint)FXListBox_getDefaultHeight(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getDefaultWidth(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","getDefaultWidth", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXint)FXListBox_getDefaultWidth(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getFont(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXFont *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getFont", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXFont *)((FXListBox const *)arg1)->getFont();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXFont, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getHeightForWidth(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","getHeightForWidth", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXint)FXListBox_getHeightForWidth(arg1,arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getHelpText(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXString *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getHelpText", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXString *) &((FXListBox const *)arg1)->getHelpText();
vresult = to_ruby(result->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXString result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = ((FXListBox const *)arg1)->getItem(arg2);
vresult = to_ruby((&result)->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getItemData(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getItemData", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = (VALUE)FXListBox_getItemData((FXListBox const *)arg1,arg2);
vresult = result;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getItemIcon(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXIcon *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getItemIcon", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = (FXIcon *)((FXListBox const *)arg1)->getItemIcon(arg2);
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getItemText(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXString result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getItemText", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = ((FXListBox const *)arg1)->getItemText(arg2);
vresult = to_ruby((&result)->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getNumItems(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getNumItems", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXint)((FXListBox const *)arg1)->getNumItems();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getNumVisible(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getNumVisible", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXint)((FXListBox const *)arg1)->getNumVisible();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getSelBackColor(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXColor result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getSelBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXColor)((FXListBox const *)arg1)->getSelBackColor();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getSelTextColor(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXColor result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getSelTextColor", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXColor)((FXListBox const *)arg1)->getSelTextColor();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getTextColor(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXColor result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getTextColor", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXColor)((FXListBox const *)arg1)->getTextColor();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getTipText(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXString *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","getTipText", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXString *) &((FXListBox const *)arg1)->getTipText();
vresult = to_ruby(result->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_getWidthForHeight(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","getWidthForHeight", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXint)FXListBox_getWidthForHeight(arg1,arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_hide(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","hide", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_hide(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_insertItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXString *arg3 = 0 ;
FXIcon *arg4 = (FXIcon *) 0 ;
void *arg5 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p3 ;
void *argp4 = 0 ;
int res4 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","insertItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
p3 = to_FXString(argv[1]); arg3 = &p3;
if (argc > 2) {
res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXIcon *","insertItem", 4, argv[2] ));
}
arg4 = reinterpret_cast< FXIcon * >(argp4);
}
if (argc > 3) {
arg5 = (argv[3] == Qnil) ? NULL : (void *) argv[3];
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = (FXint)(arg1)->insertItem(arg2,(FXString const &)*arg3,arg4,arg5);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_isComposite(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
bool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","isComposite", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (bool)FXListBox_isComposite((FXListBox const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_isItemCurrent(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","isItemCurrent", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = (FXbool)((FXListBox const *)arg1)->isItemCurrent(arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_isPaneShown(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","isPaneShown", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
result = (FXbool)((FXListBox const *)arg1)->isPaneShown();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXListBox.rb, line 71 def itemCurrent?(index); end
Return true if index is the index of the current item. Raises IndexError if index is out of bounds.
Source
SWIGINTERN VALUE
_wrap_FXListBox_killFocus(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","killFocus", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_killFocus(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_layout(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","layout", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_layout(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_load(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXStream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","load", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","load", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","load", 2, argv[0]));
}
arg2 = reinterpret_cast< FXStream * >(argp2);
FXListBox_load(arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_lower(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","lower", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_lower(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_move(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","move", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXListBox_move(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_moveItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","moveItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
{
if (arg3 < 0 || arg3 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = (FXint)(arg1)->moveItem(arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onCmdGetIntValue(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onCmdGetIntValue", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdGetIntValue", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onCmdGetIntValue(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onCmdSetIntValue(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
FXint value4 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onCmdSetIntValue", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdSetIntValue", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
{
value4 = (FXint) NUM2INT(argv[2]);
arg4 = static_cast<void*>(&value4);
}
result = (long)(arg1)->onCmdSetIntValue(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onCmdSetValue(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onCmdSetValue", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onCmdSetValue", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = reinterpret_cast<void*>(NUM2INT(argv[2]));
result = (long)(arg1)->onCmdSetValue(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onFieldButton(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onFieldButton", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFieldButton", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onFieldButton(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onFocusDown(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onFocusDown", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFocusDown", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onFocusDown(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onFocusSelf(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onFocusSelf", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFocusSelf", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onFocusSelf(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onFocusUp(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onFocusUp", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFocusUp", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onFocusUp(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onListChanged(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onListChanged", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onListChanged", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = reinterpret_cast<void*>(NUM2INT(argv[2]));
result = (long)(arg1)->onListChanged(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onListClicked(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onListClicked", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onListClicked", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = reinterpret_cast<void*>(NUM2INT(argv[2]));
result = (long)(arg1)->onListClicked(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onListUpdate(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onListUpdate", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onListUpdate", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onListUpdate(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_onMouseWheel(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
long result;
VALUE vresult = Qnil;
if ((argc < 3) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","onMouseWheel", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onMouseWheel", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onMouseWheel(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXListBox.rb, line 184 def paneShown?; end
Return true if the pane is shown.
Source
SWIGINTERN VALUE
_wrap_FXListBox_position(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","position", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
FXListBox_position(arg1,arg2,arg3,arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_prependItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXString *arg2 = 0 ;
FXIcon *arg3 = (FXIcon *) 0 ;
void *arg4 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p2 ;
void *argp3 = 0 ;
int res3 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","prependItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
if (argc > 1) {
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXIcon *","prependItem", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXIcon * >(argp3);
}
if (argc > 2) {
arg4 = (argv[2] == Qnil) ? NULL : (void *) argv[2];
}
result = (FXint)(arg1)->prependItem((FXString const &)*arg2,arg3,arg4);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_raiseWindow(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","raise", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_raise(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_recalc(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","recalc", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_recalc(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_removeItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","removeItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
(arg1)->removeItem(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_reparent(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXWindow *arg2 = (FXWindow *) 0 ;
FXWindow *arg3 = (FXWindow *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","reparent", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXWindow, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXWindow *","reparent", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXWindow * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXWindow, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXWindow *","reparent", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXWindow * >(argp3);
FXListBox_reparent(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_resize(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXint arg3 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","resize", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXListBox_resize(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXListBox.rb, line 77 def retrieveItem(index); end
Return the text of the item at the given index. Raises IndexError if index is out of bounds.
Source
SWIGINTERN VALUE
_wrap_FXListBox_save(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXStream *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","save", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_FXStream, 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXStream &","save", 2, argv[0] ));
}
if (!argp2) {
SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "FXStream &","save", 2, argv[0]));
}
arg2 = reinterpret_cast< FXStream * >(argp2);
FXListBox_save((FXListBox const *)arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setBackColor(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXColor arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = to_FXColor(argv[0]);
FXListBox_setBackColor(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setCurrentItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXbool arg3 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setCurrentItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
FXListBox_setCurrentItem(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setDefault(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXbool arg2 = (FXbool) 1 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setDefault", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
if (argc > 0) {
arg2 = to_FXbool(argv[0]);
}
FXListBox_setDefault(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setFocus(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setFocus", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_setFocus(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setFont(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXFont *arg2 = (FXFont *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setFont", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXFont, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXFont *","setFont", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXFont * >(argp2);
(arg1)->setFont(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setHelpText(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXString *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p2 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setHelpText", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
(arg1)->setHelpText((FXString const &)*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setItem(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXString *arg3 = 0 ;
FXIcon *arg4 = (FXIcon *) 0 ;
void *arg5 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p3 ;
void *argp4 = 0 ;
int res4 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setItem", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
p3 = to_FXString(argv[1]); arg3 = &p3;
if (argc > 2) {
res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXIcon *","setItem", 4, argv[2] ));
}
arg4 = reinterpret_cast< FXIcon * >(argp4);
}
if (argc > 3) {
arg5 = (argv[3] == Qnil) ? NULL : (void *) argv[3];
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
result = (FXint)(arg1)->setItem(arg2,(FXString const &)*arg3,arg4,arg5);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setItemData(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
VALUE arg3 = (VALUE) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setItemData", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = argv[1];
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
FXListBox_setItemData(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setItemIcon(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXIcon *arg3 = (FXIcon *) 0 ;
FXbool arg4 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
if ((argc < 2) || (argc > 3)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setItemIcon", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXIcon *","setItemIcon", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXIcon * >(argp3);
if (argc > 2) {
arg4 = to_FXbool(argv[2]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
(arg1)->setItemIcon(arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setItemText(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
FXString *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p3 ;
if ((argc < 2) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setItemText", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
p3 = to_FXString(argv[1]); arg3 = &p3;
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list box item index out of bounds");
}
}
(arg1)->setItemText(arg2,(FXString const &)*arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setNumVisible(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXint arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setNumVisible", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
(arg1)->setNumVisible(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setSelBackColor(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXColor arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setSelBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = to_FXColor(argv[0]);
(arg1)->setSelBackColor(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setSelTextColor(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXColor arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setSelTextColor", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = to_FXColor(argv[0]);
(arg1)->setSelTextColor(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXListBox_setShape(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[3];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 3) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXRegion, SWIG_POINTER_NO_NULL);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXListBox_setShape__SWIG_0(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXBitmap, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXListBox_setShape__SWIG_1(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXListBox_setShape__SWIG_2(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "setShape",
" void setShape(FXRegion const ®ion)\n"
" void setShape(FXBitmap *bitmap)\n"
" void setShape(FXIcon *icon)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setTextColor(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXColor arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setTextColor", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = to_FXColor(argv[0]);
(arg1)->setTextColor(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_setTipText(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXString *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p2 ;
if ((argc < 1) || (argc > 1)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","setTipText", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
(arg1)->setTipText((FXString const &)*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_show(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","show", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
FXListBox_show(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_sortItems(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox *","sortItems", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
(arg1)->sortItems();
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXListBox_tr(int argc, VALUE *argv, VALUE self) {
FXListBox *arg1 = (FXListBox *) 0 ;
FXchar *arg2 = (FXchar *) 0 ;
FXchar *arg3 = (FXchar *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXchar *result = 0 ;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 2)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListBox const *","tr", 1, self ));
}
arg1 = reinterpret_cast< FXListBox * >(argp1);
arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]);
if (argc > 1) {
arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]);
}
result = (FXchar *)FXListBox_tr((FXListBox const *)arg1,(char const *)arg2,(char const *)arg3);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}