mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-28 17:04:34 +00:00
vendor/xlib: a few more IM-related procedures and constants
This commit is contained in:
17
vendor/x11/xlib/xlib_const.odin
vendored
17
vendor/x11/xlib/xlib_const.odin
vendored
@@ -1,6 +1,15 @@
|
||||
#+build linux, freebsd, openbsd
|
||||
package xlib
|
||||
|
||||
XNClientWindow: cstring : "clientWindow"
|
||||
XNInputStyle: cstring : "inputStyle"
|
||||
XNFocusWindow: cstring : "focusWindow"
|
||||
XNSpotLocation: cstring : "spotLocation"
|
||||
XNPreeditAttributes: cstring : "preeditAttributes"
|
||||
|
||||
XIMPreeditNothing :: 0x0008
|
||||
XIMStatusNothing :: 0x0400
|
||||
|
||||
/* ---- X11/extensions/XKB.h ---------------------------------------------------------*/
|
||||
|
||||
XkbMinLegalKeyCode :: 8
|
||||
@@ -138,6 +147,14 @@ Status :: enum i32 {
|
||||
LastExtensionError = 255,
|
||||
}
|
||||
|
||||
LookupStringStatus :: enum i32 {
|
||||
BufferOverflow = -1,
|
||||
LookupNone = 1,
|
||||
LookupChars = 2,
|
||||
LookupKeySym = 3,
|
||||
LookupBoth = 4,
|
||||
}
|
||||
|
||||
ByteOrder :: enum i32 {
|
||||
LSBFirst = 0,
|
||||
MSBFirst = 1,
|
||||
|
||||
29
vendor/x11/xlib/xlib_procs.odin
vendored
29
vendor/x11/xlib/xlib_procs.odin
vendored
@@ -374,7 +374,7 @@ foreign xlib {
|
||||
SetSelectionOwner :: proc(
|
||||
display: ^Display,
|
||||
selection: Atom,
|
||||
owber: Window,
|
||||
owner: Window,
|
||||
time: Time,
|
||||
) ---
|
||||
GetSelectionOwner :: proc(
|
||||
@@ -1030,6 +1030,7 @@ foreign xlib {
|
||||
Pending :: proc(display: ^Display) -> i32 ---
|
||||
NextEvent :: proc(display: ^Display, event: ^XEvent) ---
|
||||
PeekEvent :: proc(display: ^Display, event: ^XEvent) ---
|
||||
FilterEvent :: proc(event: ^XEvent, window: Window) -> b32 ---
|
||||
GetEventData :: proc(display: ^Display, cookie: ^XGenericEventCookie) -> b32 ---
|
||||
FreeEventData :: proc(display: ^Display, cookie: ^XGenericEventCookie) ---
|
||||
// Selecting events using a predicate procedure
|
||||
@@ -1697,6 +1698,24 @@ foreign xlib {
|
||||
res_class: cstring,
|
||||
) -> XIM ---
|
||||
SetLocaleModifiers :: proc(modifiers: cstring) -> cstring ---
|
||||
CreateIC :: proc(
|
||||
im: XIM,
|
||||
#c_vararg args: ..any,
|
||||
) -> XIC ---
|
||||
SetICFocus :: proc(
|
||||
ic: XIC,
|
||||
) ---
|
||||
UnsetICFocus :: proc(
|
||||
ic: XIC,
|
||||
) ---
|
||||
SetICValues :: proc(
|
||||
ic: XIC,
|
||||
#c_vararg args: ..any,
|
||||
) -> cstring ---
|
||||
VaCreateNestedList :: proc(
|
||||
unused: i32,
|
||||
#c_vararg args: ..any,
|
||||
) -> XVaNestedList ---
|
||||
}
|
||||
|
||||
@(default_calling_convention="c")
|
||||
@@ -2046,4 +2065,12 @@ foreign xlib {
|
||||
num: u32,
|
||||
xkb: XkbDescPtr,
|
||||
) -> Status ---
|
||||
Xutf8LookupString :: proc(
|
||||
ic: XIC,
|
||||
event: ^XKeyPressedEvent,
|
||||
buffer_return: ^cstring,
|
||||
bytes_buffer: i32,
|
||||
keysym_return: ^KeySym,
|
||||
status_return: ^LookupStringStatus,
|
||||
) -> i32 ---
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user