Class: XCB::MappingNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::MappingNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_request, r_first_keycode, r_count) ⇒ Object
2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 |
# File 'ext/xproto.c', line 2875
static VALUE
r_XCB_MappingNotifyEvent_new(VALUE r_klass, VALUE r_request, VALUE r_first_keycode, VALUE r_count)
{
xcb_mapping_notify_event_t *self = malloc(sizeof(xcb_mapping_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_MAPPING_NOTIFY;
self->sequence = 0;
self->request = FIX2INT(r_request);
self->first_keycode = FIX2INT(r_first_keycode);
self->count = FIX2INT(r_count);
return r_self;
}
|
Instance Method Details
#count ⇒ Object
1981 1982 1983 1984 1985 1986 1987 |
# File 'ext/xproto.c', line 1981
static VALUE
r_XCB_MappingNotifyEvent_get_count(VALUE r_self)
{
xcb_mapping_notify_event_t *event;
Data_Get_Struct(r_self, xcb_mapping_notify_event_t, event);
return INT2FIX(event->count);
}
|
#first_keycode ⇒ Object
1974 1975 1976 1977 1978 1979 1980 |
# File 'ext/xproto.c', line 1974
static VALUE
r_XCB_MappingNotifyEvent_get_first_keycode(VALUE r_self)
{
xcb_mapping_notify_event_t *event;
Data_Get_Struct(r_self, xcb_mapping_notify_event_t, event);
return INT2FIX(event->first_keycode);
}
|
#request ⇒ Object
1967 1968 1969 1970 1971 1972 1973 |
# File 'ext/xproto.c', line 1967
static VALUE
r_XCB_MappingNotifyEvent_get_request(VALUE r_self)
{
xcb_mapping_notify_event_t *event;
Data_Get_Struct(r_self, xcb_mapping_notify_event_t, event);
return INT2FIX(event->request);
}
|
#visit(r_visitor) ⇒ Object
2889 2890 2891 2892 2893 |
# File 'ext/xproto.c', line 2889
static VALUE
r_XCB_MappingNotifyEvent_visit(VALUE r_self, VALUE r_visitor)
{
return rb_funcall(r_visitor, rb_intern("visit_mapping_notify"), 1, r_self);
}
|