Bindings for [[ X11's Xlib (PDF) ; https://www.x.org/docs/X11/xlib.pdf ]].

Collection Info

View Source
Collection
vendor
Path
x11/xlib
Entries
903

Source Files

Constants

54

AllHints #

Source
AllHints :: WMHints{.InputHint, .StateHint, .IconPixmapHint, .IconWindowHint, .IconPositionHint, .IconMaskHint, .WindowGroupHint}

IS_SUPPORTED #

Source
IS_SUPPORTED :: ODIN_OS == .Linux || ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD

Value, specifying whether `vendor:x11/xlib` is available on the current platform.

VisualAllMask #

Source
VisualAllMask :: VisualInfoMask{.VisualIDMask, .VisualScreenMask, .VisualDepthMask, .VisualClassMask, .VisualRedMaskMask, .VisualGreenMaskMask, .VisualBlueMaskMask, .VisualColormapSizeMask, .VisualBitsPerRGBMask}

XkbAllClientInfoMask #

Source
XkbAllClientInfoMask :: XkbInfoMask{.KeyTypes, .KeySyms, .ModifierMap}

XkbAllEventsMask #

Source
XkbAllEventsMask :: XkbEventMask{.NewKeyboardNotify, .MapNotify, .StateNotify, .ControlsNotify, .IndicatorStateNotify, .IndicatorMapNotify, .NamesNotify, .CompatMapNotify, .BellNotify, .ActionMessage, .AccessXNotify, .ExtensionDeviceNotify}

XkbAllServerInfoMask #

Source
XkbAllServerInfoMask :: XkbInfoMask{.ExplicitComponents, .KeyActions, .KeyBehaviors, .VirtualMods, .VirtualModMap}

XkbMaxKeyCount #

Source
XkbMaxKeyCount :: XkbMaxLegalKeyCode - XkbMinLegalKeyCode + 1

XkbPerKeyBitArraySize #

Source
XkbPerKeyBitArraySize :: (XkbMaxLegalKeyCode + 1) / 8

XNPreeditAttributes #

Source
XNPreeditAttributes :: "preeditAttributes"

Types

379

Status #

Source
Status :: Status

NOTE(flysand): Some implementations return Status as enum, other return it as an integer. I will make it a status.

Procedures

470

AllocIconSize #

Source
AllocIconSize :: proc "c" () -> ^XIconSize ---

Setting and reading the WM_ICON_SIZE_PROPERTY

ChangePointerControl #

Source
ChangePointerControl :: proc "c" (
	display:           ^Display, 
	do_accel:          b32, 
	do_threshold:      b32, 
	accel_numerator:   i32, 
	accel_denominator: i32, 
	threshold:         i32, 
) ---

CreateRegion #

Source
CreateRegion :: proc "c" () -> Region ---

Creating, copying and destroying regions

DisplayKeycodes #

Source
DisplayKeycodes :: proc "c" (display: ^Display, min_keycodes: ^i32, max_keycodes: ^i32) ---

Manipulating the keyboard encoding

DisplayMotionBufferSize #

Source
DisplayMotionBufferSize :: proc "c" (display: ^Display) -> uint ---

Getting the history of pointer motion

InstallColormap #

Source
InstallColormap :: proc "c" (display: ^Display, colormap: XID) ---

Managing installed colormaps

SetTransientForHint #

Source
SetTransientForHint :: proc "c" (display: ^Display, window: XID, prop_window: XID) ---

Setting and reading WM_TRANSIENT_FOR property

SetWMColormapWindows #

Source
SetWMColormapWindows :: proc "c" (display: ^Display, window: XID, colormap_windows: [^]XID, count: i32) -> Status ---

Setting and reading the WM_COLORMAP_WINDOWS property

TranslateCoordinates #

Source
TranslateCoordinates :: proc "c" (
	display:    ^Display, 
	src_window: XID, 
	dst_window: XID, 
	src_x:      i32, 
	src_y:      i32, 
	dst_x:      ^i32, 
	dst_y:      ^i32, 
) -> b32 ---

Windows: translating screen coordinates

XcmsCCCOfColormap #

Source
XcmsCCCOfColormap :: proc "c" (display: ^Display, colormap: XID) -> XcmsCCC ---

Getting and setting the color conversion context (CCC) of a colormap

XkbQueryExtension #

Source
XkbQueryExtension :: proc "c" (
	display:           ^Display, 
	opcode_return:     ^i32, 
	event_base_return: ^i32, 
	error_base_return: ^i32, 
	major_return:      ^i32, 
	minor_return:      ^i32, 
) -> b32 ---