class Newt::Label
Public Class Methods
new(p1, p2, p3)
click to toggle source
static VALUE rb_ext_Label_new(VALUE self, VALUE left, VALUE top, VALUE text)
{
newtComponent co;
INIT_GUARD();
co = newtLabel(NUM2INT(left), NUM2INT(top), StringValuePtr(text));
return Make_Widget(self, co);
}
Public Instance Methods
set_colors(p1)
click to toggle source
static VALUE rb_ext_Label_SetColors(VALUE self, VALUE colorset)
{
newtComponent co;
Get_newtComponent(self, co);
newtLabelSetColors(co, NUM2INT(colorset));
return Qnil;
}
set_text(p1)
click to toggle source
static VALUE rb_ext_Label_SetText(VALUE self, VALUE text)
{
newtComponent co;
Get_newtComponent(self, co);
newtLabelSetText(co, StringValuePtr(text));
return Qnil;
}