Class: XCB::SelectionNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::SelectionNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
- #property ⇒ Object
- #requestor ⇒ Object
- #selection ⇒ Object
- #target ⇒ Object
- #time ⇒ Object
- #visit(r_visitor) ⇒ Object
Class Method Details
.new(r_time, r_requestor, r_selection, r_target, r_property) ⇒ Object
2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 |
# File 'ext/xproto.c', line 2789
static VALUE
r_XCB_SelectionNotifyEvent_new(VALUE r_klass, VALUE r_time, VALUE r_requestor, VALUE r_selection, VALUE r_target, VALUE r_property)
{
xcb_selection_notify_event_t *self = malloc(sizeof(xcb_selection_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_SELECTION_NOTIFY;
self->sequence = 0;
self->time = FIX2INT(r_time);
self->requestor = FIX2INT(r_requestor);
self->selection = FIX2INT(r_selection);
self->target = FIX2INT(r_target);
self->property = FIX2INT(r_property);
return r_self;
}
|
Instance Method Details
#property ⇒ Object
1874 1875 1876 1877 1878 1879 1880 |
# File 'ext/xproto.c', line 1874
static VALUE
r_XCB_SelectionNotifyEvent_get_property(VALUE r_self)
{
xcb_selection_notify_event_t *event;
Data_Get_Struct(r_self, xcb_selection_notify_event_t, event);
return INT2FIX(event->property);
}
|
#requestor ⇒ Object
1853 1854 1855 1856 1857 1858 1859 |
# File 'ext/xproto.c', line 1853
static VALUE
r_XCB_SelectionNotifyEvent_get_requestor(VALUE r_self)
{
xcb_selection_notify_event_t *event;
Data_Get_Struct(r_self, xcb_selection_notify_event_t, event);
return INT2FIX(event->requestor);
}
|
#selection ⇒ Object
1860 1861 1862 1863 1864 1865 1866 |
# File 'ext/xproto.c', line 1860
static VALUE
r_XCB_SelectionNotifyEvent_get_selection(VALUE r_self)
{
xcb_selection_notify_event_t *event;
Data_Get_Struct(r_self, xcb_selection_notify_event_t, event);
return INT2FIX(event->selection);
}
|
#target ⇒ Object
1867 1868 1869 1870 1871 1872 1873 |
# File 'ext/xproto.c', line 1867
static VALUE
r_XCB_SelectionNotifyEvent_get_target(VALUE r_self)
{
xcb_selection_notify_event_t *event;
Data_Get_Struct(r_self, xcb_selection_notify_event_t, event);
return INT2FIX(event->target);
}
|
#time ⇒ Object
1846 1847 1848 1849 1850 1851 1852 |
# File 'ext/xproto.c', line 1846
static VALUE
r_XCB_SelectionNotifyEvent_get_time(VALUE r_self)
{
xcb_selection_notify_event_t *event;
Data_Get_Struct(r_self, xcb_selection_notify_event_t, event);
return INT2FIX(event->time);
}
|
#visit(r_visitor) ⇒ Object
2805 2806 2807 2808 2809 |
# File 'ext/xproto.c', line 2805
static VALUE
r_XCB_SelectionNotifyEvent_visit(VALUE r_self, VALUE r_visitor)
{
return rb_funcall(r_visitor, rb_intern("visit_selection_notify"), 1, r_self);
}
|