Class: GDChart::Annotation
- Inherits:
-
Object
- Object
- GDChart::Annotation
- Defined in:
- ext/gdchart.c
Instance Attribute Summary collapse
Class Method Summary collapse
-
.new ⇒ Object
GDC_ANNOTATION_T structure class definition.
Instance Method Summary collapse
-
#initialize ⇒ Object
constructor
///////////////////////////////////////////////////////////////////////.
Constructor Details
#initialize ⇒ Object
///////////////////////////////////////////////////////////////////////
102 103 104 105 106 107 108 |
# File 'ext/gdchart.c', line 102
static VALUE gdc_annotation_init(VALUE obj)
{
rb_iv_set(obj, "@point", rb_float_new(0.0));
rb_iv_set(obj, "@color", INT2FIX(0));
rb_iv_set(obj, "@note", rb_str_new2(""));
return obj;
}
|
Instance Attribute Details
#color ⇒ Object
#note ⇒ Object
#point ⇒ Object
Class Method Details
.new ⇒ Object
GDC_ANNOTATION_T structure class definition
92 93 94 95 96 97 98 |
# File 'ext/gdchart.c', line 92
static VALUE gdc_annotation_new(VALUE klass)
{
VALUE obj;
obj = rb_obj_alloc(klass);
return obj;
}
|