Class: XCB::SelectionClearEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::SelectionClearEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_time, r_owner, r_selection) ⇒ Object
2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 |
# File 'ext/xproto.c', line 2748 static VALUE r_XCB_SelectionClearEvent_new(VALUE r_klass, VALUE r_time, VALUE r_owner, VALUE r_selection) { xcb_selection_clear_event_t *self = malloc(sizeof(xcb_selection_clear_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_SELECTION_CLEAR; self->sequence = 0; self->time = FIX2INT(r_time); self->owner = FIX2INT(r_owner); self->selection = FIX2INT(r_selection); return r_self; } |
Instance Method Details
#owner ⇒ Object
1790 1791 1792 1793 1794 1795 1796 |
# File 'ext/xproto.c', line 1790 static VALUE r_XCB_SelectionClearEvent_get_owner(VALUE r_self) { xcb_selection_clear_event_t *event; Data_Get_Struct(r_self, xcb_selection_clear_event_t, event); return INT2FIX(event->owner); } |
#selection ⇒ Object
1797 1798 1799 1800 1801 1802 1803 |
# File 'ext/xproto.c', line 1797 static VALUE r_XCB_SelectionClearEvent_get_selection(VALUE r_self) { xcb_selection_clear_event_t *event; Data_Get_Struct(r_self, xcb_selection_clear_event_t, event); return INT2FIX(event->selection); } |
#time ⇒ Object
1783 1784 1785 1786 1787 1788 1789 |
# File 'ext/xproto.c', line 1783 static VALUE r_XCB_SelectionClearEvent_get_time(VALUE r_self) { xcb_selection_clear_event_t *event; Data_Get_Struct(r_self, xcb_selection_clear_event_t, event); return INT2FIX(event->time); } |
#visit(r_visitor) ⇒ Object
2762 2763 2764 2765 2766 |
# File 'ext/xproto.c', line 2762 static VALUE r_XCB_SelectionClearEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_selection_clear"), 1, r_self); } |