static VALUE rb_ext_Scale_new(VALUE self, VALUE left, VALUE top, VALUE width, VALUE fullValue) { newtComponent co; co = newtScale(NUM2INT(left), NUM2INT(top), NUM2INT(width), NUM2INT(fullValue)); return Data_Wrap_Struct(self, 0, 0, co); }
static VALUE rb_ext_Scale_Set(VALUE self, VALUE amount) { newtComponent co; Data_Get_Struct(self, struct newtComponent_struct, co); newtScaleSet(co, NUM2INT(amount)); return Qnil; }