xcb-requests man page

xcb-requests — about request manpages

Description

Every request in X11, like MapWindow, corresponds to a number of functions and data structures in XCB. For MapWindow, XCB provides the function xcb_map_window, which fills the xcb_map_window_request_t data structure and writes that to the X11 connection. Since the MapWindow request does not have a reply, this is the most simple case.

Replies

Many requests have replies. For each reply, XCB provides at least a corresponding data structure and a function to return a pointer to a filled data structure. Let's take the InternAtom request as an example: XCB provides the xcb_intern_atom_reply_t data structure and xcb_intern_atom_reply function. For replies which are more complex (for example lists, such as in xcb_list_fonts), accessor functions are provided.

Cookies

XCB returns a cookie for each request you send. This is an XCB-specific data structure containing the sequence number with which the request was sent to the X11 server. To get any reply, you have to provide that cookie (so that XCB knows which of the waiting replies you want). Here is an example to illustrate the use of cookies:

void my_example(xcb_connection *conn) {
    xcb_intern_atom_cookie_t cookie;
    xcb_intern_atom_reply_t *reply;

    cookie = xcb_intern_atom(conn, 0, strlen("_NET_WM_NAME"), "_NET_WM_NAME");
    /* ... do other work here if possible ... */
    if ((reply = xcb_intern_atom_reply(conn, cookie, NULL))) {
        printf("The _NET_WM_NAME atom has ID %u\n", reply->atom);
    }
    free(reply);
}

Checked Vs. Unchecked

The checked and unchecked suffixes for functions determine which kind of error handling is used for this specific request.

For requests which have no reply (for example xcb_map_window), errors will be delivered to the event loop (you will receive an X11 event of type 0 when calling xcb_poll_for_event). If you want to explicitly check for errors in a blocking fashion, call the _checked version of the function (for example xcb_map_window_checked) and use xcb_request_check.

For requests which have a reply (for example xcb_intern_atom), errors will be checked when calling the reply function. To get errors in the event loop instead, use the _unchecked version of the function (for example xcb_intern_atom_unchecked).

Here is an example which illustrates the four different ways of handling errors:

/*
 * Request without a reply, handling errors in the event loop (default)
 *
 */
void my_example(xcb_connection *conn, xcb_window_t window) {
    /* This is a request without a reply. Errors will be delivered to the event
     * loop. Getting an error to xcb_map_window most likely is a bug in our
     * program, so we don't need to check for that in a blocking way. */
    xcb_map_window(conn, window);

    /* ... of course your event loop would not be in the same function ... */
    while ((event = xcb_wait_for_event(conn)) != NULL) {
        if (event->response_type == 0) {
            fprintf("Received X11 error %d\n", error->error_code);
            free(event);
            continue;
        }

        /* ... handle a normal event ... */
    }
}

/*
 * Request without a reply, handling errors directly
 *
 */
void my_example(xcb_connection *conn, xcb_window_t deco, xcb_window_t window) {
    /* A reparenting window manager wants to know whether a new window was
     * successfully reparented. If not (because the window got destroyed
     * already, for example), it does not make sense to map an empty window
     * decoration at all, so we need to know this right now. */
    xcb_void_cookie_t cookie = xcb_reparent_window_checked(conn, window,
                                                           deco, 0, 0);
    xcb_generic_error_t *error;
    if ((error = xcb_request_check(conn, cookie))) {
        fprintf(stderr, "Could not reparent the window\n");
        free(error);
        return;
    }

    /* ... do window manager stuff here ... */
}

/*
 * Request with a reply, handling errors directly (default)
 *
 */
void my_example(xcb_connection *conn, xcb_window_t window) {
    xcb_intern_atom_cookie_t cookie;
    xcb_intern_atom_reply_t *reply;
    xcb_generic_error_t *error;

    cookie = xcb_intern_atom(c, 0, strlen("_NET_WM_NAME"), "_NET_WM_NAME");
    /* ... do other work here if possible ... */
    if ((reply = xcb_intern_atom_reply(c, cookie, &error))) {
        printf("The _NET_WM_NAME atom has ID %u\n", reply->atom);
        free(reply);
    } else {
        fprintf(stderr, "X11 Error %d\n", error->error_code);
        free(error);
    }
}

