static VALUE rb_ext_Textbox_new(VALUE self, VALUE left, VALUE top, VALUE width, VALUE height, VALUE flags) { newtComponent co; co = newtTextbox(NUM2INT(left), NUM2INT(top), NUM2INT(width), NUM2INT(height), NUM2INT(flags)); return Data_Wrap_Struct(self, 0, 0, co); }
static VALUE rb_ext_Textbox_GetNumLines(VALUE self) { newtComponent co; Data_Get_Struct(self, struct newtComponent_struct, co); return INT2NUM(newtTextboxGetNumLines(co)); }
static VALUE rb_ext_Textbox_SetHeight(VALUE self, VALUE height) { newtComponent co; Data_Get_Struct(self, struct newtComponent_struct, co); newtTextboxSetHeight(co, NUM2INT(height)); return Qnil; }
static VALUE rb_ext_Textbox_SetText(VALUE self, VALUE text) { newtComponent co; Data_Get_Struct(self, struct newtComponent_struct, co); newtTextboxSetText(co, StringValuePtr(text)); return Qnil; }