Class: XCB::LeaveNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::LeaveNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
- #child ⇒ Object
- #detail ⇒ Object
- #event ⇒ Object
- #event_x ⇒ Object
- #event_y ⇒ Object
- #mode ⇒ Object
- #root ⇒ Object
- #root_x ⇒ Object
- #root_y ⇒ Object
- #same_screen_focus ⇒ Object
- #state ⇒ Object
- #time ⇒ Object
- #visit(r_visitor) ⇒ Object
Class Method Details
.new(r_detail, r_time, r_root, r_event, r_child, r_root_x, r_root_y, r_event_x, r_event_y, r_state, r_mode, r_same_screen_focus) ⇒ Object
2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 |
# File 'ext/xproto.c', line 2964 static VALUE r_XCB_LeaveNotifyEvent_new(VALUE r_klass, VALUE r_detail, VALUE r_time, VALUE r_root, VALUE r_event, VALUE r_child, VALUE r_root_x, VALUE r_root_y, VALUE r_event_x, VALUE r_event_y, VALUE r_state, VALUE r_mode, VALUE r_same_screen_focus) { xcb_leave_notify_event_t *self = malloc(sizeof(xcb_leave_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_LEAVE_NOTIFY; self->sequence = 0; self->detail = FIX2INT(r_detail); self->time = FIX2INT(r_time); self->root = FIX2INT(r_root); self->event = FIX2INT(r_event); self->child = FIX2INT(r_child); self->root_x = FIX2INT(r_root_x); self->root_y = FIX2INT(r_root_y); self->event_x = FIX2INT(r_event_x); self->event_y = FIX2INT(r_event_y); self->state = FIX2INT(r_state); self->mode = FIX2INT(r_mode); self->same_screen_focus = FIX2INT(r_same_screen_focus); return r_self; } |
Instance Method Details
#child ⇒ Object
2170 2171 2172 2173 2174 2175 2176 |
# File 'ext/xproto.c', line 2170 static VALUE r_XCB_LeaveNotifyEvent_get_child(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->child); } |
#detail ⇒ Object
2142 2143 2144 2145 2146 2147 2148 |
# File 'ext/xproto.c', line 2142 static VALUE r_XCB_LeaveNotifyEvent_get_detail(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->detail); } |
#event ⇒ Object
2163 2164 2165 2166 2167 2168 2169 |
# File 'ext/xproto.c', line 2163 static VALUE r_XCB_LeaveNotifyEvent_get_event(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->event); } |
#event_x ⇒ Object
2191 2192 2193 2194 2195 2196 2197 |
# File 'ext/xproto.c', line 2191 static VALUE r_XCB_LeaveNotifyEvent_get_event_x(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->event_x); } |
#event_y ⇒ Object
2198 2199 2200 2201 2202 2203 2204 |
# File 'ext/xproto.c', line 2198 static VALUE r_XCB_LeaveNotifyEvent_get_event_y(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->event_y); } |
#mode ⇒ Object
2212 2213 2214 2215 2216 2217 2218 |
# File 'ext/xproto.c', line 2212 static VALUE r_XCB_LeaveNotifyEvent_get_mode(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->mode); } |
#root ⇒ Object
2156 2157 2158 2159 2160 2161 2162 |
# File 'ext/xproto.c', line 2156 static VALUE r_XCB_LeaveNotifyEvent_get_root(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->root); } |
#root_x ⇒ Object
2177 2178 2179 2180 2181 2182 2183 |
# File 'ext/xproto.c', line 2177 static VALUE r_XCB_LeaveNotifyEvent_get_root_x(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->root_x); } |
#root_y ⇒ Object
2184 2185 2186 2187 2188 2189 2190 |
# File 'ext/xproto.c', line 2184 static VALUE r_XCB_LeaveNotifyEvent_get_root_y(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->root_y); } |
#same_screen_focus ⇒ Object
2219 2220 2221 2222 2223 2224 2225 |
# File 'ext/xproto.c', line 2219 static VALUE r_XCB_LeaveNotifyEvent_get_same_screen_focus(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->same_screen_focus); } |
#state ⇒ Object
2205 2206 2207 2208 2209 2210 2211 |
# File 'ext/xproto.c', line 2205 static VALUE r_XCB_LeaveNotifyEvent_get_state(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->state); } |
#time ⇒ Object
2149 2150 2151 2152 2153 2154 2155 |
# File 'ext/xproto.c', line 2149 static VALUE r_XCB_LeaveNotifyEvent_get_time(VALUE r_self) { xcb_leave_notify_event_t *event; Data_Get_Struct(r_self, xcb_leave_notify_event_t, event); return INT2FIX(event->time); } |
#visit(r_visitor) ⇒ Object
2987 2988 2989 2990 2991 |
# File 'ext/xproto.c', line 2987 static VALUE r_XCB_LeaveNotifyEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_leave_notify"), 1, r_self); } |