Class: XCB::ConfigureNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::ConfigureNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
- #above_sibling ⇒ Object
- #border_width ⇒ Object
- #event ⇒ Object
- #height ⇒ Object
- #override_redirect ⇒ Object
- #visit(r_visitor) ⇒ Object
- #width ⇒ Object
- #window ⇒ Object
- #x ⇒ Object
- #y ⇒ Object
Class Method Details
.new(r_event, r_window, r_above_sibling, r_x, r_y, r_width, r_height, r_border_width, r_override_redirect) ⇒ Object
2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 |
# File 'ext/xproto.c', line 2619 static VALUE r_XCB_ConfigureNotifyEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window, VALUE r_above_sibling, VALUE r_x, VALUE r_y, VALUE r_width, VALUE r_height, VALUE r_border_width, VALUE r_override_redirect) { xcb_configure_notify_event_t *self = malloc(sizeof(xcb_configure_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_CONFIGURE_NOTIFY; self->sequence = 0; self->event = FIX2INT(r_event); self->window = FIX2INT(r_window); self->above_sibling = FIX2INT(r_above_sibling); self->x = FIX2INT(r_x); self->y = FIX2INT(r_y); self->width = FIX2INT(r_width); self->height = FIX2INT(r_height); self->border_width = FIX2INT(r_border_width); self->override_redirect = RTEST(r_override_redirect); return r_self; } |
Instance Method Details
#above_sibling ⇒ Object
1566 1567 1568 1569 1570 1571 1572 |
# File 'ext/xproto.c', line 1566 static VALUE r_XCB_ConfigureNotifyEvent_get_above_sibling(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return INT2FIX(event->above_sibling); } |
#border_width ⇒ Object
1601 1602 1603 1604 1605 1606 1607 |
# File 'ext/xproto.c', line 1601 static VALUE r_XCB_ConfigureNotifyEvent_get_border_width(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return INT2FIX(event->border_width); } |
#event ⇒ Object
1552 1553 1554 1555 1556 1557 1558 |
# File 'ext/xproto.c', line 1552 static VALUE r_XCB_ConfigureNotifyEvent_get_event(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return INT2FIX(event->event); } |
#height ⇒ Object
1594 1595 1596 1597 1598 1599 1600 |
# File 'ext/xproto.c', line 1594 static VALUE r_XCB_ConfigureNotifyEvent_get_height(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return INT2FIX(event->height); } |
#override_redirect ⇒ Object
1608 1609 1610 1611 1612 1613 1614 |
# File 'ext/xproto.c', line 1608 static VALUE r_XCB_ConfigureNotifyEvent_get_override_redirect(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return event->override_redirect ? Qtrue : Qfalse; } |
#visit(r_visitor) ⇒ Object
2639 2640 2641 2642 2643 |
# File 'ext/xproto.c', line 2639 static VALUE r_XCB_ConfigureNotifyEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_configure_notify"), 1, r_self); } |
#width ⇒ Object
1587 1588 1589 1590 1591 1592 1593 |
# File 'ext/xproto.c', line 1587 static VALUE r_XCB_ConfigureNotifyEvent_get_width(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return INT2FIX(event->width); } |
#window ⇒ Object
1559 1560 1561 1562 1563 1564 1565 |
# File 'ext/xproto.c', line 1559 static VALUE r_XCB_ConfigureNotifyEvent_get_window(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return INT2FIX(event->window); } |
#x ⇒ Object
1573 1574 1575 1576 1577 1578 1579 |
# File 'ext/xproto.c', line 1573 static VALUE r_XCB_ConfigureNotifyEvent_get_x(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return INT2FIX(event->x); } |
#y ⇒ Object
1580 1581 1582 1583 1584 1585 1586 |
# File 'ext/xproto.c', line 1580 static VALUE r_XCB_ConfigureNotifyEvent_get_y(VALUE r_self) { xcb_configure_notify_event_t *event; Data_Get_Struct(r_self, xcb_configure_notify_event_t, event); return INT2FIX(event->y); } |