xcb_translate_coordinates(3)
β¨ xcb_translate_coordinates β¨
okay so bestie, welcome to the xcb_translate_coordinates page from the XCB Requests manual π this one is a lil request in libxcb that lives in <xcb/xproto.h> and honestly? it's giving "translate my coordinates, queen" π¦ let's get into it fr fr
πΈ SYNOPSIS πΈ
first things first, you gotta include the header, no cap:
#include <xcb/xproto.h>
π Request function
xcb_translate_coordinates_cookie_t
xcb_translate_coordinates(xcb_connection_t *conn,
xcb_window_t src_window, xcb_window_t dst_window, int16_t src_x,
int16_t src_y);
π Reply datastructure
typedef struct xcb_translate_coordinates_reply_t {
uint8_t response_type;
uint8_t same_screen;
uint16_t sequence;
uint32_t length;
xcb_window_t child;
int16_t dst_x;
int16_t dst_y;
} xcb_translate_coordinates_reply_t;
π Reply function
xcb_translate_coordinates_reply_t
*xcb_translate_coordinates_reply(xcb_connection_t *conn,
xcb_translate_coordinates_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11, obviously π that's your link to the server, your main character connection fr.src_windowβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs just left us on read on this one πdst_windowβ TODO: NOT YET DOCUMENTED. also ghosted by the documentation πsrc_xβ TODO: NOT YET DOCUMENTED. no notes, no explanation, nothing πsrc_yβ TODO: NOT YET DOCUMENTED. same vibe, zero tea π
π¦ REPLY FIELDS π¦
response_typeβ the type of this reply, and in this case it'sXCB_TRANSLATE_COORDINATESβ¨ this field is also present in thexcb_generic_reply_t, so you can use it to tell replies apart from each other β iconic detective behaviour πsequenceβ the sequence number of the last request processed by the X11 server, slay π«lengthβ the length of the reply, in words. and reminder bestie: a word is 4 bytes πsame_screenβ TODO: NOT YET DOCUMENTED. the mystery continues πchildβ TODO: NOT YET DOCUMENTED. we simply do not know her πdst_xβ TODO: NOT YET DOCUMENTED. undocumented and unbothered frdst_yβ TODO: NOT YET DOCUMENTED. last one, also a total mystery πΈ
π DESCRIPTION π
(yeah... there's literally nothing here in the original. it's an empty vibe. the section exists, the words do not. periodt π )
β RETURN VALUE β
Returns an xcb_translate_coordinates_cookie_t πͺ and listen, errors have to be handled when you call the reply function xcb_translate_coordinates_reply. that's the whole deal, no cap.
but if you'd rather handle errors in the event loop instead, usexcb_translate_coordinates_uncheckedβ seexcb-requests(3)for the details π
π₯ ERRORS π₯
this request does never generate any errors. not one. zero. she's perfect, she's flawless, she never misses πβ¨
π«Ά SEE ALSO π«Ά
(nothing listed here in the original, bestie β the section is just sitting there, quiet, minding its own business πΈ)
π AUTHOR π
generated from xproto.xml π§ contact xcb@lists.freedesktop.org for corrections and improvements β they're literally accepting feedback, so if you spot something, speak up bestie π
X Version 11 Β· libxcb 1.17.0 Β· xcb_translate_coordinates(3)
and that's the whole page, babe π go translate some coordinates, stay hydrated, and remember: the TODOs are not your fault π«Άβ¨
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms