Class: Cairo::Rectangle

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

Instance Method Summary collapse

Constructor Details

#initializeObject



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'ext/cairo/rb_cairo_rectangle.c', line 35

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);
  RTYPEDDATA_DATA (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