static VALUE rb_ext_Label_new(VALUE self, VALUE left, VALUE top, VALUE text) { newtComponent co; co = newtLabel(NUM2INT(left), NUM2INT(top), StringValuePtr(text)); return Data_Wrap_Struct(self, 0, 0, co); }
static VALUE rb_ext_Label_SetColors(VALUE self, VALUE colorset) { newtComponent co; Data_Get_Struct(self, struct newtComponent_struct, co); newtLabelSetColors(co, NUM2INT(colorset)); return Qnil; }
static VALUE rb_ext_Label_SetText(VALUE self, VALUE text) { newtComponent co; Data_Get_Struct(self, struct newtComponent_struct, co); newtLabelSetText(co, StringValuePtr(text)); return Qnil; }