Handbook
Glossary
XEvent
Vocabulary
x11
.
xlib
Definition
USING:
alien.c-types
classes.struct
specialized-arrays.instances.alien.c-types.int
;
IN:
x11.xlib
UNION-STRUCT:
XEvent
{
int
int
initial:
0
}
{
XAnyEvent
XAnyEvent
initial:
S{
XAnyEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
}
}
{
XKeyEvent
XKeyEvent
initial:
S{
XKeyEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
root 0
}
{
subwindow 0
}
{
time 0
}
{
x 0
}
{
y 0
}
{
x_root 0
}
{
y_root 0
}
{
state 0
}
{
keycode 0
}
{
same_screen 0
}
}
}
{
XButtonEvent
XButtonEvent
initial:
S{
XButtonEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
root 0
}
{
subwindow 0
}
{
time 0
}
{
x 0
}
{
y 0
}
{
x_root 0
}
{
y_root 0
}
{
state 0
}
{
button 0
}
{
same_screen 0
}
}
}
{
XMotionEvent
XMotionEvent
initial:
S{
XMotionEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
root 0
}
{
subwindow 0
}
{
time 0
}
{
x 0
}
{
y 0
}
{
x_root 0
}
{
y_root 0
}
{
state 0
}
{
is_hint 0
}
{
same_screen 0
}
}
}
{
XCrossingEvent
XCrossingEvent
initial:
S{
XCrossingEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
root 0
}
{
subwindow 0
}
{
time 0
}
{
x 0
}
{
y 0
}
{
x_root 0
}
{
y_root 0
}
{
mode 0
}
{
detail 0
}
{
same_screen 0
}
{
focus 0
}
{
state 0
}
}
}
{
XFocusChangeEvent
XFocusChangeEvent
initial:
S{
XFocusChangeEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
mode 0
}
{
detail 0
}
}
}
{
XExposeEvent
XExposeEvent
initial:
S{
XExposeEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
x 0
}
{
y 0
}
{
width 0
}
{
height 0
}
{
count 0
}
}
}
{
XGraphicsExposeEvent
XGraphicsExposeEvent
initial:
S{
XGraphicsExposeEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
drawable 0
}
{
x 0
}
{
y 0
}
{
width 0
}
{
height 0
}
{
count 0
}
{
major_code 0
}
{
minor_code 0
}
}
}
{
XNoExposeEvent
XNoExposeEvent
initial:
S{
XNoExposeEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
drawable 0
}
{
major_code 0
}
{
minor_code 0
}
}
}
{
XVisibilityEvent
XVisibilityEvent
initial:
S{
XVisibilityEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
state 0
}
}
}
{
XCreateWindowEvent
XCreateWindowEvent
initial:
S{
XCreateWindowEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
parent 0
}
{
window 0
}
{
x 0
}
{
y 0
}
{
width 0
}
{
height 0
}
{
border_width 0
}
{
override_redirect 0
}
}
}
{
XDestroyWindowEvent
XDestroyWindowEvent
initial:
S{
XDestroyWindowEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
event 0
}
{
window 0
}
}
}
{
XUnmapEvent
XUnmapEvent
initial:
S{
XUnmapEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
event 0
}
{
window 0
}
{
from_configure 0
}
}
}
{
XMapEvent
XMapEvent
initial:
S{
XMapEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
event 0
}
{
window 0
}
{
override_redirect 0
}
}
}
{
XMapRequestEvent
XMapRequestEvent
initial:
S{
XMapRequestEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
parent 0
}
{
window 0
}
}
}
{
XReparentEvent
XReparentEvent
initial:
S{
XReparentEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
event 0
}
{
window 0
}
{
parent 0
}
{
x 0
}
{
y 0
}
{
override_redirect 0
}
}
}
{
XConfigureEvent
XConfigureEvent
initial:
S{
XConfigureEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
event 0
}
{
window 0
}
{
x 0
}
{
y 0
}
{
width 0
}
{
height 0
}
{
border_width 0
}
{
above 0
}
{
override_redirect 0
}
}
}
{
XGravityEvent
XGravityEvent
initial:
S{
XGravityEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
event 0
}
{
window 0
}
{
x 0
}
{
y 0
}
}
}
{
XResizeRequestEvent
XResizeRequestEvent
initial:
S{
XResizeRequestEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
width 0
}
{
height 0
}
}
}
{
XConfigureRequestEvent
XConfigureRequestEvent
initial:
S{
XConfigureRequestEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
parent 0
}
{
window 0
}
{
x 0
}
{
y 0
}
{
width 0
}
{
height 0
}
{
border_width 0
}
{
above 0
}
{
detail 0
}
{
value_mask 0
}
}
}
{
XCirculateEvent
XCirculateEvent
initial:
S{
XCirculateEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
event 0
}
{
window 0
}
{
place 0
}
}
}
{
XCirculateRequestEvent
XCirculateRequestEvent
initial:
S{
XCirculateRequestEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
parent 0
}
{
window 0
}
{
place 0
}
}
}
{
XPropertyEvent
XPropertyEvent
initial:
S{
XPropertyEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
atom 0
}
{
time 0
}
{
state 0
}
}
}
{
XSelectionClearEvent
XSelectionClearEvent
initial:
S{
XSelectionClearEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
selection 0
}
{
time 0
}
}
}
{
XSelectionRequestEvent
XSelectionRequestEvent
initial:
S{
XSelectionRequestEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
owner 0
}
{
requestor 0
}
{
selection 0
}
{
target 0
}
{
property 0
}
{
time 0
}
}
}
{
XSelectionEvent
XSelectionEvent
initial:
S{
XSelectionEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
requestor 0
}
{
selection 0
}
{
target 0
}
{
property 0
}
{
time 0
}
}
}
{
XColormapEvent
XColormapEvent
initial:
S{
XColormapEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
colormap 0
}
{
new 0
}
{
state 0
}
}
}
{
XClientMessageEvent
XClientMessageEvent
initial:
S{
XClientMessageEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
message_type 0
}
{
format 0
}
{
data0 0
}
{
data1 0
}
{
data2 0
}
{
data3 0
}
{
data4 0
}
}
}
{
XMappingEvent
XMappingEvent
initial:
S{
XMappingEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
request 0
}
{
first_keycode 0
}
{
count 0
}
}
}
{
XErrorEvent
XErrorEvent
initial:
S{
XErrorEvent
{
type 0
}
{
display
f
}
{
resourceid 0
}
{
serial 0
}
{
error_code 0
}
{
request_code 0
}
{
minor_code 0
}
}
}
{
XKeymapEvent
XKeymapEvent
initial:
S{
XKeymapEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
window 0
}
{
pad
int-array{
0 0 0 0 0 0 0 0
}
}
}
}
{
XGenericEvent
XGenericEvent
initial:
S{
XGenericEvent
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
extension 0
}
{
evtype 0
}
}
}
{
XGenericEventCookie
XGenericEventCookie
initial:
S{
XGenericEventCookie
{
type 0
}
{
serial 0
}
{
send_event 0
}
{
display
f
}
{
extension 0
}
{
evtype 0
}
{
cookie 0
}
{
data
f
}
}
}
{
padding long[24]
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
x11.xlib
;
M:
XEvent
clone
clone-underlying
\
XEvent
memory>struct
;
inline
USING:
accessors
classes.struct
combinators.smart
x11.xlib
;
M:
XEvent
struct-slot-values
{
[
int>>
]
[
XAnyEvent>>
]
[
XKeyEvent>>
]
[
XButtonEvent>>
]
[
XMotionEvent>>
]
[
XCrossingEvent>>
]
[
XFocusChangeEvent>>
]
[
XExposeEvent>>
]
[
XGraphicsExposeEvent>>
]
[
XNoExposeEvent>>
]
[
XVisibilityEvent>>
]
[
XCreateWindowEvent>>
]
[
XDestroyWindowEvent>>
]
[
XUnmapEvent>>
]
[
XMapEvent>>
]
[
XMapRequestEvent>>
]
[
XReparentEvent>>
]
[
XConfigureEvent>>
]
[
XGravityEvent>>
]
[
XResizeRequestEvent>>
]
[
XConfigureRequestEvent>>
]
[
XCirculateEvent>>
]
[
XCirculateRequestEvent>>
]
[
XPropertyEvent>>
]
[
XSelectionClearEvent>>
]
[
XSelectionRequestEvent>>
]
[
XSelectionEvent>>
]
[
XColormapEvent>>
]
[
XClientMessageEvent>>
]
[
XMappingEvent>>
]
[
XErrorEvent>>
]
[
XKeymapEvent>>
]
[
XGenericEvent>>
]
[
XGenericEventCookie>>
]
[
padding>>
]
}
cleave>array
;
inline