Modules

X11

moduleSource

Available on Linux·since 0.31.0

#import "X11";

Procedures#

Declarations#

(unk0: *Display, unk1: s32, unk2: *u8, unk3: *u8, unk4: u32, unk5: u32, unk6: u32, unk7: s32, unk8: s32, unk9: *s32, unk10: *s32, unk11: *s32, unk12: *s32) -> s32
(unk0: *Display, unk1: s32, unk2: *u8, unk3: *u8, unk4: u32, unk5: *XSizeHints, unk6: *s32, unk7: *s32, unk8: *s32, unk9: *s32, unk10: *s32) -> s32

Wrappers#

()

Xlib requests retain the connection's existing asynchronous error handler. Integer return values of queued drawing requests are not server statuses.

Foreign#

(unk0: *Display, unk1: s32, unk2: *u8, unk3: *u8, unk4: u32, unk5: u32, unk6: u32, unk7: s32, unk8: s32, unk9: *s32, unk10: *s32, unk11: *s32, unk12: *s32) -> s32
(unk0: *Display, unk1: s32, unk2: *u8, unk3: *u8, unk4: u32, unk5: *XSizeHints, unk6: *s32, unk7: *s32, unk8: *s32, unk9: *s32, unk10: *s32) -> s32

Types#

:: struct
ext_data: *XExtData
private1: *_XPrivate
fd: s32
private2: s32
proto_major_version: s32
proto_minor_version: s32
vendor: *u8
private3: XID
private4: XID
private5: XID
private6: s32
resource_alloc: #type (a0: *_XDisplay) -> XID #c_call
byte_order: s32
bitmap_unit: s32
bitmap_pad: s32
bitmap_bit_order: s32
nformats: s32
pixmap_format: *ScreenFormat
private8: s32
release: s32
private9: *_XPrivate
private10: *_XPrivate
qlen: s32
last_request_read: u64
request: u64
private11: XPointer
private12: XPointer
private13: XPointer
private14: XPointer
max_request_size: u32
private15: #type (a0: *_XDisplay) -> s32 #c_call
display_name: *u8
default_screen: s32
nscreens: s32
screens: *Screen
motion_buffer: u64
private16: u64
min_keycode: s32
max_keycode: s32
private17: XPointer
private18: XPointer
private19: s32
xdefaults: *u8
_XEventunionforeignSource
:: union
type: s32
xany: XAnyEvent
xkey: XKeyEvent
xbutton: XButtonEvent
xmotion: XMotionEvent
xcrossing: XCrossingEvent
xexpose: XExposeEvent
xgraphicsexpose: XGraphicsExposeEvent
xnoexpose: XNoExposeEvent
xvisibility: XVisibilityEvent
xcreatewindow: XCreateWindowEvent
xdestroywindow: XDestroyWindowEvent
xunmap: XUnmapEvent
xmap: XMapEvent
xmaprequest: XMapRequestEvent
xreparent: XReparentEvent
xconfigure: XConfigureEvent
xgravity: XGravityEvent
xresizerequest: XResizeRequestEvent
xconfigurerequest: XConfigureRequestEvent
xcirculate: XCirculateEvent
xcirculaterequest: XCirculateRequestEvent
xproperty: XPropertyEvent
xselectionclear: XSelectionClearEvent
xselectionrequest: XSelectionRequestEvent
xselection: XSelectionEvent
xcolormap: XColormapEvent
xmapping: XMappingEvent
xerror: XErrorEvent
xkeymap: XKeymapEvent
xgeneric: XGenericEvent
pad: [24] s64
_XImagestructforeignSource
:: struct
width: s32
height: s32
xoffset: s32
format: s32
data: *u8
byte_order: s32
bitmap_unit: s32
bitmap_bit_order: s32
bitmap_pad: s32
depth: s32
bytes_per_line: s32
bits_per_pixel: s32
red_mask: u64
green_mask: u64
blue_mask: u64
obdata: XPointer
f: funcs
_XIMTextstructforeignSource
:: struct
length: u16
feedback: *XIMFeedback
encoding_is_wchar: s32
_string: union { multi_byte: *u8; wide_char: *wchar_t; }
Drop_InfostructforeignSource
:: struct
data: [..] u8
x: int
y: int
return_type: Atom
return_action: Atom
user_typelist: [..] Atom
user_actions: [..] Atom
ScreenstructforeignSource
:: struct
ext_data: *XExtData
display: *_XDisplay
root: Window
width: s32
height: s32
mwidth: s32
mheight: s32
ndepths: s32
depths: *Depth
root_depth: s32
root_visual: *Visual
default_gc: GC
cmap: Colormap
white_pixel: u64
black_pixel: u64
max_maps: s32
min_maps: s32
backing_store: s32
save_unders: s32
root_input_mask: s64
VisualstructforeignSource
:: struct
ext_data: *XExtData
visualid: VisualID
class: s32
red_mask: u64
green_mask: u64
blue_mask: u64
bits_per_rgb: s32
map_entries: s32
:: enum
ST_ABORT_RETRY_IGNORE
ST_CANCEL_TRY_CONTINUE
ST_OK
ST_OK_CANCEL
ST_RETRY_CANCEL
ST_YES_NO
ST_YES_NO_CANCEL
XArcstructforeignSource
:: struct
x: s16
y: s16
width: u16
height: u16
angle1: s16
angle2: s16
XCharStructstructforeignSource
:: struct
lbearing: s16
rbearing: s16
width: s16
ascent: s16
descent: s16
attributes: u16
XColorstructforeignSource
:: struct
pixel: u64
red: u16
green: u16
blue: u16
flags: u8
pad: u8
:: struct
type: s32
serial: u64
send_event: s32
display: *Display
window: Window
root: Window
subwindow: Window
time: Time
x: s32
y: s32
x_root: s32
y_root: s32
mode: s32
detail: s32
same_screen: s32
focus: s32
state: u32
XErrorEventstructforeignSource
:: struct
type: s32
display: *Display
resourceid: XID
serial: u64
error_code: u8
request_code: u8
minor_code: u8
XExposeEventstructforeignSource
:: struct
type: s32
serial: u64
send_event: s32
display: *Display
window: Window
x: s32
y: s32
width: s32
height: s32
count: s32
XExtCodesstructforeignSource
:: struct
extension: s32
major_opcode: s32
first_event: s32
first_error: s32
XGCValuesstructforeignSource
:: struct
function: s32
plane_mask: u64
foreground: u64
background: u64
line_width: s32
line_style: s32
cap_style: s32
join_style: s32
fill_style: s32
fill_rule: s32
arc_mode: s32
tile: Pixmap
stipple: Pixmap
ts_x_origin: s32
ts_y_origin: s32
font: Font
subwindow_mode: s32
graphics_exposures: s32
clip_x_origin: s32
clip_y_origin: s32
clip_mask: Pixmap
dash_offset: s32
dashes: u8
:: struct
type: s32
serial: u64
send_event: s32
display: *Display
drawable: Drawable
x: s32
y: s32
width: s32
height: s32
count: s32
major_code: s32
minor_code: s32
:: enum
XStringStyle
XCompoundTextStyle
XTextStyle
XStdICCTextStyle
XUTF8StringStyle
XIconSizestructforeignSource
:: struct
min_width: s32
min_height: s32
max_width: s32
max_height: s32
width_inc: s32
height_inc: s32
:: enum
XIMForwardChar
XIMBackwardChar
XIMForwardWord
XIMBackwardWord
XIMCaretUp
XIMCaretDown
XIMNextLine
XIMPreviousLine
XIMLineStart
XIMLineEnd
XIMAbsolutePosition
XIMDontChange
:: struct
key_click_percent: s32
bell_percent: s32
bell_pitch: s32
bell_duration: s32
led: s32
led_mode: s32
key: s32
auto_repeat_mode: s32
:: struct
key_click_percent: s32
bell_percent: s32
bell_pitch: u32
bell_duration: u32
led_mask: u64
global_auto_repeat: s32
auto_repeats: [32] u8
XKeyEventstructforeignSource
:: struct
type: s32
serial: u64
send_event: s32
display: *Display
window: Window
root: Window
subwindow: Window
time: Time
x: s32
y: s32
x_root: s32
y_root: s32
state: u32
keycode: u32
same_screen: s32
:: enum
XOMOrientation_LTR_TTB
XOMOrientation_RTL_TTB
XOMOrientation_TTB_LTR
XOMOrientation_TTB_RTL
XOMOrientation_Context
XSegmentstructforeignSource
:: struct
x1: s16
y1: s16
x2: s16
y2: s16
:: struct
background_pixmap: Pixmap
background_pixel: u64
border_pixmap: Pixmap
border_pixel: u64
bit_gravity: s32
win_gravity: s32
backing_store: s32
backing_planes: u64
backing_pixel: u64
save_under: s32
event_mask: s64
do_not_propagate_mask: s64
override_redirect: s32
colormap: Colormap
cursor: Cursor
XSizeHintsstructforeignSource
:: struct
flags: s64
x: s32
y: s32
width: s32
height: s32
min_width: s32
min_height: s32
max_width: s32
max_height: s32
width_inc: s32
height_inc: s32
min_aspect: struct { x: s32; y: s32; }
max_aspect: struct { x: s32; y: s32; }
base_width: s32
base_height: s32
win_gravity: s32
XVisualInfostructforeignSource
:: struct
visual: *Visual
visualid: VisualID
screen: s32
depth: s32
class: s32
red_mask: u64
green_mask: u64
blue_mask: u64
colormap_size: s32
bits_per_rgb: s32
:: struct
x: s32
y: s32
width: s32
height: s32
border_width: s32
depth: s32
visual: *Visual
root: Window
class: s32
bit_gravity: s32
win_gravity: s32
backing_store: s32
backing_planes: u64
backing_pixel: u64
save_under: s32
colormap: Colormap
map_installed: s32
map_state: s32
all_event_masks: s64
your_event_mask: s64
do_not_propagate_mask: s64
override_redirect: s32
screen: *Screen
:: struct
x: s32
y: s32
width: s32
height: s32
border_width: s32
sibling: Window
stack_mode: s32
XWMHintsstructforeignSource
:: struct
flags: s64
input: s32
initial_state: s32
icon_pixmap: Pixmap
icon_window: Window
icon_x: s32
icon_y: s32
icon_mask: Pixmap
window_group: XID
:: struct
type: s32
serial: u64
send_event: s32
display: *Display
window: Window
root: Window
subwindow: Window
time: Time
x: s32
y: s32
x_root: s32
y_root: s32
mode: s32
detail: s32
same_screen: s32
focus: s32
state: u32
XEventunionforeignSource
:: union
type: s32
xany: XAnyEvent
xkey: XKeyEvent
xbutton: XButtonEvent
xmotion: XMotionEvent
xcrossing: XCrossingEvent
xexpose: XExposeEvent
xgraphicsexpose: XGraphicsExposeEvent
xnoexpose: XNoExposeEvent
xvisibility: XVisibilityEvent
xcreatewindow: XCreateWindowEvent
xdestroywindow: XDestroyWindowEvent
xunmap: XUnmapEvent
xmap: XMapEvent
xmaprequest: XMapRequestEvent
xreparent: XReparentEvent
xconfigure: XConfigureEvent
xgravity: XGravityEvent
xresizerequest: XResizeRequestEvent
xconfigurerequest: XConfigureRequestEvent
xcirculate: XCirculateEvent
xcirculaterequest: XCirculateRequestEvent
xproperty: XPropertyEvent
xselectionclear: XSelectionClearEvent
xselectionrequest: XSelectionRequestEvent
xselection: XSelectionEvent
xcolormap: XColormapEvent
xmapping: XMappingEvent
xerror: XErrorEvent
xkeymap: XKeymapEvent
xgeneric: XGenericEvent
pad: [24] s64
XImagestructforeignSource
:: struct
width: s32
height: s32
xoffset: s32
format: s32
data: *u8
byte_order: s32
bitmap_unit: s32
bitmap_bit_order: s32
bitmap_pad: s32
depth: s32
bytes_per_line: s32
bits_per_pixel: s32
red_mask: u64
green_mask: u64
blue_mask: u64
obdata: XPointer
f: funcs
XIMTextstructforeignSource
:: struct
length: u16
feedback: *XIMFeedback
encoding_is_wchar: s32
_string: union { multi_byte: *u8; wide_char: *wchar_t; }
:: struct
type: s32
serial: u64
send_event: s32
display: *Display
window: Window
root: Window
subwindow: Window
time: Time
x: s32
y: s32
x_root: s32
y_root: s32
mode: s32
detail: s32
same_screen: s32
focus: s32
state: u32

Constants#