Class: GDChart::Annotation

Inherits:
Object
  • Object
show all
Defined in:
ext/gdchart.c

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

///////////////////////////////////////////////////////////////////////



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

#colorObject

#noteObject

#pointObject

Class Method Details

.newObject

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;
}