Class: Newt::CheckboxTreeMulti

Inherits:
CheckboxTree show all
Defined in:
ext/ruby_newt/ruby_newt.c

Class Method Summary collapse

Methods inherited from CheckboxTree

#add

Methods inherited from Widget

#==, #callback, #takesFocus

Class Method Details

.new(left, top, height, seq, flags) ⇒ Object



767
768
769
770
771
772
773
774
775
776
777
# File 'ext/ruby_newt/ruby_newt.c', line 767

static VALUE rb_ext_CheckboxTreeMulti_new(VALUE self, VALUE left, VALUE top, VALUE height, VALUE seq, VALUE flags)
{
  newtComponent co;

  if (NIL_P(seq)) {
    co = newtCheckboxTreeMulti(NUM2INT(left), NUM2INT(top), NUM2INT(height), NULL, NUM2INT(flags));
  } else {
    co = newtCheckboxTreeMulti(NUM2INT(left), NUM2INT(top), NUM2INT(height), StringValuePtr(seq), NUM2INT(flags));
  }
  return Data_Wrap_Struct(self, 0, 0, co);
}