Class: Cairo::Rectangle

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

Instance Method Summary collapse

Constructor Details

#initializeObject



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'ext/cairo/rb_cairo_rectangle.c', line 24

static VALUE
cr_rectangle_initialize (VALUE self, VALUE x, VALUE y,
                         VALUE width, VALUE height)
{
  cairo_rectangle_int_t *rectangle;

  rectangle = ALLOC (cairo_rectangle_int_t);
  DATA_PTR (self) = rectangle;

  rectangle->x = NUM2INT (x);
  rectangle->y = NUM2INT (y);
  rectangle->width = NUM2INT (width);
  rectangle->height = NUM2INT (height);

  return Qnil;
}

Instance Method Details

#heightObject

#height=Object

#widthObject

#width=Object

#xObject

#x=Object

#yObject

#y=Object