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