xcb_x_print_p...ge_resolution(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– xcb_x_print_print_set_image_resolution πŸ’–

okay bestie, welcome to the XCB corner of the X11 universe πŸ¦‹ this one lives in the XCB Requests manual, and it's literally called xcb_x_print_p...ge_resolution(3) because the title got cut off mid-glow-up (the full name is waaaay too long for the header, iykyk). It's a request function, it comes from <xcb/xprint.h>, and yes it's part of the X Print squad. Let's get into it ✨


🌸 NAME 🌸

xcb_x_print_print_set_image_resolution β€” and that's it, that's the whole name, no description. Not me being mysterious, the page genuinely just says that πŸ’…


✨ SYNOPSIS ✨

First, the include, because nothing works without it:

#include <xcb/xprint.h>

πŸŽ€ Request function

xcb_x_print_print_set_image_resolution_cookie_t
       xcb_x_print_print_set_image_resolution(xcb_connection_t *conn,
       xcb_x_print_pcontext_t context, uint16_t image_resolution);

πŸŽ€ Reply datastructure

typedef struct xcb_x_print_print_set_image_resolution_reply_t {
    uint8_t  response_type;
    uint8_t  status;
    uint16_t sequence;
    uint32_t length;
    uint16_t previous_resolutions;
} xcb_x_print_print_set_image_resolution_reply_t;

πŸŽ€ Reply function

xcb_x_print_print_set_image_resolution_reply_t
       *xcb_x_print_print_set_image_resolution_reply(xcb_connection_t *conn,
       xcb_x_print_print_set_image_resolution_cookie_t cookie,
       xcb_generic_error_t **e);

🌈 REQUEST ARGUMENTS 🌈

  • conn β€” the XCB connection to X11, aka your little phone line to the server 🫢
  • context β€” TODO: NOT YET DOCUMENTED. yeah bestie, the docs just left us on read πŸ™ˆ
  • image_resolution β€” TODO: NOT YET DOCUMENTED. also left on read, no cap 😭

πŸ‘‘ REPLY FIELDS πŸ‘‘

  • response_type β€” the type of this reply, and in this specific case it's XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION. this field is also chillin' in the xcb_generic_reply_t, which is how you tell replies apart from each other. very main character of it πŸ’…
  • sequence β€” the sequence number of the last request processed by the X11 server. it's giving receipt energy 🧾
  • length β€” how long the reply is, in words (and a word is 4 bytes, so do the math ✨)
  • status β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ
  • previous_resolutions β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

literally nothing here. the section exists, it's just empty. the void. the silence. we respect it though 🌸


πŸ¦‹ RETURN VALUE πŸ¦‹

It returns an xcb_x_print_print_set_image_resolution_cookie_t. πŸͺ

Errors? You have to handle those when you call the reply function, xcb_x_print_print_set_image_resolution_reply.

If you'd rather handle errors in the event loop instead, use xcb_x_print_print_set_image_resolution_unchecked. See xcb-requests(3) for the details, bestie πŸ’–


πŸ”₯ ERRORS πŸ”₯

This request does never generate any errors. zero. zilch. not a single one. iconic behaviour honestly πŸ‘‘


⭐ SEE ALSO ⭐

(blank. empty. the page said nothing here. we're just vibing in the silence πŸ¦‹)


🧚 AUTHOR 🧚

Generated from xprint.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if something's off, slide into their inbox, not mine πŸ’Œ


fr fr, that's the whole page. the TODOs are the original author's, not mine β€” I'm just the messenger 🫢

and that's a wrap, bestie!! πŸ’– This lil gem came to you from X Version 11, libxcb 1.17.0, page xcb_x_print_p...ge_resolution(3). go forth and print, you absolute legend βœ¨πŸŽ€πŸ¦‹