class Fox::FXTreeListBox
The Tree List Box behaves very much like a List Box, except that it supports a hierarchical, tree structured display of the items. When an item is selected it issues a SEL_COMMAND message with the pointer to the item. While manipulating the tree list, it may send SEL_CHANGED messages to indicate which item the cursor is hovering over.
Events¶ ↑
The following messages are sent by FXTreeListBox to its target:
SEL_CHANGED-
sent when the current list item changes; the message data is a reference to the new tree item.
SEL_COMMAND-
sent when the current list item changes; the message data is a reference to the new tree item.
Tree list box styles¶ ↑
TREELISTBOX_NORMAL-
Normal style
Message identifiers¶ ↑
ID_TREE-
x
ID_FIELD-
x
Attributes
Current item, if any {FXTreeItem}
First root-level item {FXTreeItem}
Text font {FXFont}
Status line help text for this tree list box [String]
Last root-level item {FXTreeItem}
Tree list box style
Number of items [Integer]
Number of visible items [Integer]
Tool tip text for this tree list box [String]
Public Class Methods
Source
SWIGINTERN VALUE
_wrap_new_FXTreeListBox(int argc, VALUE *argv, VALUE self) {
FXComposite *arg1 = (FXComposite *) 0 ;
FXObject *arg2 = (FXObject *) 0 ;
FXSelector arg3 = (FXSelector) 0 ;
FXuint arg4 = (FXuint) FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL ;
FXint arg5 = (FXint) 0 ;
FXint arg6 = (FXint) 0 ;
FXint arg7 = (FXint) 0 ;
FXint arg8 = (FXint) 0 ;
FXint arg9 = (FXint) DEFAULT_PAD ;
FXint arg10 = (FXint) DEFAULT_PAD ;
FXint arg11 = (FXint) DEFAULT_PAD ;
FXint arg12 = (FXint) DEFAULT_PAD ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
FXTreeListBox *result = 0 ;
if ((argc < 1) || (argc > 12)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_FXComposite, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXComposite *","FXTreeListBox", 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 *","FXTreeListBox", 2, argv[1] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
}
if (argc > 2) {
arg3 = NUM2UINT(argv[2]);
}
if (argc > 3) {
arg4 = NUM2UINT(argv[3]);
}
if (argc > 4) {
arg5 = NUM2INT(argv[4]);
}
if (argc > 5) {
arg6 = NUM2INT(argv[5]);
}
if (argc > 6) {
arg7 = NUM2INT(argv[6]);
}
if (argc > 7) {
arg8 = NUM2INT(argv[7]);
}
if (argc > 8) {
arg9 = NUM2INT(argv[8]);
}
if (argc > 9) {
arg10 = NUM2INT(argv[9]);
}
if (argc > 10) {
arg11 = NUM2INT(argv[10]);
}
if (argc > 11) {
arg12 = NUM2INT(argv[11]);
}
{
if (!arg1) {
SWIG_exception(SWIG_ValueError,"Received a NULL pointer.");
}
}
{
result = (FXTreeListBox *)new_FXTreeListBox(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
DATA_PTR(self) = result; FXRbRegisterRubyObj(self, result);
if(rb_block_given_p()){
rb_yield(self);
}
}
return self;
fail:
return Qnil;
}
Source
# File lib/fox16/kwargs.rb, line 2596 def initialize(p, *args, &blk) argument_names = %w{target selector opts x y width height padLeft padRight padTop padBottom} default_params = { :target => nil, :selector => 0, :opts => FRAME_SUNKEN|FRAME_THICK|TREELISTBOX_NORMAL, :x => 0, :y => 0, :width => 0, :height => 0, :padLeft => DEFAULT_PAD, :padRight => DEFAULT_PAD, :padTop => DEFAULT_PAD, :padBottom => DEFAULT_PAD } params = {} params = args.pop if args.last.is_a? Hash args.each_with_index { |e, i| params[argument_names[i].intern] = e } if params.key? :padding value = params.delete(:padding) [:padLeft, :padRight, :padTop, :padBottom].each { |s| params[s] ||= value } end params.keys.each { |key| raise ArgumentError, "Unrecognized parameter #{key}" unless default_params.keys.include?(key) } params = default_params.merge(params) old_initialize(p, params[:target], params[:selector], params[:opts], params[:x], params[:y], params[:width], params[:height], params[:padLeft], params[:padRight], params[:padTop], params[:padBottom], &blk) end
Public Instance Methods
Source
SWIGINTERN VALUE _wrap_FXTreeListBox_appendItem(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) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXTreeListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXTreeListBox_appendItem__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_FXTreeListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (NIL_P(argv[2]) || TYPE(argv[2]) == T_STRING) ? 1 : 0;
}
if (_v) {
if (argc <= 3) {
return _wrap_FXTreeListBox_appendItem__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_FXTreeListBox_appendItem__SWIG_1(nargs, args, self);
}
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 5) {
return _wrap_FXTreeListBox_appendItem__SWIG_1(nargs, args, self);
}
{
_v = 1;
}
if (_v) {
return _wrap_FXTreeListBox_appendItem__SWIG_1(nargs, args, self);
}
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 7, "appendItem",
" FXTreeItem appendItem(FXTreeItem *father, FXTreeItem *item)\n"
" FXTreeItem * appendItem(FXTreeItem *father, FXString const &text, FXIcon *oi, FXIcon *ci, void *ITEMDATA)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_canFocus(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","canFocus", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (bool)FXTreeListBox_canFocus((FXTreeListBox const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_changeFocus(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","changeFocus", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(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);
FXTreeListBox_changeFocus(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_clearItems(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","clearItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_clearItems(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_clearShape(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","clearShape", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_clearShape(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_contains(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","contains", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
result = (bool)FXTreeListBox_contains((FXTreeListBox const *)arg1,arg2,arg3);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_create(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","create", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_create(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_destroy(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_destroy(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_detach(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","detach", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_detach(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_disable(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","disable", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_disable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_doesSaveUnder(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","doesSaveUnder", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (bool)FXTreeListBox_doesSaveUnder((FXTreeListBox const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_dropDisable(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","dropDisable", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_dropDisable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_dropEnable(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","dropEnable", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_dropEnable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
# File lib/fox16/iterators.rb, line 253 def each # :yields: aTreeItem current = firstItem while current != nil next_current = current.next yield current current = next_current end self end
Calls block once for each root-level tree item, passing a reference to that item as a parameter.
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_enable(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","enable", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_enable(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_extractItem(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
FXTreeItem *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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","extractItem", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","extractItem", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = (FXTreeItem *)(arg1)->extractItem(arg2);
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_fillItems(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
FXchar **arg3 = (FXchar **) 0 ;
FXIcon *arg4 = (FXIcon *) 0 ;
FXIcon *arg5 = (FXIcon *) 0 ;
void *arg6 = (void *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
void *argp5 = 0 ;
int res5 = 0 ;
FXint result;
VALUE vresult = Qnil;
if ((argc < 2) || (argc > 5)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","fillItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","fillItems", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
{
arg3 = NULL;
if(!NIL_P(argv[1])){
Check_Type(argv[1], T_ARRAY);
if (FXMALLOC(&arg3, FXchar *, RARRAY_LEN(argv[1])+1)) {
for (long i = 0; i < RARRAY_LEN(argv[1]); i++) {
VALUE e = rb_ary_entry(argv[1], i);
arg3[i] = (FXchar *) StringValuePtr(e);
}
arg3[RARRAY_LEN(argv[1])] = 0;
}
}
}
if (argc > 2) {
res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXIcon *","fillItems", 4, argv[2] ));
}
arg4 = reinterpret_cast< FXIcon * >(argp4);
}
if (argc > 3) {
res5 = SWIG_ConvertPtr(argv[3], &argp5,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res5)) {
SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "FXIcon *","fillItems", 5, argv[3] ));
}
arg5 = reinterpret_cast< FXIcon * >(argp5);
}
if (argc > 4) {
arg6 = (argv[4] == Qnil) ? NULL : (void *) argv[4];
}
result = (FXint)(arg1)->fillItems(arg2,(FXchar const **)arg3,arg4,arg5,arg6);
vresult = SWIG_From_int(static_cast< int >(result));
FXFREE(&arg3);
return vresult;
fail:
FXFREE(&arg3);
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_findItem(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXString *arg2 = 0 ;
FXTreeItem *arg3 = (FXTreeItem *) 0 ;
FXuint arg4 = (FXuint) SEARCH_FORWARD|SEARCH_WRAP ;
void *argp1 = 0 ;
int res1 = 0 ;
SwigValueWrapper< FXString > p2 ;
void *argp3 = 0 ;
int res3 = 0 ;
FXTreeItem *result = 0 ;
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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","findItem", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
if (argc > 1) {
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXTreeItem *","findItem", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXTreeItem * >(argp3);
}
if (argc > 2) {
arg4 = NUM2UINT(argv[2]);
}
result = (FXTreeItem *)((FXTreeListBox const *)arg1)->findItem((FXString const &)*arg2,arg3,arg4);
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_findItemByData(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
void *arg2 = (void *) 0 ;
FXTreeItem *arg3 = (FXTreeItem *) 0 ;
FXuint arg4 = (FXuint) SEARCH_FORWARD|SEARCH_WRAP ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
FXTreeItem *result = 0 ;
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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","findItemByData", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = (argv[0] == Qnil) ? NULL : (void *) argv[0];
if (argc > 1) {
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXTreeItem *","findItemByData", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXTreeItem * >(argp3);
}
if (argc > 2) {
arg4 = NUM2UINT(argv[2]);
}
result = (FXTreeItem *)((FXTreeListBox const *)arg1)->findItemByData((void const *)arg2,arg3,arg4);
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
# File lib/fox16/iterators.rb, line 245 def first getFirst end
Override Enumerable#first with FXWindow#first for backwards compatibility.
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getCurrentItem(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXTreeItem *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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getCurrentItem", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXTreeItem *)((FXTreeListBox const *)arg1)->getCurrentItem();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getDefaultHeight(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","getDefaultHeight", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXint)FXTreeListBox_getDefaultHeight(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getDefaultWidth(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","getDefaultWidth", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXint)FXTreeListBox_getDefaultWidth(arg1);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getFirstItem(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXTreeItem *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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getFirstItem", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXTreeItem *)((FXTreeListBox const *)arg1)->getFirstItem();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getFont(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getFont", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXFont *)((FXTreeListBox 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_FXTreeListBox_getHeightForWidth(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","getHeightForWidth", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXint)FXTreeListBox_getHeightForWidth(arg1,arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getHelpText(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getHelpText", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXString *) &((FXTreeListBox const *)arg1)->getHelpText();
vresult = to_ruby(result->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getItemClosedIcon(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getItemClosedIcon", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem const *","getItemClosedIcon", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = (FXIcon *)((FXTreeListBox const *)arg1)->getItemClosedIcon((FXTreeItem const *)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_FXTreeListBox_getItemData(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getItemData", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem const *","getItemData", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = (VALUE)FXTreeListBox_getItemData((FXTreeListBox const *)arg1,(FXTreeItem const *)arg2);
vresult = result;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getItemOpenIcon(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getItemOpenIcon", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem const *","getItemOpenIcon", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = (FXIcon *)((FXTreeListBox const *)arg1)->getItemOpenIcon((FXTreeItem const *)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_FXTreeListBox_getItemText(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getItemText", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem const *","getItemText", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = ((FXTreeListBox const *)arg1)->getItemText((FXTreeItem const *)arg2);
vresult = to_ruby((&result)->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getLastItem(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXTreeItem *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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getLastItem", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXTreeItem *)((FXTreeListBox const *)arg1)->getLastItem();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getListStyle(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getListStyle", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXuint)((FXTreeListBox const *)arg1)->getListStyle();
vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getNumItems(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getNumItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXint)((FXTreeListBox const *)arg1)->getNumItems();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getNumVisible(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getNumVisible", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXint)((FXTreeListBox const *)arg1)->getNumVisible();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getTipText(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","getTipText", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXString *) &((FXTreeListBox const *)arg1)->getTipText();
vresult = to_ruby(result->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_getWidthForHeight(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","getWidthForHeight", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
result = (FXint)FXTreeListBox_getWidthForHeight(arg1,arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_hide(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","hide", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_hide(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXTreeListBox_insertItem(int nargs, VALUE *args, VALUE self) {
int argc;
VALUE argv[8];
int ii;
argc = nargs + 1;
argv[0] = self;
if (argc > 8) SWIG_fail;
for (ii = 1; (ii < argc); ++ii) {
argv[ii] = args[ii-1];
}
if (argc == 4) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXTreeListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXTreeListBox_insertItem__SWIG_0(nargs, args, self);
}
}
}
}
}
if ((argc >= 4) && (argc <= 7)) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXTreeListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (NIL_P(argv[3]) || TYPE(argv[3]) == T_STRING) ? 1 : 0;
}
if (_v) {
if (argc <= 4) {
return _wrap_FXTreeListBox_insertItem__SWIG_1(nargs, args, self);
}
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 5) {
return _wrap_FXTreeListBox_insertItem__SWIG_1(nargs, args, self);
}
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[5], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 6) {
return _wrap_FXTreeListBox_insertItem__SWIG_1(nargs, args, self);
}
{
_v = 1;
}
if (_v) {
return _wrap_FXTreeListBox_insertItem__SWIG_1(nargs, args, self);
}
}
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 8, "insertItem",
" FXTreeItem insertItem(FXTreeItem *other, FXTreeItem *father, FXTreeItem *item)\n"
" FXTreeItem * insertItem(FXTreeItem *other, FXTreeItem *father, FXString const &text, FXIcon *oi, FXIcon *ci, void *ITEMDATA)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_isComposite(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","isComposite", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (bool)FXTreeListBox_isComposite((FXTreeListBox const *)arg1);
vresult = SWIG_From_bool(static_cast< bool >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_isItemCurrent(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","isItemCurrent", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem const *","isItemCurrent", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = (FXbool)((FXTreeListBox const *)arg1)->isItemCurrent((FXTreeItem const *)arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_isItemLeaf(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","isItemLeaf", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem const *","isItemLeaf", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = (FXbool)((FXTreeListBox const *)arg1)->isItemLeaf((FXTreeItem const *)arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_isPaneShown(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXbool result;
VALUE vresult = Qnil;
if ((argc < 0) || (argc > 0)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","isPaneShown", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
result = (FXbool)((FXTreeListBox const *)arg1)->isPaneShown();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeListBox.rb, line 170 def itemCurrent?(item); end
Return true if item is current
Source
# File rdoc-sources/FXTreeListBox.rb, line 173 def itemLeaf?(item); end
Return true if item is a leaf-item, i.e. has no children
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_killFocus(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","killFocus", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_killFocus(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_layout(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","layout", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_layout(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_load(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","load", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(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);
FXTreeListBox_load(arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_lower(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","lower", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_lower(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_move(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","move", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXTreeListBox_move(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_moveItem(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
FXTreeItem *arg3 = (FXTreeItem *) 0 ;
FXTreeItem *arg4 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
void *argp4 = 0 ;
int res4 = 0 ;
FXTreeItem *result = 0 ;
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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","moveItem", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","moveItem", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXTreeItem *","moveItem", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXTreeItem * >(argp3);
res4 = SWIG_ConvertPtr(argv[2], &argp4,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res4)) {
SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "FXTreeItem *","moveItem", 4, argv[2] ));
}
arg4 = reinterpret_cast< FXTreeItem * >(argp4);
result = (FXTreeItem *)(arg1)->moveItem(arg2,arg3,arg4);
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_onFieldButton(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","onFieldButton", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFieldButton", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onFieldButton(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_onFocusDown(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","onFocusDown", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFocusDown", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onFocusDown(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_onFocusSelf(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","onFocusSelf", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFocusSelf", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onFocusSelf(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_onFocusUp(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","onFocusUp", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onFocusUp", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onFocusUp(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_onMouseWheel(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","onMouseWheel", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXObject, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXObject *","onMouseWheel", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = to_FXEvent(argv[2]);
result = (long)(arg1)->onMouseWheel(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_onTreeChanged(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","onTreeChanged", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(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 *","onTreeChanged", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
SWIG_ConvertPtr(argv[2],&arg4,SWIGTYPE_p_FXTreeItem,1);
result = (long)(arg1)->onTreeChanged(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_onTreeClicked(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","onTreeClicked", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(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 *","onTreeClicked", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
SWIG_ConvertPtr(argv[2],&arg4,SWIGTYPE_p_FXTreeItem,1);
result = (long)(arg1)->onTreeClicked(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_onTreeUpdate(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","onTreeUpdate", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(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 *","onTreeUpdate", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXObject * >(argp2);
arg3 = NUM2UINT(argv[1]);
arg4 = 0;
result = (long)(arg1)->onTreeUpdate(arg2,arg3,arg4);
vresult = SWIG_From_long(static_cast< long >(result));
return vresult;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeListBox.rb, line 216 def paneShown?; end
Return true if the pane is shown.
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_position(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXint arg2 ;
FXint arg3 ;
FXint arg4 ;
FXint arg5 ;
void *argp1 = 0 ;
int res1 = 0 ;
if ((argc < 4) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
}
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","position", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
arg4 = NUM2INT(argv[2]);
arg5 = NUM2INT(argv[3]);
FXTreeListBox_position(arg1,arg2,arg3,arg4,arg5);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXTreeListBox_prependItem(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) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXTreeListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
return _wrap_FXTreeListBox_prependItem__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_FXTreeListBox, 0);
_v = SWIG_CheckState(res);
if (_v) {
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_FXTreeItem, 0);
_v = SWIG_CheckState(res);
if (_v) {
{
_v = (NIL_P(argv[2]) || TYPE(argv[2]) == T_STRING) ? 1 : 0;
}
if (_v) {
if (argc <= 3) {
return _wrap_FXTreeListBox_prependItem__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_FXTreeListBox_prependItem__SWIG_1(nargs, args, self);
}
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_FXIcon, 0);
_v = SWIG_CheckState(res);
if (_v) {
if (argc <= 5) {
return _wrap_FXTreeListBox_prependItem__SWIG_1(nargs, args, self);
}
{
_v = 1;
}
if (_v) {
return _wrap_FXTreeListBox_prependItem__SWIG_1(nargs, args, self);
}
}
}
}
}
}
}
fail:
Ruby_Format_OverloadedError( argc, 7, "prependItem",
" FXTreeItem prependItem(FXTreeItem *father, FXTreeItem *item)\n"
" FXTreeItem * prependItem(FXTreeItem *father, FXString const &text, FXIcon *oi, FXIcon *ci, void *ITEMDATA)\n");
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_raiseWindow(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","raise", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_raise(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_recalc(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","recalc", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_recalc(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_removeItem(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","removeItem", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","removeItem", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
FXTreeListBox_removeItem(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_removeItems(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
FXTreeItem *arg3 = (FXTreeItem *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","removeItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","removeItems", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXTreeItem *","removeItems", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXTreeItem * >(argp3);
FXTreeListBox_removeItems(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_reparent(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","reparent", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(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);
FXTreeListBox_reparent(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_resize(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","resize", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
arg3 = NUM2INT(argv[1]);
FXTreeListBox_resize(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_save(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","save", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(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);
FXTreeListBox_save((FXTreeListBox const *)arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setBackColor(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setBackColor", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = to_FXColor(argv[0]);
FXTreeListBox_setBackColor(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setCurrentItem(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
FXbool arg3 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setCurrentItem", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","setCurrentItem", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
FXTreeListBox_setCurrentItem(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setDefault(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setDefault", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
if (argc > 0) {
arg2 = to_FXbool(argv[0]);
}
FXTreeListBox_setDefault(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setFocus(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setFocus", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_setFocus(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setFont(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setFont", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(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_FXTreeListBox_setHelpText(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setHelpText", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
(arg1)->setHelpText((FXString const &)*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setItemClosedIcon(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
FXIcon *arg3 = (FXIcon *) 0 ;
FXbool arg4 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setItemClosedIcon", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","setItemClosedIcon", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
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 *","setItemClosedIcon", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXIcon * >(argp3);
if (argc > 2) {
arg4 = to_FXbool(argv[2]);
}
(arg1)->setItemClosedIcon(arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setItemData(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
VALUE arg3 = (VALUE) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setItemData", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","setItemData", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
arg3 = argv[1];
FXTreeListBox_setItemData(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setItemOpenIcon(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
FXIcon *arg3 = (FXIcon *) 0 ;
FXbool arg4 = (FXbool) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setItemOpenIcon", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","setItemOpenIcon", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
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 *","setItemOpenIcon", 3, argv[1] ));
}
arg3 = reinterpret_cast< FXIcon * >(argp3);
if (argc > 2) {
arg4 = to_FXbool(argv[2]);
}
(arg1)->setItemOpenIcon(arg2,arg3,arg4);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setItemText(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 0 ;
FXString *arg3 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setItemText", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","setItemText", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
p3 = to_FXString(argv[1]); arg3 = &p3;
(arg1)->setItemText(arg2,(FXString const &)*arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setListStyle(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setListStyle", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NUM2UINT(argv[0]);
(arg1)->setListStyle(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_setNumVisible(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setNumVisible", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NUM2INT(argv[0]);
(arg1)->setNumVisible(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE _wrap_FXTreeListBox_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_FXTreeListBox, 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_FXTreeListBox_setShape__SWIG_0(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXTreeListBox, 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_FXTreeListBox_setShape__SWIG_1(nargs, args, self);
}
}
}
if (argc == 2) {
int _v = 0;
void *vptr = 0;
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_FXTreeListBox, 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_FXTreeListBox_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_FXTreeListBox_setTipText(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","setTipText", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
(arg1)->setTipText((FXString const &)*arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_show(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","show", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
FXTreeListBox_show(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_sortChildItems(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 0 ;
FXTreeItem *arg2 = (FXTreeItem *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","sortChildItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeItem *","sortChildItems", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
(arg1)->sortChildItems(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_sortItems(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","sortItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
(arg1)->sortItems();
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_sortRootItems(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox *","sortRootItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
(arg1)->sortRootItems();
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeListBox_tr(int argc, VALUE *argv, VALUE self) {
FXTreeListBox *arg1 = (FXTreeListBox *) 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_FXTreeListBox, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeListBox const *","tr", 1, self ));
}
arg1 = reinterpret_cast< FXTreeListBox * >(argp1);
arg2 = NIL_P(argv[0]) ? 0 : StringValuePtr(argv[0]);
if (argc > 1) {
arg3 = NIL_P(argv[1]) ? 0 : StringValuePtr(argv[1]);
}
result = (FXchar *)FXTreeListBox_tr((FXTreeListBox const *)arg1,(char const *)arg2,(char const *)arg3);
vresult = SWIG_FromCharPtr((const char *)result);
return vresult;
fail:
return Qnil;
}