Class: XCB::FocusOutEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::FocusOutEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_detail, r_event, r_mode) ⇒ Object
2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 |
# File 'ext/xproto.c', line 2992
static VALUE
r_XCB_FocusOutEvent_new(VALUE r_klass, VALUE r_detail, VALUE r_event, VALUE r_mode)
{
xcb_focus_out_event_t *self = malloc(sizeof(xcb_focus_out_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_OUT;
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
2226 2227 2228 2229 2230 2231 2232 |
# File 'ext/xproto.c', line 2226
static VALUE
r_XCB_FocusOutEvent_get_detail(VALUE r_self)
{
xcb_focus_out_event_t *event;
Data_Get_Struct(r_self, xcb_focus_out_event_t, event);
return INT2FIX(event->detail);
}
|
#event ⇒ Object
2233 2234 2235 2236 2237 2238 2239 |
# File 'ext/xproto.c', line 2233
static VALUE
r_XCB_FocusOutEvent_get_event(VALUE r_self)
{
xcb_focus_out_event_t *event;
Data_Get_Struct(r_self, xcb_focus_out_event_t, event);
return INT2FIX(event->event);
}
|
#mode ⇒ Object
2240 2241 2242 2243 2244 2245 2246 |
# File 'ext/xproto.c', line 2240
static VALUE
r_XCB_FocusOutEvent_get_mode(VALUE r_self)
{
xcb_focus_out_event_t *event;
Data_Get_Struct(r_self, xcb_focus_out_event_t, event);
return INT2FIX(event->mode);
}
|
#visit(r_visitor) ⇒ Object
3006 3007 3008 3009 3010 |
# File 'ext/xproto.c', line 3006
static VALUE
r_XCB_FocusOutEvent_visit(VALUE r_self, VALUE r_visitor)
{
return rb_funcall(r_visitor, rb_intern("visit_focus_out"), 1, r_self);
}
|