/*
 * Request with a reply, handling errors in the event loop
 *
 */
void my_example(xcb_connection *conn, xcb_window_t window) {
    xcb_intern_atom_cookie_t cookie;
    xcb_intern_atom_reply_t *reply;

    cookie = xcb_intern_atom_unchecked(c, 0, strlen("_NET_WM_NAME"),
                                       "_NET_WM_NAME");
    /* ... do other work here if possible ... */
    if ((reply = xcb_intern_atom_reply(c, cookie, NULL))) {
        printf("The _NET_WM_NAME atom has ID %u\n", reply->atom);
        free(reply);
    }

    /* ... of course your event loop would not be in the same function ... */
    while ((event = xcb_wait_for_event(conn)) != NULL) {
        if (event->response_type == 0) {
            fprintf("Received X11 error %d\n", error->error_code);
            free(event);
            continue;
        }

        /* ... handle a normal event ... */
    }
}

See Also

xcb_map_window(3), xcb_intern_atom(3), xcb_list_fonts(3), xcb_poll_for_event(3), xcb_request_check(3)

Author

Michael Stapelberg <michael+xcb at stapelberg dot de>

Referenced By

xcb_alloc_color(3), xcb_alloc_color_cells(3), xcb_alloc_color_planes(3), xcb_alloc_named_color(3), xcb_allow_events(3), xcb_bell(3), xcb_big_requests_enable(3), xcb_change_active_pointer_grab(3), xcb_change_gc(3), xcb_change_hosts(3), xcb_change_keyboard_control(3), xcb_change_keyboard_mapping(3), xcb_change_pointer_control(3), xcb_change_property(3), xcb_change_save_set(3), xcb_change_window_attributes(3), xcb_circulate_window(3), xcb_clear_area(3), xcb_close_font(3), xcb_composite_create_region_from_border_clip(3), xcb_composite_get_overlay_window(3), xcb_composite_name_window_pixmap(3), xcb_composite_query_version(3), xcb_composite_redirect_subwindows(3), xcb_composite_redirect_window(3), xcb_composite_release_overlay_window(3), xcb_composite_unredirect_subwindows(3), xcb_composite_unredirect_window(3), xcb_configure_window(3), xcb_convert_selection(3), xcb_copy_area(3), xcb_copy_colormap_and_free(3), xcb_copy_gc(3), xcb_copy_plane(3), xcb_create_colormap(3), xcb_create_cursor(3), xcb_create_gc(3), xcb_create_glyph_cursor(3), xcb_create_pixmap(3), xcb_create_window(3), xcb_damage_add(3), xcb_damage_create(3), xcb_damage_destroy(3), xcb_damage_query_version(3), xcb_damage_subtract(3), xcb_delete_property(3), xcb_destroy_subwindows(3), xcb_destroy_window(3), xcb_dpms_capable(3), xcb_dpms_disable(3), xcb_dpms_enable(3), xcb_dpms_force_level(3), xcb_dpms_get_timeouts(3), xcb_dpms_get_version(3), xcb_dpms_info(3), xcb_dpms_set_timeouts(3), xcb_dri2_authenticate(3), xcb_dri2_connect(3), xcb_dri2_copy_region(3), xcb_dri2_create_drawable(3), xcb_dri2_destroy_drawable(3), xcb_dri2_get_buffers(3), xcb_dri2_get_buffers_with_format(3), xcb_dri2_get_msc(3), xcb_dri2_get_param(3), xcb_dri2_query_version(3), xcb_dri2_swap_buffers(3), xcb_dri2_swap_interval(3), xcb_dri2_wait_msc(3), xcb_dri2_wait_sbc(3), xcb_dri3_buffer_from_pixmap(3), xcb_dri3_fd_from_fence(3), xcb_dri3_fence_from_fd(3), xcb_dri3_open(3), xcb_dri3_pixmap_from_buffer(3), xcb_dri3_query_version(3), xcb_fill_poly(3), xcb_force_screen_saver(3), xcb_free_colormap(3), xcb_free_colors(3), xcb_free_cursor(3), xcb_free_gc(3), xcb_free_pixmap(3), xcb_get_atom_name(3), xcb_get_font_path(3), xcb_get_geometry(3), xcb_get_image(3), xcb_get_input_focus(3), xcb_get_keyboard_control(3), xcb_get_keyboard_mapping(3), xcb_get_modifier_mapping(3), xcb_get_motion_events(3), xcb_get_pointer_control(3), xcb_get_pointer_mapping(3), xcb_get_property(3), xcb_get_screen_saver(3), xcb_get_selection_owner(3), xcb_get_window_attributes(3), xcb_glx_are_textures_resident(3), xcb_glx_change_drawable_attributes(3), xcb_glx_client_info(3), xcb_glx_copy_context(3), xcb_glx_create_context(3), xcb_glx_create_context_attribs_arb(3), xcb_glx_create_glx_pixmap(3), xcb_glx_create_new_context(3), xcb_glx_create_pbuffer(3), xcb_glx_create_pixmap(3), xcb_glx_create_window(3), xcb_glx_delete_lists(3), xcb_glx_delete_queries_arb(3), xcb_glx_delete_textures(3), xcb_glx_delete_window(3), xcb_glx_destroy_context(3), xcb_glx_destroy_glx_pixmap(3), xcb_glx_destroy_pbuffer(3), xcb_glx_destroy_pixmap(3), xcb_glx_end_list(3), xcb_glx_feedback_buffer(3), xcb_glx_finish(3), xcb_glx_flush(3), xcb_glx_gen_lists(3), xcb_glx_gen_queries_arb(3), xcb_glx_gen_textures(3), xcb_glx_get_booleanv(3), xcb_glx_get_clip_plane(3), xcb_glx_get_color_table(3), xcb_glx_get_color_table_parameterfv(3), xcb_glx_get_color_table_parameteriv(3), xcb_glx_get_compressed_tex_image_arb(3), xcb_glx_get_convolution_filter(3), xcb_glx_get_convolution_parameterfv(3), xcb_glx_get_convolution_parameteriv(3), xcb_glx_get_doublev(3), xcb_glx_get_drawable_attributes(3), xcb_glx_get_error(3), xcb_glx_get_fb_configs(3), xcb_glx_get_floatv(3), xcb_glx_get_histogram(3), xcb_glx_get_histogram_parameterfv(3), xcb_glx_get_histogram_parameteriv(3), xcb_glx_get_integerv(3), xcb_glx_get_lightfv(3), xcb_glx_get_lightiv(3), xcb_glx_get_mapdv(3), xcb_glx_get_mapfv(3), xcb_glx_get_mapiv(3), xcb_glx_get_materialfv(3), xcb_glx_get_materialiv(3), xcb_glx_get_minmax(3), xcb_glx_get_minmax_parameterfv(3), xcb_glx_get_minmax_parameteriv(3), xcb_glx_get_pixel_mapfv(3), xcb_glx_get_pixel_mapuiv(3), xcb_glx_get_pixel_mapusv(3), xcb_glx_get_polygon_stipple(3), xcb_glx_get_queryiv_arb(3), xcb_glx_get_query_objectiv_arb(3), xcb_glx_get_query_objectuiv_arb(3), xcb_glx_get_separable_filter(3), xcb_glx_get_string(3), xcb_glx_get_tex_envfv(3), xcb_glx_get_tex_enviv(3), xcb_glx_get_tex_gendv(3), xcb_glx_get_tex_genfv(3), xcb_glx_get_tex_geniv(3), xcb_glx_get_tex_image(3), xcb_glx_get_tex_level_parameterfv(3), xcb_glx_get_tex_level_parameteriv(3), xcb_glx_get_tex_parameterfv(3), xcb_glx_get_tex_parameteriv(3), xcb_glx_get_visual_configs(3), xcb_glx_is_direct(3), xcb_glx_is_enabled(3), xcb_glx_is_list(3), xcb_glx_is_query_arb(3), xcb_glx_is_texture(3), xcb_glx_make_context_current(3), xcb_glx_make_current(3), xcb_glx_new_list(3), xcb_glx_pixel_storef(3), xcb_glx_pixel_storei(3), xcb_glx_query_context(3), xcb_glx_query_extensions_string(3), xcb_glx_query_server_string(3), xcb_glx_query_version(3), xcb_glx_read_pixels(3), xcb_glx_render(3), xcb_glx_render_large(3), xcb_glx_render_mode(3), xcb_glx_select_buffer(3), xcb_glx_set_client_info_2arb(3), xcb_glx_set_client_info_arb(3), xcb_glx_swap_buffers(3), xcb_glx_use_x_font(3), xcb_glx_vendor_private(3), xcb_glx_vendor_private_with_reply(3), xcb_glx_wait_gl(3), xcb_glx_wait_x(3), xcb_grab_button(3), xcb_grab_key(3), xcb_grab_keyboard(3), xcb_grab_pointer(3), xcb_grab_server(3), xcb_image_text_16(3), xcb_image_text_8(3), xcb_input_allow_device_events(3), xcb_input_change_device_control(3), xcb_input_change_device_dont_propagate_list(3), xcb_input_change_device_key_mapping(3), xcb_input_change_device_property(3), xcb_input_change_feedback_control(3), xcb_input_change_keyboard_device(3), xcb_input_change_pointer_device(3), xcb_input_close_device(3), xcb_input_delete_device_property(3), xcb_input_device_bell(3), xcb_input_get_device_button_mapping(3), xcb_input_get_device_control(3), xcb_input_get_device_dont_propagate_list(3), xcb_input_get_device_focus(3), xcb_input_get_device_key_mapping(3), xcb_input_get_device_modifier_mapping(3), xcb_input_get_device_motion_events(3), xcb_input_get_device_property(3), xcb_input_get_extension_version(3), xcb_input_get_feedback_control(3), xcb_input_get_selected_extension_events(3), xcb_input_grab_device(3), xcb_input_grab_device_button(3), xcb_input_grab_device_key(3), xcb_input_list_device_properties(3), xcb_input_list_input_devices(3), xcb_input_open_device(3), xcb_input_query_device_state(3), xcb_input_select_extension_event(3), xcb_input_send_extension_event(3), xcb_input_set_device_button_mapping(3), xcb_input_set_device_focus(3), xcb_input_set_device_mode(3), xcb_input_set_device_modifier_mapping(3), xcb_input_set_device_valuators(3), xcb_input_ungrab_device(3), xcb_input_ungrab_device_button(3), xcb_input_ungrab_device_key(3), xcb_input_xi_allow_events(3), xcb_input_xi_barrier_release_pointer(3), xcb_input_xi_change_cursor(3), xcb_input_xi_change_hierarchy(3), xcb_input_xi_change_property(3), xcb_input_xi_delete_property(3), xcb_input_xi_get_client_pointer(3), xcb_input_xi_get_focus(3), xcb_input_xi_get_property(3), xcb_input_xi_get_selected_events(3), xcb_input_xi_grab_device(3), xcb_input_xi_list_properties(3), xcb_input_xi_passive_grab_device(3), xcb_input_xi_passive_ungrab_device(3), xcb_input_xi_query_device(3), xcb_input_xi_query_pointer(3), xcb_input_xi_query_version(3), xcb_input_xi_select_events(3), xcb_input_xi_set_client_pointer(3), xcb_input_xi_set_focus(3), xcb_input_xi_ungrab_device(3), xcb_input_xi_warp_pointer(3), xcb_install_colormap(3), xcb_intern_atom(3), xcb_kill_client(3), xcb_list_extensions(3), xcb_list_fonts(3), xcb_list_fonts_with_info(3), xcb_list_hosts(3), xcb_list_installed_colormaps(3), xcb_list_properties(3), xcb_lookup_color(3), xcb_map_subwindows(3), xcb_map_window(3), xcb_no_operation(3), xcb_open_font(3), xcb_poly_arc(3), xcb_poly_fill_arc(3), xcb_poly_fill_rectangle(3), xcb_poly_line(3), xcb_poly_point(3), xcb_poly_rectangle(3), xcb_poly_segment(3), xcb_poly_text_16(3), xcb_poly_text_8(3), xcb_present_notify_msc(3), xcb_present_pixmap(3), xcb_present_query_capabilities(3), xcb_present_query_version(3), xcb_present_select_input(3), xcb_put_image(3), xcb_query_best_size(3), xcb_query_colors(3), xcb_query_extension(3), xcb_query_font(3), xcb_query_keymap(3), xcb_query_pointer(3), xcb_query_text_extents(3), xcb_query_tree(3), xcb_randr_add_output_mode(3), xcb_randr_change_output_property(3), xcb_randr_change_provider_property(3), xcb_randr_configure_output_property(3), xcb_randr_configure_provider_property(3), xcb_randr_create_mode(3), xcb_randr_delete_monitor(3), xcb_randr_delete_output_mode(3), xcb_randr_delete_output_property(3), xcb_randr_delete_provider_property(3), xcb_randr_destroy_mode(3), xcb_randr_get_crtc_gamma(3), xcb_randr_get_crtc_gamma_size(3), xcb_randr_get_crtc_info(3), xcb_randr_get_crtc_transform(3), xcb_randr_get_monitors(3), xcb_randr_get_output_info(3), xcb_randr_get_output_primary(3), xcb_randr_get_output_property(3), xcb_randr_get_panning(3), xcb_randr_get_provider_info(3), xcb_randr_get_provider_property(3), xcb_randr_get_providers(3), xcb_randr_get_screen_info(3), xcb_randr_get_screen_resources(3), xcb_randr_get_screen_resources_current(3), xcb_randr_get_screen_size_range(3), xcb_randr_list_output_properties(3), xcb_randr_list_provider_properties(3), xcb_randr_query_output_property(3), xcb_randr_query_provider_property(3), xcb_randr_query_version(3), xcb_randr_select_input(3), xcb_randr_set_crtc_config(3), xcb_randr_set_crtc_gamma(3), xcb_randr_set_crtc_transform(3), xcb_randr_set_monitor(3), xcb_randr_set_output_primary(3), xcb_randr_set_panning(3), xcb_randr_set_provider_offload_sink(3), xcb_randr_set_provider_output_source(3), xcb_randr_set_screen_config(3), xcb_randr_set_screen_size(3), xcb_recolor_cursor(3), xcb_record_create_context(3), xcb_record_disable_context(3), xcb_record_enable_context(3), xcb_record_free_context(3), xcb_record_get_context(3), xcb_record_query_version(3), xcb_record_register_clients(3), xcb_record_unregister_clients(3), xcb_render_add_glyphs(3), xcb_render_add_traps(3), xcb_render_change_picture(3), xcb_render_composite(3), xcb_render_composite_glyphs_16(3), xcb_render_composite_glyphs_32(3), xcb_render_composite_glyphs_8(3), xcb_render_create_anim_cursor(3), xcb_render_create_conical_gradient(3), xcb_render_create_cursor(3), xcb_render_create_glyph_set(3), xcb_render_create_linear_gradient(3), xcb_render_create_picture(3), xcb_render_create_radial_gradient(3), xcb_render_create_solid_fill(3), xcb_render_fill_rectangles(3), xcb_render_free_glyphs(3), xcb_render_free_glyph_set(3), xcb_render_free_picture(3), xcb_render_query_filters(3), xcb_render_query_pict_formats(3), xcb_render_query_pict_index_values(3), xcb_render_query_version(3), xcb_render_reference_glyph_set(3), xcb_render_set_picture_clip_rectangles(3), xcb_render_set_picture_filter(3), xcb_render_set_picture_transform(3), xcb_render_trapezoids(3), xcb_render_triangles(3), xcb_render_tri_fan(3), xcb_render_tri_strip(3), xcb_reparent_window(3), xcb_res_query_client_ids(3), xcb_res_query_client_pixmap_bytes(3), xcb_res_query_client_resources(3), xcb_res_query_clients(3), xcb_res_query_resource_bytes(3), xcb_res_query_version(3), xcb_rotate_properties(3), xcb_screensaver_query_info(3), xcb_screensaver_query_version(3), xcb_screensaver_select_input(3), xcb_screensaver_set_attributes(3), xcb_screensaver_suspend(3), xcb_screensaver_unset_attributes(3), xcb_selinux_get_client_context(3), xcb_selinux_get_device_context(3), xcb_selinux_get_device_create_context(3), xcb_selinux_get_property_context(3), xcb_selinux_get_property_create_context(3), xcb_selinux_get_property_data_context(3), xcb_selinux_get_property_use_context(3), xcb_selinux_get_selection_context(3), xcb_selinux_get_selection_create_context(3), xcb_selinux_get_selection_data_context(3), xcb_selinux_get_selection_use_context(3), xcb_selinux_get_window_context(3), xcb_selinux_get_window_create_context(3), xcb_selinux_list_properties(3), xcb_selinux_list_selections(3), xcb_selinux_query_version(3), xcb_selinux_set_device_context(3), xcb_selinux_set_device_create_context(3), xcb_selinux_set_property_create_context(3), xcb_selinux_set_property_use_context(3), xcb_selinux_set_selection_create_context(3), xcb_selinux_set_selection_use_context(3), xcb_selinux_set_window_create_context(3), xcb_send_event(3), xcb_set_access_control(3), xcb_set_clip_rectangles(3), xcb_set_close_down_mode(3), xcb_set_dashes(3), xcb_set_font_path(3), xcb_set_input_focus(3), xcb_set_modifier_mapping(3), xcb_set_pointer_mapping(3), xcb_set_screen_saver(3), xcb_set_selection_owner(3), xcb_shape_combine(3), xcb_shape_get_rectangles(3), xcb_shape_input_selected(3), xcb_shape_mask(3), xcb_shape_offset(3), xcb_shape_query_extents(3), xcb_shape_query_version(3), xcb_shape_rectangles(3), xcb_shape_select_input(3), xcb_shm_attach(3), xcb_shm_attach_fd(3), xcb_shm_create_pixmap(3), xcb_shm_create_segment(3), xcb_shm_detach(3), xcb_shm_get_image(3), xcb_shm_put_image(3), xcb_shm_query_version(3), xcb_store_colors(3), xcb_store_named_color(3), xcb_sync_await(3), xcb_sync_await_fence(3), xcb_sync_change_alarm(3), xcb_sync_change_counter(3), xcb_sync_create_alarm(3), xcb_sync_create_counter(3), xcb_sync_create_fence(3), xcb_sync_destroy_alarm(3), xcb_sync_destroy_counter(3), xcb_sync_destroy_fence(3), xcb_sync_get_priority(3), xcb_sync_initialize(3), xcb_sync_list_system_counters(3), xcb_sync_query_alarm(3), xcb_sync_query_counter(3), xcb_sync_query_fence(3), xcb_sync_reset_fence(3), xcb_sync_set_counter(3), xcb_sync_set_priority(3), xcb_sync_trigger_fence(3), xcb_test_compare_cursor(3), xcb_test_fake_input(3), xcb_test_get_version(3), xcb_test_grab_control(3), xcb_translate_coordinates(3), xcb_ungrab_button(3), xcb_ungrab_key(3), xcb_ungrab_keyboard(3), xcb_ungrab_pointer(3), xcb_ungrab_server(3), xcb_uninstall_colormap(3), xcb_unmap_subwindows(3), xcb_unmap_window(3), xcb_warp_pointer(3), xcb_xc_misc_get_version(3), xcb_xc_misc_get_xid_list(3), xcb_xc_misc_get_xid_range(3), xcb_xevie_end(3), xcb_xevie_query_version(3), xcb_xevie_select_input(3), xcb_xevie_send(3), xcb_xevie_start(3), xcb_xf86dri_auth_connection(3), xcb_xf86dri_close_connection(3), xcb_xf86dri_create_context(3), xcb_xf86dri_create_drawable(3), xcb_xf86dri_destroy_context(3), xcb_xf86dri_destroy_drawable(3), xcb_xf86dri_get_client_driver_name(3), xcb_xf86dri_get_device_info(3), xcb_xf86dri_get_drawable_info(3), xcb_xf86dri_open_connection(3), xcb_xf86dri_query_direct_rendering_capable(3), xcb_xf86dri_query_version(3), xcb_xfixes_change_cursor(3), xcb_xfixes_change_cursor_by_name(3), xcb_xfixes_change_save_set(3), xcb_xfixes_copy_region(3), xcb_xfixes_create_pointer_barrier(3), xcb_xfixes_create_region(3), xcb_xfixes_create_region_from_bitmap(3), xcb_xfixes_create_region_from_gc(3), xcb_xfixes_create_region_from_picture(3), xcb_xfixes_create_region_from_window(3), xcb_xfixes_delete_pointer_barrier(3), xcb_xfixes_destroy_region(3), xcb_xfixes_expand_region(3), xcb_xfixes_fetch_region(3), xcb_xfixes_get_cursor_image(3), xcb_xfixes_get_cursor_image_and_name(3), xcb_xfixes_get_cursor_name(3), xcb_xfixes_hide_cursor(3), xcb_xfixes_intersect_region(3), xcb_xfixes_invert_region(3), xcb_xfixes_query_version(3), xcb_xfixes_region_extents(3), xcb_xfixes_select_cursor_input(3), xcb_xfixes_select_selection_input(3), xcb_xfixes_set_cursor_name(3), xcb_xfixes_set_gc_clip_region(3), xcb_xfixes_set_picture_clip_region(3), xcb_xfixes_set_region(3), xcb_xfixes_set_window_shape_region(3), xcb_xfixes_show_cursor(3), xcb_xfixes_subtract_region(3), xcb_xfixes_translate_region(3), xcb_xfixes_union_region(3), xcb_xinerama_get_screen_count(3), xcb_xinerama_get_screen_size(3), xcb_xinerama_get_state(3), xcb_xinerama_is_active(3), xcb_xinerama_query_screens(3), xcb_xinerama_query_version(3), xcb_xkb_bell(3), xcb_xkb_get_compat_map(3), xcb_xkb_get_controls(3), xcb_xkb_get_device_info(3), xcb_xkb_get_indicator_map(3), xcb_xkb_get_indicator_state(3), xcb_xkb_get_kbd_by_name(3), xcb_xkb_get_map(3), xcb_xkb_get_named_indicator(3), xcb_xkb_get_names(3), xcb_xkb_get_state(3), xcb_xkb_latch_lock_state(3), xcb_xkb_list_components(3), xcb_xkb_per_client_flags(3), xcb_xkb_select_events(3), xcb_xkb_set_compat_map(3), xcb_xkb_set_controls(3), xcb_xkb_set_debugging_flags(3), xcb_xkb_set_device_info(3), xcb_xkb_set_indicator_map(3), xcb_xkb_set_map(3), xcb_xkb_set_named_indicator(3), xcb_xkb_set_names(3), xcb_xkb_use_extension(3), xcb_x_print_create_context(3), xcb_x_print_print_destroy_context(3), xcb_x_print_print_end_doc(3), xcb_x_print_print_end_job(3), xcb_x_print_print_end_page(3), xcb_x_print_print_get_attributes(3), xcb_x_print_print_get_context(3), xcb_x_print_print_get_document_data(3), xcb_x_print_print_get_image_resolution(3), xcb_x_print_print_get_one_attributes(3), xcb_x_print_print_get_page_dimensions(3), xcb_x_print_print_get_printer_list(3), xcb_x_print_print_get_screen_of_context(3), xcb_x_print_print_input_selected(3), xcb_x_print_print_put_document_data(3), xcb_x_print_print_query_screens(3), xcb_x_print_print_query_version(3), xcb_x_print_print_rehash_printer_list(3), xcb_x_print_print_select_input(3), xcb_x_print_print_set_attributes(3), xcb_x_print_print_set_context(3), xcb_x_print_print_set_image_resolution(3), xcb_x_print_print_start_doc(3), xcb_x_print_print_start_job(3), xcb_x_print_print_start_page(3), xcb_xv_get_port_attribute(3), xcb_xv_get_still(3), xcb_xv_get_video(3), xcb_xv_grab_port(3), xcb_xv_list_image_formats(3), xcb_xvmc_create_context(3), xcb_xvmc_create_subpicture(3), xcb_xvmc_create_surface(3), xcb_xvmc_destroy_context(3), xcb_xvmc_destroy_subpicture(3), xcb_xvmc_destroy_surface(3), xcb_xvmc_list_subpicture_types(3), xcb_xvmc_list_surface_types(3), xcb_xvmc_query_version(3), xcb_xv_put_image(3), xcb_xv_put_still(3), xcb_xv_put_video(3), xcb_xv_query_adaptors(3), xcb_xv_query_best_size(3), xcb_xv_query_encodings(3), xcb_xv_query_extension(3), xcb_xv_query_image_attributes(3), xcb_xv_query_port_attributes(3), xcb_xv_select_port_notify(3), xcb_xv_select_video_notify(3), xcb_xv_set_port_attribute(3), xcb_xv_shm_put_image(3), xcb_xv_stop_video(3), xcb_xv_ungrab_port(3).

libxcb 1.12 X Version 11 XCB examples