class Fox::FXList
A List Widget displays a list of items, each with a text and optional icon. When an itemβs selected state changes, the list sends a SEL_SELECTED or SEL_DESELECTED message. A change of the current item is signified by the SEL_CHANGED message. The list sends SEL_COMMAND messages when the user clicks on an item, and SEL_CLICKED, SEL_DOUBLECLICKED, and SEL_TRIPLECLICKED when the user clicks once, twice, or thrice, respectively. When items are added, replaced, or removed, the list sends messages of the type SEL_INSERTED, SEL_REPLACED, or SEL_DELETED. In each of these cases, the index to the item, if any, is passed in the 3rd argument of the message.
Events
The following messages are sent by FXList to its target:
SEL_CHANGED-
sent when the current list item changes; the message data is an Integer indicating the index of the current item.
SEL_COMMAND-
sent when the current list item changes; the message data is an Integer indicating the index of the current item.
SEL_KEYPRESS-
sent when a key goes down; the message data is an
FXEventinstance. SEL_KEYRELEASE-
sent when a key goes up; the message data is an
FXEventinstance. SEL_LEFTBUTTONPRESS-
sent when the left mouse button goes down; the message data is an
FXEventinstance. SEL_LEFTBUTTONRELEASE-
sent when the left mouse button goes up; the message data is an
FXEventinstance. SEL_RIGHTBUTTONPRESS-
sent when the right mouse button goes down; the message data is an
FXEventinstance. SEL_RIGHTBUTTONRELEASE-
sent when the right mouse button goes up; the message data is an
FXEventinstance. SEL_CLICKED-
sent when a list item is single-clicked; the message data is an Integer indicating the index of the current item.
SEL_DOUBLECLICKED-
sent when a list item is double-clicked; the message data is an Integer indicating the index of the current item.
SEL_TRIPLECLICKED-
sent when a list item is triple-clicked; the message data is an Integer indicating the index of the current item.
SEL_SELECTED-
sent when a list item is selected; the message data is an Integer indicating the index of the selected item.
SEL_DESELECTED-
sent when a list item is deselected; the message data is an Integer indicating the index of the deselected item.
SEL_REPLACED-
sent when a list item is about to be replaced; the message data is an Integer indicating the index of the item to be replaced.
SEL_INSERTED-
sent after a list item is inserted; the message data is an Integer indicating the index of the item that was inserted.
SEL_DELETED-
sent when a list item is about to be removed; the message data is an Integer indicating the index of the item to be removed.
List styles
LIST_EXTENDEDSELECT-
Extended selection mode allows for drag-selection of ranges of items
LIST_SINGLESELECT-
Single selection mode allows up to one item to be selected
LIST_BROWSESELECT-
Browse selection mode enforces one single item to be selected at all times
LIST_MULTIPLESELECT-
Multiple selection mode is used for selection of individual items
LIST_AUTOSELECT-
Automatically select under cursor
LIST_NORMAL-
same as
LIST_EXTENDEDSELECT
Message identifiers
ID_TIPTIMERID_LOOKUPTIMER
Attributes
Index of anchor item, or -1 if no anchor item [Integer]
Index of current item, or -1 if no current item [Integer]
Index of item under the cursor, or -1 if none [Integer]
Text font {FXFont}
Status line help text [String]
List style [Integer]
Number of items in the list [Integer]
Number of visible items [Integer]
Selected text background color {FXColor}
Selected text color {FXColor}
Normal text color {FXColor}
Public Class Methods
Source
SWIGINTERN VALUE
_wrap_FXList_ascending(int argc, VALUE *argv, VALUE self) {
FXListItem *arg1 = (FXListItem *) 0 ;
FXListItem *arg2 = (FXListItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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(argv[0], &argp1,SWIGTYPE_p_FXListItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListItem const *","FXList::ascending", 1, argv[0] ));
}
arg1 = reinterpret_cast< FXListItem * >(argp1);
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXListItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXListItem const *","FXList::ascending", 2, argv[1] ));
}
arg2 = reinterpret_cast< FXListItem * >(argp2);
result = (FXint)FXList::ascending((FXListItem const *)arg1,(FXListItem const *)arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_ascendingCase(int argc, VALUE *argv, VALUE self) {
FXListItem *arg1 = (FXListItem *) 0 ;
FXListItem *arg2 = (FXListItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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(argv[0], &argp1,SWIGTYPE_p_FXListItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListItem const *","FXList::ascendingCase", 1, argv[0] ));
}
arg1 = reinterpret_cast< FXListItem * >(argp1);
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXListItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXListItem const *","FXList::ascendingCase", 2, argv[1] ));
}
arg2 = reinterpret_cast< FXListItem * >(argp2);
result = (FXint)FXList::ascendingCase((FXListItem const *)arg1,(FXListItem const *)arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_descending(int argc, VALUE *argv, VALUE self) {
FXListItem *arg1 = (FXListItem *) 0 ;
FXListItem *arg2 = (FXListItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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(argv[0], &argp1,SWIGTYPE_p_FXListItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListItem const *","FXList::descending", 1, argv[0] ));
}
arg1 = reinterpret_cast< FXListItem * >(argp1);
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXListItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXListItem const *","FXList::descending", 2, argv[1] ));
}
arg2 = reinterpret_cast< FXListItem * >(argp2);
result = (FXint)FXList::descending((FXListItem const *)arg1,(FXListItem const *)arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_descendingCase(int argc, VALUE *argv, VALUE self) {
FXListItem *arg1 = (FXListItem *) 0 ;
FXListItem *arg2 = (FXListItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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(argv[0], &argp1,SWIGTYPE_p_FXListItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXListItem const *","FXList::descendingCase", 1, argv[0] ));
}
arg1 = reinterpret_cast< FXListItem * >(argp1);
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXListItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXListItem const *","FXList::descendingCase", 2, argv[1] ));
}
arg2 = reinterpret_cast< FXListItem * >(argp2);
result = (FXint)FXList::descendingCase((FXListItem const *)arg1,(FXListItem const *)arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_new_FXList(int argc, VALUE *argv, VALUE self) {
FXComposite *arg1 = (FXComposite *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 = (FXSelector) 0 ;
FXuint arg4 = (FXuint) LIST_NORMAL ;
FXint arg5 = (FXint) 0 ;
FXint arg6 = (FXint) 0 ;
FXint arg7 = (FXint) 0 ;
FXint arg8 = (FXint) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
FXList *result = 0 ;
if ((argc < 1) || (argc > 8)) {
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 *","FXList", 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 *","FXList", 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 (!arg1) {
SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
}
}
{
result = (FXList *)new_FXList(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
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 1303 def initialize(p, *args, &blk) argument_names = %w{target selector opts x y width height} default_params = { :target => nil, :selector => 0, :opts => LIST_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0 } params = {} params = args.pop if args.last.is_a? Hash args.each_with_index { |e, i| params[argument_names[i].intern] = e } 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], &blk) end
Public Instance Methods
Source
SWIGINTERN VALUE _wrap_FXList_appendItem(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[6];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 6) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if ((argc >= 2) && (argc <= 3)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXListItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 2) {
return _wrap_FXList_appendItem__SWIG_0(nargs, args, self);
}
{
_v = (argv[2] == Qtrue || argv[2] == Qfalse) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_appendItem__SWIG_0(nargs, args, self);
}
}
}
}
if ((argc >= 2) && (argc <= 5)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (NIL_P(argv[1]) || TYPE(argv[1]) == T_STRING) ? 1 : 0;
}
if (_v) {
if (argc <= 2) {
return _wrap_FXList_appendItem__SWIG_1(nargs, args, self);
}
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 3) {
return _wrap_FXList_appendItem__SWIG_1(nargs, args, self);
}
{
_v = 1;
}
if (_v) {
if (argc <= 4) {
return _wrap_FXList_appendItem__SWIG_1(nargs, args, self);
}
{
_v = (argv[4] == Qtrue || argv[4] == Qfalse) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_appendItem__SWIG_1(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 6, "appendItem",
" FXint appendItem(FXListItem *item, FXbool notify)\n"
" FXint appendItem(FXString const &text, FXIcon *icon, void *ITEMDATA, FXbool notify)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_canFocus(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","canFocus", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (bool)FXList_canFocus((FXList const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_changeFocus(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","changeFocus", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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);
FXList_changeFocus(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_clearItems(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXbool arg2 = (FXbool) 0 ;
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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","clearItems", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
if (argc > 0) {
arg2 = to_FXbool(argv[0]);
}
FXList_clearItems(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_clearShape(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","clearShape", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_clearShape(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_contains(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","contains", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
result = (bool)FXList_contains((FXList const *)arg1,arg2,arg3);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_create(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","create", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_create(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_deselectItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXint arg2 ;
FXbool arg3 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","deselectItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)FXList_deselectItem(arg1,arg2,arg3);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_destroy(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_destroy(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_detach(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","detach", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_detach(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_disable(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","disable", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_disable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_disableItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","disableItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)FXList_disableItem(arg1,arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_doesSaveUnder(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","doesSaveUnder", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (bool)FXList_doesSaveUnder((FXList const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_dropDisable(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","dropDisable", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_dropDisable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_dropEnable(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","dropEnable", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_dropEnable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
# File lib/fox16/iterators.rb, line 118 def each # :yields: aListItem 0.upto(numItems - 1) do |i| yield getItem(i) end self end
Calls block once for each item in the list, passing a reference to that item as a parameter.
Source
SWIGINTERN VALUE
_wrap_FXList_enable(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","enable", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_enable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_enableItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","enableItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)FXList_enableItem(arg1,arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_extendSelection(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXint arg2 ;
FXbool arg3 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","extendSelection", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)FXList_extendSelection(arg1,arg2,arg3);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_extractItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXint arg2 ;
FXbool arg3 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXListItem *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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","extractItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXListItem *)(arg1)->extractItem(arg2,arg3);
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXListItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_fillItems(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXchar **arg2 = (FXchar **) 0 ;
FXIcon *arg3 = (FXIcon *) 0 ;
void *arg4 = (void *) 0 ;
FXbool arg5 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
int res4 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 1) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","fillItems", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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) {
res4 = SWIG_ConvertPtr(argv[2],SWIG_as_voidptrptr(&arg4), 0, 0);
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "void *","fillItems", 4, argv[2] ));
}
}
if (argc > 3) {
arg5 = to_FXbool(argv[3]);
}
result = (FXint)(arg1)->fillItems((FXchar const **)arg2,arg3,arg4,arg5);
vresult = SWIG_From_int(static_cast< int >(result));
FXFREE(&arg2);
return vresult;
fail:
FXFREE(&arg2);
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_findItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","findItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
if (argc > 1) {
arg3 = NUM2INT(argv[1]);
}
if (argc > 2) {
arg4 = NUM2UINT(argv[2]);
}
result = (FXint)((FXList 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_FXList_findItemByData(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","findItemByData", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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)((FXList 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 110 def first getFirst end
Override Enumerable#first with FXWindow#first for backwards compatibility.
Source
SWIGINTERN VALUE
_wrap_FXList_getAnchorItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getAnchorItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)((FXList const *)arg1)->getAnchorItem();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getContentHeight(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","getContentHeight", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)FXList_getContentHeight(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getContentWidth(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","getContentWidth", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)FXList_getContentWidth(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getCurrentItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getCurrentItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)((FXList const *)arg1)->getCurrentItem();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getCursorItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getCursorItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)((FXList const *)arg1)->getCursorItem();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getDefaultHeight(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","getDefaultHeight", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)FXList_getDefaultHeight(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getDefaultWidth(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","getDefaultWidth", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)FXList_getDefaultWidth(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getFont(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getFont", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXFont *)((FXList 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_FXList_getHeightForWidth(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","getHeightForWidth", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXint)FXList_getHeightForWidth(arg1,arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getHelpText(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getHelpText", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXString *) &((FXList const *)arg1)->getHelpText();
vresult = to_ruby(result->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXListItem *)((FXList const *)arg1)->getItem(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_FXList_getItemAt(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getItemAt", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
result = (FXint)FXList_getItemAt((FXList const *)arg1,arg2,arg3);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getItemData(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getItemData", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (VALUE)FXList_getItemData((FXList const *)arg1,arg2);
vresult = result;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getItemHeight(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getItemHeight", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXint)((FXList const *)arg1)->getItemHeight(arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getItemIcon(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getItemIcon", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXIcon *)((FXList 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_FXList_getItemText(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getItemText", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = ((FXList const *)arg1)->getItemText(arg2);
vresult = to_ruby((&result)->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getItemWidth(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getItemWidth", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXint)((FXList const *)arg1)->getItemWidth(arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getListStyle(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXuint 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getListStyle", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXuint)((FXList const *)arg1)->getListStyle();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getNumItems(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getNumItems", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)((FXList const *)arg1)->getNumItems();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getNumVisible(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getNumVisible", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)((FXList const *)arg1)->getNumVisible();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getSelBackColor(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getSelBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXColor)((FXList const *)arg1)->getSelBackColor();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getSelTextColor(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getSelTextColor", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXColor)((FXList const *)arg1)->getSelTextColor();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getTextColor(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","getTextColor", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXColor)((FXList const *)arg1)->getTextColor();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getViewportHeight(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","getViewportHeight", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)FXList_getViewportHeight(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getViewportWidth(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","getViewportWidth", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (FXint)FXList_getViewportWidth(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_getWidthForHeight(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","getWidthForHeight", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXint)FXList_getWidthForHeight(arg1,arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_hide(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","hide", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_hide(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_hitItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","hitItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXint)((FXList const *)arg1)->hitItem(arg2,arg3,arg4);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXList_insertItem(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[7];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 7) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if ((argc >= 3) && (argc <= 4)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXListItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 3) {
return _wrap_FXList_insertItem__SWIG_0(nargs, args, self);
}
{
_v = (argv[3] == Qtrue || argv[3] == Qfalse) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_insertItem__SWIG_0(nargs, args, self);
}
}
}
}
}
if ((argc >= 3) && (argc <= 6)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (NIL_P(argv[2]) || TYPE(argv[2]) == T_STRING) ? 1 : 0;
}
if (_v) {
if (argc <= 3) {
return _wrap_FXList_insertItem__SWIG_1(nargs, args, self);
}
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 4) {
return _wrap_FXList_insertItem__SWIG_1(nargs, args, self);
}
{
_v = 1;
}
if (_v) {
if (argc <= 5) {
return _wrap_FXList_insertItem__SWIG_1(nargs, args, self);
}
{
_v = (argv[5] == Qtrue || argv[5] == Qfalse) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_insertItem__SWIG_1(nargs, args, self);
}
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 7, "insertItem",
" FXint insertItem(FXint index, FXListItem *item, FXbool notify)\n"
" FXint insertItem(FXint index, FXString const &text, FXIcon *icon, void *ITEMDATA, FXbool notify)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_isComposite(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","isComposite", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
result = (bool)FXList_isComposite((FXList const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_isItemCurrent(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","isItemCurrent", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)((FXList const *)arg1)->isItemCurrent(arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_isItemEnabled(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","isItemEnabled", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)((FXList const *)arg1)->isItemEnabled(arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_isItemSelected(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","isItemSelected", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)((FXList const *)arg1)->isItemSelected(arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_isItemVisible(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","isItemVisible", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)((FXList const *)arg1)->isItemVisible(arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXList.rb, line 380 def itemCurrent?(index) ; end
Return true if item is current. Raises IndexError if index is out of bounds.
Source
# File rdoc-sources/FXList.rb, line 392 def itemEnabled?(index) ; end
Return true if item is enabled; this is equivalent to:
getItem(index).enabled?
Raises IndexError if index is out of bounds.
Source
# File rdoc-sources/FXList.rb, line 377 def itemSelected?(index) ; end
Return true if item is selected; this is equivalent to:
getItem(index).selected?
Raises IndexError if index is out of bounds.
Source
# File rdoc-sources/FXList.rb, line 383 def itemVisible?(index) ; end
Return true if item is visible. Raises IndexError if index is out of bounds.
Source
SWIGINTERN VALUE
_wrap_FXList_killFocus(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","killFocus", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_killFocus(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_killSelection(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXbool arg2 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
VALUE vresult = Qnil;
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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","killSelection", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
if (argc > 0) {
arg2 = to_FXbool(argv[0]);
}
result = (FXbool)FXList_killSelection(arg1,arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_layout(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","layout", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_layout(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_load(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","load", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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);
FXList_load(arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_lower(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","lower", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_lower(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXList_makeItemVisible(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_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXListItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXList_makeItemVisible__SWIG_0(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_makeItemVisible__SWIG_1(nargs, args, self);
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 3, "makeItemVisible",
" void makeItemVisible(FXListItem *item)\n"
" void makeItemVisible(FXint index)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_move(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","move", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXList_move(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_moveItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXbool arg4 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXint result;
VALUE vresult = Qnil;
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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","moveItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
if (argc > 2) {
arg4 = to_FXbool(argv[2]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
{
if (arg3 < 0 || arg3 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXint)(arg1)->moveItem(arg2,arg3,arg4);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onAutoScroll(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onAutoScroll", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onAutoScroll", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onAutoScroll(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onClicked(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onClicked", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onClicked", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = reinterpret_cast<void*>(NUM2INT(argv[2]));
result = (long)(arg1)->onClicked(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onCmdGetIntValue(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onCmdGetIntValue", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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_FXList_onCmdSetIntValue(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onCmdSetIntValue", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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_FXList_onCmdSetValue(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onCmdSetValue", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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_FXList_onCommand(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onCommand", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onCommand", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = reinterpret_cast<void*>(NUM2INT(argv[2]));
result = (long)(arg1)->onCommand(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onDoubleClicked(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onDoubleClicked", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onDoubleClicked", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = reinterpret_cast<void*>(NUM2INT(argv[2]));
result = (long)(arg1)->onDoubleClicked(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onEnter(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onEnter", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onEnter", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onEnter(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onFocusIn(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onFocusIn", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onFocusIn", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onFocusIn(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onFocusOut(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onFocusOut", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onFocusOut", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onFocusOut(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onKeyPress(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onKeyPress", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onKeyPress", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onKeyPress(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onKeyRelease(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onKeyRelease", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onKeyRelease", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onKeyRelease(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onLeave(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onLeave", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onLeave", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onLeave(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onLeftBtnPress(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onLeftBtnPress", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onLeftBtnPress", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onLeftBtnPress(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onLeftBtnRelease(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onLeftBtnRelease", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onLeftBtnRelease", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onLeftBtnRelease(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onLookupTimer(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onLookupTimer", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onLookupTimer", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onLookupTimer(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onMotion(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onMotion", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onMotion", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onMotion(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onPaint(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onPaint", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onPaint", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onPaint(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onQueryHelp(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onQueryHelp", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onQueryHelp", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onQueryHelp(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onQueryTip(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onQueryTip", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onQueryTip", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onQueryTip(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onRightBtnPress(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onRightBtnPress", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onRightBtnPress", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onRightBtnPress(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onRightBtnRelease(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onRightBtnRelease", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onRightBtnRelease", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onRightBtnRelease(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onTipTimer(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onTipTimer", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onTipTimer", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onTipTimer(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onTripleClicked(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onTripleClicked", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onTripleClicked", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = reinterpret_cast<void*>(NUM2INT(argv[2]));
result = (long)(arg1)->onTripleClicked(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_onUngrabbed(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","onUngrabbed", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 *","onUngrabbed", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onUngrabbed(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXList_position(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[6];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 6) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 1) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXList_position__SWIG_1(nargs, args, self);
}
}
if (argc == 5) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[2]) == T_FIXNUM || TYPE(argv[2]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[3]) == T_FIXNUM || TYPE(argv[3]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (TYPE(argv[4]) == T_FIXNUM || TYPE(argv[4]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_position__SWIG_0(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 6, "position",
" void position(FXint x, FXint y, FXint w, FXint h)\n"
" VALUE position()\n");
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXList_prependItem(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[6];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 6) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if ((argc >= 2) && (argc <= 3)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXListItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 2) {
return _wrap_FXList_prependItem__SWIG_0(nargs, args, self);
}
{
_v = (argv[2] == Qtrue || argv[2] == Qfalse) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_prependItem__SWIG_0(nargs, args, self);
}
}
}
}
if ((argc >= 2) && (argc <= 5)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (NIL_P(argv[1]) || TYPE(argv[1]) == T_STRING) ? 1 : 0;
}
if (_v) {
if (argc <= 2) {
return _wrap_FXList_prependItem__SWIG_1(nargs, args, self);
}
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 3) {
return _wrap_FXList_prependItem__SWIG_1(nargs, args, self);
}
{
_v = 1;
}
if (_v) {
if (argc <= 4) {
return _wrap_FXList_prependItem__SWIG_1(nargs, args, self);
}
{
_v = (argv[4] == Qtrue || argv[4] == Qfalse) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_prependItem__SWIG_1(nargs, args, self);
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 6, "prependItem",
" FXint prependItem(FXListItem *item, FXbool notify)\n"
" FXint prependItem(FXString const &text, FXIcon *icon, void *ITEMDATA, FXbool notify)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_raiseWindow(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","raise", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_raise(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_recalc(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","recalc", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_recalc(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_removeItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","removeItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
FXList_removeItem(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_reparent(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","reparent", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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);
FXList_reparent(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_resize(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","resize", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXList_resize(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_save(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","save", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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);
FXList_save((FXList const *)arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_selectItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXint arg2 ;
FXbool arg3 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","selectItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)FXList_selectItem(arg1,arg2,arg3);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setAnchorItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setAnchorItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
(arg1)->setAnchorItem(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setBackColor(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = to_FXColor(argv[0]);
FXList_setBackColor(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setCurrentItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setCurrentItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
FXList_setCurrentItem(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setDefault(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setDefault", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
if (argc > 0) {
arg2 = to_FXbool(argv[0]);
}
FXList_setDefault(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setFocus(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setFocus", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_setFocus(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setFont(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setFont", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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_FXList_setHelpText(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setHelpText", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
(arg1)->setHelpText((FXString const &)*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXList_setItem(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[7];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 7) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if ((argc >= 3) && (argc <= 4)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXListItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 3) {
return _wrap_FXList_setItem__SWIG_0(nargs, args, self);
}
{
_v = (argv[3] == Qtrue || argv[3] == Qfalse) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_setItem__SWIG_0(nargs, args, self);
}
}
}
}
}
if ((argc >= 3) && (argc <= 6)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (TYPE(argv[1]) == T_FIXNUM || TYPE(argv[1]) == T_BIGNUM) ? 1 : 0;
}
if (_v) {
{
_v = (NIL_P(argv[2]) || TYPE(argv[2]) == T_STRING) ? 1 : 0;
}
if (_v) {
if (argc <= 3) {
return _wrap_FXList_setItem__SWIG_1(nargs, args, self);
}
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 4) {
return _wrap_FXList_setItem__SWIG_1(nargs, args, self);
}
{
_v = 1;
}
if (_v) {
if (argc <= 5) {
return _wrap_FXList_setItem__SWIG_1(nargs, args, self);
}
{
_v = (argv[5] == Qtrue || argv[5] == Qfalse) ? 1 : 0;
}
if (_v) {
return _wrap_FXList_setItem__SWIG_1(nargs, args, self);
}
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 7, "setItem",
" FXint setItem(FXint index, FXListItem *item, FXbool notify)\n"
" FXint setItem(FXint index, FXString const &text, FXIcon *icon, void *ITEMDATA, FXbool notify)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setItemData(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setItemData", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = argv[1];
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
FXList_setItemData(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setItemIcon(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setItemIcon", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(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 item index out of bounds");
}
}
(arg1)->setItemIcon(arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setItemText(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setItemText", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
p3 = to_FXString(argv[1]); arg3 = &p3;
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
(arg1)->setItemText(arg2,(FXString const &)*arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setListStyle(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXuint 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setListStyle", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2UINT(argv[0]);
(arg1)->setListStyle(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setNumVisible(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setNumVisible", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
(arg1)->setNumVisible(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setSelBackColor(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setSelBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = to_FXColor(argv[0]);
(arg1)->setSelBackColor(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_setSelTextColor(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setSelTextColor", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = to_FXColor(argv[0]);
(arg1)->setSelTextColor(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXList_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_FXList, 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_FXList_setShape__SWIG_0(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 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_FXList_setShape__SWIG_1(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXList, 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_FXList_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_FXList_setTextColor(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","setTextColor", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = to_FXColor(argv[0]);
(arg1)->setTextColor(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_show(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","show", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
FXList_show(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_sortItems(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","sortItems", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
(arg1)->sortItems();
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_toggleItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 0 ;
FXint arg2 ;
FXbool arg3 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList *","toggleItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
result = (FXbool)FXList_toggleItem(arg1,arg2,arg3);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_tr(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","tr", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]);
if (argc > 1) {
arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]);
}
result = (FXchar *)FXList_tr((FXList const *)arg1,(char const *)arg2,(char const *)arg3);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXList_updateItem(int argc, VALUE *argv, VALUE self) {
FXList *arg1 = (FXList *) 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_FXList, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXList const *","updateItem", 1, self ));
}
arg1 = reinterpret_cast< FXList * >(argp1);
arg2 = NUM2INT(argv[0]);
{
if (arg2 < 0 || arg2 >= arg1->getNumItems()) {
rb_raise(rb_eIndexError, "list item index out of bounds");
}
}
((FXList const *)arg1)->updateItem(arg2);
return Qnil;
fail:
return Qnil;
}