Class: Newt::TextboxReflowed

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

Class Method Summary collapse

Methods inherited from Textbox

#get_num_lines, #set_colors, #set_height, #set_text

Methods inherited from Widget

#==, #callback, #get_position, #get_size, #inspect, #takes_focus

Class Method Details

.new(*args) ⇒ Object



1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
# File 'ext/ruby_newt/ruby_newt.c', line 1384

static VALUE rb_ext_TextboxReflowed_new(int argc, VALUE *argv, VALUE self)
{
  newtComponent co;
  int flags;

  if (argc < 6 || argc > 7)
    ARG_ERROR(argc, "6..7");

  INIT_GUARD();
  flags = (argc == 7) ? NUM2INT(argv[6]) : 0;

  co = newtTextboxReflowed(NUM2INT(argv[0]), NUM2INT(argv[1]),
                           StringValuePtr(argv[2]), NUM2INT(argv[3]),
                           NUM2INT(argv[4]), NUM2INT(argv[5]), flags);

  return Make_Widget(self, co);
}