Class: XCB::FocusInEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::FocusInEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_detail, r_event, r_mode) ⇒ Object
2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 |
# File 'ext/xproto.c', line 2377 static VALUE r_XCB_FocusInEvent_new(VALUE r_klass, VALUE r_detail, VALUE r_event, VALUE r_mode) { xcb_focus_in_event_t *self = malloc(sizeof(xcb_focus_in_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_FOCUS_IN; self->sequence = 0; self->detail = FIX2INT(r_detail); self->event = FIX2INT(r_event); self->mode = FIX2INT(r_mode); return r_self; } |
Instance Method Details
#detail ⇒ Object
1217 1218 1219 1220 1221 1222 1223 |
# File 'ext/xproto.c', line 1217 static VALUE r_XCB_FocusInEvent_get_detail(VALUE r_self) { xcb_focus_in_event_t *event; Data_Get_Struct(r_self, xcb_focus_in_event_t, event); return INT2FIX(event->detail); } |
#event ⇒ Object
1224 1225 1226 1227 1228 1229 1230 |
# File 'ext/xproto.c', line 1224 static VALUE r_XCB_FocusInEvent_get_event(VALUE r_self) { xcb_focus_in_event_t *event; Data_Get_Struct(r_self, xcb_focus_in_event_t, event); return INT2FIX(event->event); } |
#mode ⇒ Object
1231 1232 1233 1234 1235 1236 1237 |
# File 'ext/xproto.c', line 1231 static VALUE r_XCB_FocusInEvent_get_mode(VALUE r_self) { xcb_focus_in_event_t *event; Data_Get_Struct(r_self, xcb_focus_in_event_t, event); return INT2FIX(event->mode); } |
#visit(r_visitor) ⇒ Object
2391 2392 2393 2394 2395 |
# File 'ext/xproto.c', line 2391 static VALUE r_XCB_FocusInEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_focus_in"), 1, r_self); } |