Class: Cairo::Rectangle
- Inherits:
-
Object
- Object
- Cairo::Rectangle
- Defined in:
- ext/cairo/rb_cairo_rectangle.c
Instance Method Summary collapse
- #height ⇒ Object
- #height= ⇒ Object
- #initialize ⇒ Object constructor
- #width ⇒ Object
- #width= ⇒ Object
- #x ⇒ Object
- #x= ⇒ Object
- #y ⇒ Object
- #y= ⇒ Object
Constructor Details
#initialize ⇒ Object
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;
}
|