class Fox::FXTreeItem
Each item in an FXTreeList is an instance of FXTreeItem.
A tree item can contain zero or more child items, and those items are arranged as a linked list. The {FXTreeItem#first} method returns the a reference to the first child item, if any, and the {FXTreeItem#last} method returns a reference to the last child item.
Public Class Methods
Source
SWIGINTERN VALUE
_wrap_new_FXTreeItem(int argc, VALUE *argv, VALUE self) {
FXString *arg1 = 0 ;
FXIcon *arg2 = (FXIcon *) 0 ;
FXIcon *arg3 = (FXIcon *) 0 ;
void *arg4 = (void *) 0 ;
SwigValueWrapper< FXString > p1 ;
void *argp2 = 0 ;
int res2 = 0 ;
void *argp3 = 0 ;
int res3 = 0 ;
FXTreeItem *result = 0 ;
if ((argc < 1) || (argc > 4)) {
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
}
p1 = to_FXString(argv[0]); arg1 = &p1;
if (argc > 1) {
res2 = SWIG_ConvertPtr(argv[1], &argp2,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon *","FXTreeItem", 2, argv[1] ));
}
arg2 = reinterpret_cast< FXIcon * >(argp2);
}
if (argc > 2) {
res3 = SWIG_ConvertPtr(argv[2], &argp3,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res3)) {
SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "FXIcon *","FXTreeItem", 3, argv[2] ));
}
arg3 = reinterpret_cast< FXIcon * >(argp3);
}
if (argc > 3) {
arg4 = (argv[3] == Qnil) ? NULL : (void *) argv[3];
}
{
result = (FXTreeItem *)new_FXTreeItem((FXString const &)*arg1,arg2,arg3,arg4);
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 2568 def initialize(text, *args, &blk) argument_names = %w{openIcon closedIcon data} default_params = { :openIcon => nil, :closedIcon => nil, :data => nil } 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(text, params[:openIcon], params[:closedIcon], params[:data], &blk) end
Public Instance Methods
Source
# File lib/fox16/core.rb, line 16 def <=>(otherItem) text <=> otherItem.text end
Source
# File rdoc-sources/FXTreeList.rb, line 120 def above; end
Return a reference to the item that is “logically” above this item.
Source
# File rdoc-sources/FXTreeList.rb, line 117 def below; end
Return a reference to the item that is “logically” below this item.
Source
# File rdoc-sources/FXTreeList.rb, line 125 def childOf?(item); end
Return true if this item is a descendant of item.
Source
# File rdoc-sources/FXTreeList.rb, line 38 def closedIcon; end
Return a reference to the closed-state icon (an FXIcon instance) for this tree item, or nil if none was specified.
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_create(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","create", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
FXTreeItem_create(arg1);
return Qnil;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeList.rb, line 46 def data; end
Return a reference to the user data for this tree item, or nil if no user data has been associated with this tree item.
Source
# File rdoc-sources/FXTreeList.rb, line 50 def data=(dt); end
Set the user data (a reference to any kind of object) for this tree item, or nil if no user data needs to be associated with this item.
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_destroy(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","destroy", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
FXTreeItem_destroy(arg1);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_detach(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","detach", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
FXTreeItem_detach(arg1);
return Qnil;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeList.rb, line 83 def draggable=(dr); end
Set this item’s “draggable” state to true or false.
Source
# File rdoc-sources/FXTreeList.rb, line 86 def draggable? ; end
Returns true if this item is draggable
Source
# File lib/fox16/iterators.rb, line 201 def each # :yields: aTreeItem current = first while current != nil next_current = current.next yield current current = next_current end self end
Calls block once for each child of this tree item, passing a reference to that child item as a parameter.
Source
# File rdoc-sources/FXTreeList.rb, line 77 def enabled=(en); end
Set this item’s enabled state to true or false.
Source
# File rdoc-sources/FXTreeList.rb, line 80 def enabled? ; end
Returns true if this item is enabled
Source
# File rdoc-sources/FXTreeList.rb, line 71 def expanded=(ex); end
Set this item’s expanded state to true or false.
Source
# File rdoc-sources/FXTreeList.rb, line 74 def expanded? ; end
Returns true if this item is expanded
Source
# File rdoc-sources/FXTreeList.rb, line 100 def first; end
Return a reference to the first child item for this tree item, or nil if this tree item has no child items.
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getAbove(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getAbove", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXTreeItem *)((FXTreeItem const *)arg1)->getAbove();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getBelow(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getBelow", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXTreeItem *)((FXTreeItem const *)arg1)->getBelow();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getClosedIcon(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXIcon *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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getClosedIcon", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXIcon *)((FXTreeItem const *)arg1)->getClosedIcon();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getData(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
VALUE 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getData", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (VALUE)FXTreeItem_getData((FXTreeItem const *)arg1);
vresult = result;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getFirst(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getFirst", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXTreeItem *)((FXTreeItem const *)arg1)->getFirst();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getHeight(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXTreeList *arg2 = (FXTreeList *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getHeight", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeList, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeList const *","getHeight", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeList * >(argp2);
result = (FXint)FXTreeItem_getHeight((FXTreeItem const *)arg1,(FXTreeList const *)arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getLast(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getLast", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXTreeItem *)((FXTreeItem const *)arg1)->getLast();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getNext(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getNext", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXTreeItem *)((FXTreeItem const *)arg1)->getNext();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getNumChildren(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getNumChildren", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXint)((FXTreeItem const *)arg1)->getNumChildren();
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getOpenIcon(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
FXIcon *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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getOpenIcon", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXIcon *)((FXTreeItem const *)arg1)->getOpenIcon();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXIcon, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getParent(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getParent", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXTreeItem *)((FXTreeItem const *)arg1)->getParent();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getPrev(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getPrev", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXTreeItem *)((FXTreeItem const *)arg1)->getPrev();
{
swig_type_info *ty = SWIG_TypeDynamicCast(SWIGTYPE_p_FXTreeItem, (void **) &result);
vresult = FXRbGetRubyObj(result, ty);
}
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getText(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getText", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXString *) &((FXTreeItem const *)arg1)->getText();
vresult = to_ruby(result->text());
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_getWidth(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXTreeList *arg2 = (FXTreeList *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
void *argp2 = 0 ;
int res2 = 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","getWidth", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXTreeList, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXTreeList const *","getWidth", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeList * >(argp2);
result = (FXint)FXTreeItem_getWidth((FXTreeItem const *)arg1,(FXTreeList const *)arg2);
vresult = SWIG_From_int(static_cast< int >(result));
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_hasFocus(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","hasFocus", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXbool)((FXTreeItem const *)arg1)->hasFocus();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeList.rb, line 56 def hasFocus? ; end
Returns true if this item has the focus
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_hasItemse___(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXbool 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setHasItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
arg2 = to_FXbool(argv[0]);
(arg1)->setHasItems(arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_hasItemsq___(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","hasItems", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXbool)((FXTreeItem const *)arg1)->hasItems();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_isChildOf(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","isChildOf", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(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 *","isChildOf", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = (FXbool)((FXTreeItem const *)arg1)->isChildOf((FXTreeItem const *)arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_isDraggable(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","isDraggable", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXbool)((FXTreeItem const *)arg1)->isDraggable();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_isEnabled(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","isEnabled", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXbool)((FXTreeItem const *)arg1)->isEnabled();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_isExpanded(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","isExpanded", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXbool)((FXTreeItem const *)arg1)->isExpanded();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_isOpened(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","isOpened", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXbool)((FXTreeItem const *)arg1)->isOpened();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_isParentOf(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","isParentOf", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(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 *","isParentOf", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXTreeItem * >(argp2);
result = (FXbool)((FXTreeItem const *)arg1)->isParentOf((FXTreeItem const *)arg2);
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_isSelected(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","isSelected", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
result = (FXbool)((FXTreeItem const *)arg1)->isSelected();
vresult = result ? Qtrue : Qfalse;
return vresult;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeList.rb, line 104 def last; end
Return a reference to the last child item for this tree item, or nil if this tree item has no child items.
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_load(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","load", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(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);
FXTreeItem_load(arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeList.rb, line 109 def next; end
Return a reference to the next sibling item for this tree item, or nil if this is the last item in the parent item’s list of child items.
Source
# File rdoc-sources/FXTreeList.rb, line 20 def numChildren; end
Return the number of child items for this tree item.
Source
# File rdoc-sources/FXTreeList.rb, line 30 def openIcon; end
Return a reference to the opened-state icon (an FXIcon instance) for this tree item, or nil if none was specified.
Source
# File rdoc-sources/FXTreeList.rb, line 65 def opened=(op); end
Set this item’s “opened” state to true or false.
Source
# File rdoc-sources/FXTreeList.rb, line 68 def opened? ; end
Returns true if this item is opened
Source
# File rdoc-sources/FXTreeList.rb, line 96 def parent; end
Return a reference to the parent item for this tree item, or nil if this is a root-level item.
Source
# File rdoc-sources/FXTreeList.rb, line 130 def parentOf?(item); end
Return true if this item is an ancestor of item.
Source
# File rdoc-sources/FXTreeList.rb, line 114 def prev; end
Return a reference to the previous sibling item for this tree item, or nil if this is the first item in the parent item’s list of child items.
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_save(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem const *","save", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(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);
FXTreeItem_save((FXTreeItem const *)arg1,*arg2);
return Qnil;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeList.rb, line 59 def selected=(sel); end
Set this item’s selected state to true or false.
Source
# File rdoc-sources/FXTreeList.rb, line 62 def selected? ; end
Returns true if this item is selected
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setClosedIcon(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXIcon *arg2 = (FXIcon *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setClosedIcon", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon *","setClosedIcon", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXIcon * >(argp2);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
FXTreeItem_setClosedIcon(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setData(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
VALUE arg2 = (VALUE) 0 ;
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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setData", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
arg2 = argv[0];
FXTreeItem_setData(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setDraggable(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXbool 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setDraggable", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
arg2 = to_FXbool(argv[0]);
FXTreeItem_setDraggable(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setEnabled(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXbool 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setEnabled", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
arg2 = to_FXbool(argv[0]);
FXTreeItem_setEnabled(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setExpanded(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXbool 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setExpanded", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
arg2 = to_FXbool(argv[0]);
FXTreeItem_setExpanded(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setFocus(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXbool 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setFocus", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
arg2 = to_FXbool(argv[0]);
FXTreeItem_setFocus(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setOpenIcon(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXIcon *arg2 = (FXIcon *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setOpenIcon", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_FXIcon, 0 | 0 );
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "FXIcon *","setOpenIcon", 2, argv[0] ));
}
arg2 = reinterpret_cast< FXIcon * >(argp2);
if (argc > 1) {
arg3 = to_FXbool(argv[1]);
}
FXTreeItem_setOpenIcon(arg1,arg2,arg3);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setOpened(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXbool 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setOpened", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
arg2 = to_FXbool(argv[0]);
FXTreeItem_setOpened(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setSelected(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 0 ;
FXbool 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setSelected", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
arg2 = to_FXbool(argv[0]);
FXTreeItem_setSelected(arg1,arg2);
return Qnil;
fail:
return Qnil;
}
Source
SWIGINTERN VALUE
_wrap_FXTreeItem_setText(int argc, VALUE *argv, VALUE self) {
FXTreeItem *arg1 = (FXTreeItem *) 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_FXTreeItem, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "FXTreeItem *","setText", 1, self ));
}
arg1 = reinterpret_cast< FXTreeItem * >(argp1);
p2 = to_FXString(argv[0]); arg2 = &p2;
FXTreeItem_setText(arg1,(FXString const &)*arg2);
return Qnil;
fail:
return Qnil;
}
Source
# File rdoc-sources/FXTreeList.rb, line 23 def text; end
Return the item text (a string) for this tree item.
Source
# File rdoc-sources/FXTreeList.rb, line 26 def text=(txt); end
Set the item text for this tree item.
Source
# File rdoc-sources/FXTreeList.rb, line 133 def to_s text end
Returns the item’s text