Class: XCB::ReparentNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::ReparentNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
- #event ⇒ Object
- #override_redirect ⇒ Object
- #parent ⇒ Object
- #visit(r_visitor) ⇒ Object
- #window ⇒ Object
- #x ⇒ Object
- #y ⇒ Object
Class Method Details
.new(r_event, r_window, r_parent, r_x, r_y, r_override_redirect) ⇒ Object
2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 |
# File 'ext/xproto.c', line 2597 static VALUE r_XCB_ReparentNotifyEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window, VALUE r_parent, VALUE r_x, VALUE r_y, VALUE r_override_redirect) { xcb_reparent_notify_event_t *self = malloc(sizeof(xcb_reparent_notify_event_t)); if (self == NULL) rb_raise(rb_eNoMemError, "NoMemoryError"); VALUE r_self = Data_Wrap_Struct(r_klass, NULL, NULL, self); self->response_type = XCB_REPARENT_NOTIFY; self->sequence = 0; self->event = FIX2INT(r_event); self->window = FIX2INT(r_window); self->parent = FIX2INT(r_parent); self->x = FIX2INT(r_x); self->y = FIX2INT(r_y); self->override_redirect = RTEST(r_override_redirect); return r_self; } |
Instance Method Details
#event ⇒ Object
1510 1511 1512 1513 1514 1515 1516 |
# File 'ext/xproto.c', line 1510 static VALUE r_XCB_ReparentNotifyEvent_get_event(VALUE r_self) { xcb_reparent_notify_event_t *event; Data_Get_Struct(r_self, xcb_reparent_notify_event_t, event); return INT2FIX(event->event); } |
#override_redirect ⇒ Object
1545 1546 1547 1548 1549 1550 1551 |
# File 'ext/xproto.c', line 1545 static VALUE r_XCB_ReparentNotifyEvent_get_override_redirect(VALUE r_self) { xcb_reparent_notify_event_t *event; Data_Get_Struct(r_self, xcb_reparent_notify_event_t, event); return event->override_redirect ? Qtrue : Qfalse; } |
#parent ⇒ Object
1524 1525 1526 1527 1528 1529 1530 |
# File 'ext/xproto.c', line 1524 static VALUE r_XCB_ReparentNotifyEvent_get_parent(VALUE r_self) { xcb_reparent_notify_event_t *event; Data_Get_Struct(r_self, xcb_reparent_notify_event_t, event); return INT2FIX(event->parent); } |
#visit(r_visitor) ⇒ Object
2614 2615 2616 2617 2618 |
# File 'ext/xproto.c', line 2614 static VALUE r_XCB_ReparentNotifyEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_reparent_notify"), 1, r_self); } |
#window ⇒ Object
1517 1518 1519 1520 1521 1522 1523 |
# File 'ext/xproto.c', line 1517 static VALUE r_XCB_ReparentNotifyEvent_get_window(VALUE r_self) { xcb_reparent_notify_event_t *event; Data_Get_Struct(r_self, xcb_reparent_notify_event_t, event); return INT2FIX(event->window); } |
#x ⇒ Object
1531 1532 1533 1534 1535 1536 1537 |
# File 'ext/xproto.c', line 1531 static VALUE r_XCB_ReparentNotifyEvent_get_x(VALUE r_self) { xcb_reparent_notify_event_t *event; Data_Get_Struct(r_self, xcb_reparent_notify_event_t, event); return INT2FIX(event->x); } |
#y ⇒ Object
1538 1539 1540 1541 1542 1543 1544 |
# File 'ext/xproto.c', line 1538 static VALUE r_XCB_ReparentNotifyEvent_get_y(VALUE r_self) { xcb_reparent_notify_event_t *event; Data_Get_Struct(r_self, xcb_reparent_notify_event_t, event); return INT2FIX(event->y); } |