Class: Newt::Label
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Widget
#==, #callback, #takesFocus
Class Method Details
.new(left, top, text) ⇒ Object
552
553
554
555
556
557
558
|
# File 'ext/ruby_newt/ruby_newt.c', line 552
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);
}
|
Instance Method Details
#set_colors(colorset) ⇒ Object
569
570
571
572
573
574
575
576
|
# File 'ext/ruby_newt/ruby_newt.c', line 569
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;
}
|
#set_text(text) ⇒ Object
560
561
562
563
564
565
566
567
|
# File 'ext/ruby_newt/ruby_newt.c', line 560
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;
}
|