Class: Cairo::PathMoveTo
Instance Method Summary collapse
- #initialize ⇒ Object constructor
Methods inherited from PathData
#close_path?, #curve_to?, #each, #line_to?, #move_to?, #to_a
Constructor Details
#initialize ⇒ Object
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'ext/cairo/rb_cairo_path.c', line 138
static VALUE
cr_path_move_to_initialize (int argc, VALUE *argv, VALUE self)
{
VALUE point, x, y;
VALUE super_argv[2];
rb_scan_args (argc, argv, "11", &x, &y);
if (argc == 1)
point = x;
else
point = cr_point_new (x, y);
super_argv[0] = INT2NUM (CAIRO_PATH_MOVE_TO);
super_argv[1] = rb_ary_new3 (1, point);
rb_call_super (2, super_argv);
return Qnil;
}
|