XCB
1.11.1
|
XCB Protocol Implementation. More...
XCB Protocol Implementation.
#define XCB_ACCESS 10 |
Opcode for xcb_access.
#define XCB_ALLOC 11 |
Opcode for xcb_alloc.
#define XCB_ALLOC_COLOR 84 |
Opcode for xcb_alloc_color.
Referenced by xcb_alloc_color(), and xcb_alloc_color_unchecked().
#define XCB_ALLOC_COLOR_CELLS 86 |
Opcode for xcb_alloc_color_cells.
Referenced by xcb_alloc_color_cells(), and xcb_alloc_color_cells_unchecked().
#define XCB_ALLOC_COLOR_PLANES 87 |
Opcode for xcb_alloc_color_planes.
Referenced by xcb_alloc_color_planes(), and xcb_alloc_color_planes_unchecked().
#define XCB_ALLOC_NAMED_COLOR 85 |
Opcode for xcb_alloc_named_color.
Referenced by xcb_alloc_named_color(), and xcb_alloc_named_color_unchecked().
#define XCB_ALLOW_EVENTS 35 |
Opcode for xcb_allow_events.
Referenced by xcb_allow_events(), and xcb_allow_events_checked().
#define XCB_ATOM 5 |
Opcode for xcb_atom.
#define XCB_BELL 104 |
Opcode for xcb_bell.
Referenced by xcb_bell(), and xcb_bell_checked().
#define XCB_BUTTON_PRESS 4 |
Opcode for xcb_button_press.
#define XCB_BUTTON_RELEASE 5 |
Opcode for xcb_button_release.
#define XCB_CHANGE_ACTIVE_POINTER_GRAB 30 |
Opcode for xcb_change_active_pointer_grab.
Referenced by xcb_change_active_pointer_grab(), and xcb_change_active_pointer_grab_checked().
#define XCB_CHANGE_GC 56 |
Opcode for xcb_change_gc.
Referenced by xcb_change_gc(), and xcb_change_gc_checked().
#define XCB_CHANGE_HOSTS 109 |
Opcode for xcb_change_hosts.
Referenced by xcb_change_hosts(), and xcb_change_hosts_checked().
#define XCB_CHANGE_KEYBOARD_CONTROL 102 |
Opcode for xcb_change_keyboard_control.
Referenced by xcb_change_keyboard_control(), and xcb_change_keyboard_control_checked().
#define XCB_CHANGE_KEYBOARD_MAPPING 100 |
Opcode for xcb_change_keyboard_mapping.
Referenced by xcb_change_keyboard_mapping(), and xcb_change_keyboard_mapping_checked().
#define XCB_CHANGE_POINTER_CONTROL 105 |
Opcode for xcb_change_pointer_control.
Referenced by xcb_change_pointer_control(), and xcb_change_pointer_control_checked().
#define XCB_CHANGE_PROPERTY 18 |
Opcode for xcb_change_property.
Referenced by xcb_change_property(), and xcb_change_property_checked().
#define XCB_CHANGE_SAVE_SET 6 |
Opcode for xcb_change_save_set.
Referenced by xcb_change_save_set(), and xcb_change_save_set_checked().
#define XCB_CHANGE_WINDOW_ATTRIBUTES 2 |
Opcode for xcb_change_window_attributes.
Referenced by xcb_change_window_attributes(), and xcb_change_window_attributes_checked().
#define XCB_CIRCULATE_NOTIFY 26 |
Opcode for xcb_circulate_notify.
#define XCB_CIRCULATE_REQUEST 27 |
Opcode for xcb_circulate_request.
#define XCB_CIRCULATE_WINDOW 13 |
Opcode for xcb_circulate_window.
Referenced by xcb_circulate_window(), and xcb_circulate_window_checked().
#define XCB_CLEAR_AREA 61 |
Opcode for xcb_clear_area.
Referenced by xcb_clear_area(), and xcb_clear_area_checked().
#define XCB_CLIENT_MESSAGE 33 |
Opcode for xcb_client_message.
#define XCB_CLOSE_FONT 46 |
Opcode for xcb_close_font.
Referenced by xcb_close_font(), and xcb_close_font_checked().
#define XCB_COLORMAP 12 |
Opcode for xcb_colormap.
#define XCB_COLORMAP_NOTIFY 32 |
Opcode for xcb_colormap_notify.
#define XCB_CONFIGURE_NOTIFY 22 |
Opcode for xcb_configure_notify.
#define XCB_CONFIGURE_REQUEST 23 |
Opcode for xcb_configure_request.
#define XCB_CONFIGURE_WINDOW 12 |
Opcode for xcb_configure_window.
Referenced by xcb_configure_window(), and xcb_configure_window_checked().
#define XCB_CONVERT_SELECTION 24 |
Opcode for xcb_convert_selection.
Referenced by xcb_convert_selection(), and xcb_convert_selection_checked().
#define XCB_COPY_AREA 62 |
Opcode for xcb_copy_area.
Referenced by xcb_copy_area(), and xcb_copy_area_checked().
#define XCB_COPY_COLORMAP_AND_FREE 80 |
Opcode for xcb_copy_colormap_and_free.
Referenced by xcb_copy_colormap_and_free(), and xcb_copy_colormap_and_free_checked().
#define XCB_COPY_GC 57 |
Opcode for xcb_copy_gc.
Referenced by xcb_copy_gc(), and xcb_copy_gc_checked().
#define XCB_COPY_PLANE 63 |
Opcode for xcb_copy_plane.
Referenced by xcb_copy_plane(), and xcb_copy_plane_checked().
#define XCB_CREATE_COLORMAP 78 |
Opcode for xcb_create_colormap.
Referenced by xcb_create_colormap(), and xcb_create_colormap_checked().
#define XCB_CREATE_CURSOR 93 |
Opcode for xcb_create_cursor.
Referenced by xcb_create_cursor(), and xcb_create_cursor_checked().
#define XCB_CREATE_GC 55 |
Opcode for xcb_create_gc.
Referenced by xcb_create_gc(), and xcb_create_gc_checked().
#define XCB_CREATE_GLYPH_CURSOR 94 |
Opcode for xcb_create_glyph_cursor.
Referenced by xcb_create_glyph_cursor(), and xcb_create_glyph_cursor_checked().
#define XCB_CREATE_NOTIFY 16 |
Opcode for xcb_create_notify.
#define XCB_CREATE_PIXMAP 53 |
Opcode for xcb_create_pixmap.
Referenced by xcb_create_pixmap(), and xcb_create_pixmap_checked().
#define XCB_CREATE_WINDOW 1 |
Opcode for xcb_create_window.
Referenced by xcb_create_window(), and xcb_create_window_checked().
#define XCB_CURSOR 6 |
Opcode for xcb_cursor.
#define XCB_DELETE_PROPERTY 19 |
Opcode for xcb_delete_property.
Referenced by xcb_delete_property(), and xcb_delete_property_checked().
#define XCB_DESTROY_NOTIFY 17 |
Opcode for xcb_destroy_notify.
#define XCB_DESTROY_SUBWINDOWS 5 |
Opcode for xcb_destroy_subwindows.
Referenced by xcb_destroy_subwindows(), and xcb_destroy_subwindows_checked().
#define XCB_DESTROY_WINDOW 4 |
Opcode for xcb_destroy_window.
Referenced by xcb_destroy_window(), and xcb_destroy_window_checked().
#define XCB_DRAWABLE 9 |
Opcode for xcb_drawable.
#define XCB_ENTER_NOTIFY 7 |
Opcode for xcb_enter_notify.
#define XCB_EXPOSE 12 |
Opcode for xcb_expose.
#define XCB_FILL_POLY 69 |
Opcode for xcb_fill_poly.
Referenced by xcb_fill_poly(), and xcb_fill_poly_checked().
#define XCB_FOCUS_IN 9 |
Opcode for xcb_focus_in.
#define XCB_FOCUS_OUT 10 |
Opcode for xcb_focus_out.
#define XCB_FONT 7 |
Opcode for xcb_font.
#define XCB_FORCE_SCREEN_SAVER 115 |
Opcode for xcb_force_screen_saver.
Referenced by xcb_force_screen_saver(), and xcb_force_screen_saver_checked().
#define XCB_FREE_COLORMAP 79 |
Opcode for xcb_free_colormap.
Referenced by xcb_free_colormap(), and xcb_free_colormap_checked().
#define XCB_FREE_COLORS 88 |
Opcode for xcb_free_colors.
Referenced by xcb_free_colors(), and xcb_free_colors_checked().
#define XCB_FREE_CURSOR 95 |
Opcode for xcb_free_cursor.
Referenced by xcb_free_cursor(), and xcb_free_cursor_checked().
#define XCB_FREE_GC 60 |
Opcode for xcb_free_gc.
Referenced by xcb_free_gc(), and xcb_free_gc_checked().
#define XCB_FREE_PIXMAP 54 |
Opcode for xcb_free_pixmap.
Referenced by xcb_free_pixmap(), and xcb_free_pixmap_checked().
#define XCB_G_CONTEXT 13 |
Opcode for xcb_g_context.
#define XCB_GE_GENERIC 35 |
Opcode for xcb_ge_generic.
#define XCB_GET_ATOM_NAME 17 |
Opcode for xcb_get_atom_name.
Referenced by xcb_get_atom_name(), and xcb_get_atom_name_unchecked().
#define XCB_GET_FONT_PATH 52 |
Opcode for xcb_get_font_path.
Referenced by xcb_get_font_path(), and xcb_get_font_path_unchecked().
#define XCB_GET_GEOMETRY 14 |
Opcode for xcb_get_geometry.
Referenced by xcb_get_geometry(), and xcb_get_geometry_unchecked().
#define XCB_GET_IMAGE 73 |
Opcode for xcb_get_image.
Referenced by xcb_get_image(), and xcb_get_image_unchecked().
#define XCB_GET_INPUT_FOCUS 43 |
Opcode for xcb_get_input_focus.
Referenced by xcb_get_input_focus(), and xcb_get_input_focus_unchecked().
#define XCB_GET_KEYBOARD_CONTROL 103 |
Opcode for xcb_get_keyboard_control.
Referenced by xcb_get_keyboard_control(), and xcb_get_keyboard_control_unchecked().
#define XCB_GET_KEYBOARD_MAPPING 101 |
Opcode for xcb_get_keyboard_mapping.
Referenced by xcb_get_keyboard_mapping(), and xcb_get_keyboard_mapping_unchecked().
#define XCB_GET_MODIFIER_MAPPING 119 |
Opcode for xcb_get_modifier_mapping.
Referenced by xcb_get_modifier_mapping(), and xcb_get_modifier_mapping_unchecked().
#define XCB_GET_MOTION_EVENTS 39 |
Opcode for xcb_get_motion_events.
Referenced by xcb_get_motion_events(), and xcb_get_motion_events_unchecked().
#define XCB_GET_POINTER_CONTROL 106 |
Opcode for xcb_get_pointer_control.
Referenced by xcb_get_pointer_control(), and xcb_get_pointer_control_unchecked().
#define XCB_GET_POINTER_MAPPING 117 |
Opcode for xcb_get_pointer_mapping.
Referenced by xcb_get_pointer_mapping(), and xcb_get_pointer_mapping_unchecked().
#define XCB_GET_PROPERTY 20 |
Opcode for xcb_get_property.
Referenced by xcb_get_property(), and xcb_get_property_unchecked().
#define XCB_GET_SCREEN_SAVER 108 |
Opcode for xcb_get_screen_saver.
Referenced by xcb_get_screen_saver(), and xcb_get_screen_saver_unchecked().
#define XCB_GET_SELECTION_OWNER 23 |
Opcode for xcb_get_selection_owner.
Referenced by xcb_get_selection_owner(), and xcb_get_selection_owner_unchecked().
#define XCB_GET_WINDOW_ATTRIBUTES 3 |
Opcode for xcb_get_window_attributes.
Referenced by xcb_get_window_attributes(), and xcb_get_window_attributes_unchecked().
#define XCB_GRAB_BUTTON 28 |
Opcode for xcb_grab_button.
Referenced by xcb_grab_button(), and xcb_grab_button_checked().
#define XCB_GRAB_KEY 33 |
Opcode for xcb_grab_key.
Referenced by xcb_grab_key(), and xcb_grab_key_checked().
#define XCB_GRAB_KEYBOARD 31 |
Opcode for xcb_grab_keyboard.
Referenced by xcb_grab_keyboard(), and xcb_grab_keyboard_unchecked().
#define XCB_GRAB_POINTER 26 |
Opcode for xcb_grab_pointer.
Referenced by xcb_grab_pointer(), and xcb_grab_pointer_unchecked().
#define XCB_GRAB_SERVER 36 |
Opcode for xcb_grab_server.
Referenced by xcb_grab_server(), and xcb_grab_server_checked().
#define XCB_GRAPHICS_EXPOSURE 13 |
Opcode for xcb_graphics_exposure.
#define XCB_GRAVITY_NOTIFY 24 |
Opcode for xcb_gravity_notify.
#define XCB_ID_CHOICE 14 |
Opcode for xcb_id_choice.
#define XCB_IMAGE_TEXT_16 77 |
Opcode for xcb_image_text_16.
Referenced by xcb_image_text_16(), and xcb_image_text_16_checked().
#define XCB_IMAGE_TEXT_8 76 |
Opcode for xcb_image_text_8.
Referenced by xcb_image_text_8(), and xcb_image_text_8_checked().
#define XCB_IMPLEMENTATION 17 |
Opcode for xcb_implementation.
#define XCB_INSTALL_COLORMAP 81 |
Opcode for xcb_install_colormap.
Referenced by xcb_install_colormap(), and xcb_install_colormap_checked().
#define XCB_INTERN_ATOM 16 |
Opcode for xcb_intern_atom.
Referenced by xcb_intern_atom(), and xcb_intern_atom_unchecked().
#define XCB_KEY_PRESS 2 |
Opcode for xcb_key_press.
#define XCB_KEY_RELEASE 3 |
Opcode for xcb_key_release.
#define XCB_KEYMAP_NOTIFY 11 |
Opcode for xcb_keymap_notify.
#define XCB_KILL_CLIENT 113 |
Opcode for xcb_kill_client.
Referenced by xcb_kill_client(), and xcb_kill_client_checked().
#define XCB_LEAVE_NOTIFY 8 |
Opcode for xcb_leave_notify.
#define XCB_LENGTH 16 |
Opcode for xcb_length.
#define XCB_LIST_EXTENSIONS 99 |
Opcode for xcb_list_extensions.
Referenced by xcb_list_extensions(), and xcb_list_extensions_unchecked().
#define XCB_LIST_FONTS 49 |
Opcode for xcb_list_fonts.
Referenced by xcb_list_fonts(), and xcb_list_fonts_unchecked().
#define XCB_LIST_FONTS_WITH_INFO 50 |
Opcode for xcb_list_fonts_with_info.
Referenced by xcb_list_fonts_with_info(), and xcb_list_fonts_with_info_unchecked().
#define XCB_LIST_HOSTS 110 |
Opcode for xcb_list_hosts.
Referenced by xcb_list_hosts(), and xcb_list_hosts_unchecked().
#define XCB_LIST_INSTALLED_COLORMAPS 83 |
Opcode for xcb_list_installed_colormaps.
Referenced by xcb_list_installed_colormaps(), and xcb_list_installed_colormaps_unchecked().
#define XCB_LIST_PROPERTIES 21 |
Opcode for xcb_list_properties.
Referenced by xcb_list_properties(), and xcb_list_properties_unchecked().
#define XCB_LOOKUP_COLOR 92 |
Opcode for xcb_lookup_color.
Referenced by xcb_lookup_color(), and xcb_lookup_color_unchecked().
#define XCB_MAP_NOTIFY 19 |
Opcode for xcb_map_notify.
#define XCB_MAP_REQUEST 20 |
Opcode for xcb_map_request.
#define XCB_MAP_SUBWINDOWS 9 |
Opcode for xcb_map_subwindows.
Referenced by xcb_map_subwindows(), and xcb_map_subwindows_checked().
#define XCB_MAP_WINDOW 8 |
Opcode for xcb_map_window.
Referenced by xcb_map_window(), and xcb_map_window_checked().
#define XCB_MAPPING_NOTIFY 34 |
Opcode for xcb_mapping_notify.
#define XCB_MATCH 8 |
Opcode for xcb_match.
#define XCB_MOTION_NOTIFY 6 |
Opcode for xcb_motion_notify.
#define XCB_NAME 15 |
Opcode for xcb_name.
#define XCB_NO_EXPOSURE 14 |
Opcode for xcb_no_exposure.
#define XCB_NO_OPERATION 127 |
Opcode for xcb_no_operation.
Referenced by xcb_no_operation(), and xcb_no_operation_checked().
#define XCB_OPEN_FONT 45 |
Opcode for xcb_open_font.
Referenced by xcb_open_font(), and xcb_open_font_checked().
#define XCB_PIXMAP 4 |
Opcode for xcb_pixmap.
#define XCB_POLY_ARC 68 |
Opcode for xcb_poly_arc.
Referenced by xcb_poly_arc(), and xcb_poly_arc_checked().
#define XCB_POLY_FILL_ARC 71 |
Opcode for xcb_poly_fill_arc.
Referenced by xcb_poly_fill_arc(), and xcb_poly_fill_arc_checked().
#define XCB_POLY_FILL_RECTANGLE 70 |
Opcode for xcb_poly_fill_rectangle.
Referenced by xcb_poly_fill_rectangle(), and xcb_poly_fill_rectangle_checked().
#define XCB_POLY_LINE 65 |
Opcode for xcb_poly_line.
Referenced by xcb_poly_line(), and xcb_poly_line_checked().
#define XCB_POLY_POINT 64 |
Opcode for xcb_poly_point.
Referenced by xcb_poly_point(), and xcb_poly_point_checked().
#define XCB_POLY_RECTANGLE 67 |
Opcode for xcb_poly_rectangle.
Referenced by xcb_poly_rectangle(), and xcb_poly_rectangle_checked().
#define XCB_POLY_SEGMENT 66 |
Opcode for xcb_poly_segment.
Referenced by xcb_poly_segment(), and xcb_poly_segment_checked().
#define XCB_POLY_TEXT_16 75 |
Opcode for xcb_poly_text_16.
Referenced by xcb_poly_text_16(), and xcb_poly_text_16_checked().
#define XCB_POLY_TEXT_8 74 |
Opcode for xcb_poly_text_8.
Referenced by xcb_poly_text_8(), and xcb_poly_text_8_checked().
#define XCB_PROPERTY_NOTIFY 28 |
Opcode for xcb_property_notify.
#define XCB_PUT_IMAGE 72 |
Opcode for xcb_put_image.
Referenced by xcb_put_image(), and xcb_put_image_checked().
#define XCB_QUERY_BEST_SIZE 97 |
Opcode for xcb_query_best_size.
Referenced by xcb_query_best_size(), and xcb_query_best_size_unchecked().
#define XCB_QUERY_COLORS 91 |
Opcode for xcb_query_colors.
Referenced by xcb_query_colors(), and xcb_query_colors_unchecked().
#define XCB_QUERY_EXTENSION 98 |
Opcode for xcb_query_extension.
Referenced by xcb_query_extension(), and xcb_query_extension_unchecked().
#define XCB_QUERY_FONT 47 |
Opcode for xcb_query_font.
Referenced by xcb_query_font(), and xcb_query_font_unchecked().
#define XCB_QUERY_KEYMAP 44 |
Opcode for xcb_query_keymap.
Referenced by xcb_query_keymap(), and xcb_query_keymap_unchecked().
#define XCB_QUERY_POINTER 38 |
Opcode for xcb_query_pointer.
Referenced by xcb_query_pointer(), and xcb_query_pointer_unchecked().
#define XCB_QUERY_TEXT_EXTENTS 48 |
Opcode for xcb_query_text_extents.
Referenced by xcb_query_text_extents(), and xcb_query_text_extents_unchecked().
#define XCB_QUERY_TREE 15 |
Opcode for xcb_query_tree.
Referenced by xcb_query_tree(), and xcb_query_tree_unchecked().
#define XCB_RECOLOR_CURSOR 96 |
Opcode for xcb_recolor_cursor.
Referenced by xcb_recolor_cursor(), and xcb_recolor_cursor_checked().
#define XCB_REPARENT_NOTIFY 21 |
Opcode for xcb_reparent_notify.
#define XCB_REPARENT_WINDOW 7 |
Opcode for xcb_reparent_window.
Referenced by xcb_reparent_window(), and xcb_reparent_window_checked().
#define XCB_REQUEST 1 |
Opcode for xcb_request.
#define XCB_RESIZE_REQUEST 25 |
Opcode for xcb_resize_request.
#define XCB_ROTATE_PROPERTIES 114 |
Opcode for xcb_rotate_properties.
Referenced by xcb_rotate_properties(), and xcb_rotate_properties_checked().
#define XCB_SELECTION_CLEAR 29 |
Opcode for xcb_selection_clear.
#define XCB_SELECTION_NOTIFY 31 |
Opcode for xcb_selection_notify.
#define XCB_SELECTION_REQUEST 30 |
Opcode for xcb_selection_request.
#define XCB_SEND_EVENT 25 |
Opcode for xcb_send_event.
Referenced by xcb_send_event(), and xcb_send_event_checked().
#define XCB_SET_ACCESS_CONTROL 111 |
Opcode for xcb_set_access_control.
Referenced by xcb_set_access_control(), and xcb_set_access_control_checked().
#define XCB_SET_CLIP_RECTANGLES 59 |
Opcode for xcb_set_clip_rectangles.
Referenced by xcb_set_clip_rectangles(), and xcb_set_clip_rectangles_checked().
#define XCB_SET_CLOSE_DOWN_MODE 112 |
Opcode for xcb_set_close_down_mode.
Referenced by xcb_set_close_down_mode(), and xcb_set_close_down_mode_checked().
#define XCB_SET_DASHES 58 |
Opcode for xcb_set_dashes.
Referenced by xcb_set_dashes(), and xcb_set_dashes_checked().
#define XCB_SET_FONT_PATH 51 |
Opcode for xcb_set_font_path.
Referenced by xcb_set_font_path(), and xcb_set_font_path_checked().
#define XCB_SET_INPUT_FOCUS 42 |
Opcode for xcb_set_input_focus.
Referenced by xcb_set_input_focus(), and xcb_set_input_focus_checked().
#define XCB_SET_MODIFIER_MAPPING 118 |
Opcode for xcb_set_modifier_mapping.
Referenced by xcb_set_modifier_mapping(), and xcb_set_modifier_mapping_unchecked().
#define XCB_SET_POINTER_MAPPING 116 |
Opcode for xcb_set_pointer_mapping.
Referenced by xcb_set_pointer_mapping(), and xcb_set_pointer_mapping_unchecked().
#define XCB_SET_SCREEN_SAVER 107 |
Opcode for xcb_set_screen_saver.
Referenced by xcb_set_screen_saver(), and xcb_set_screen_saver_checked().
#define XCB_SET_SELECTION_OWNER 22 |
Opcode for xcb_set_selection_owner.
Referenced by xcb_set_selection_owner(), and xcb_set_selection_owner_checked().
#define XCB_STORE_COLORS 89 |
Opcode for xcb_store_colors.
Referenced by xcb_store_colors(), and xcb_store_colors_checked().
#define XCB_STORE_NAMED_COLOR 90 |
Opcode for xcb_store_named_color.
Referenced by xcb_store_named_color(), and xcb_store_named_color_checked().
#define XCB_TRANSLATE_COORDINATES 40 |
Opcode for xcb_translate_coordinates.
Referenced by xcb_translate_coordinates(), and xcb_translate_coordinates_unchecked().
#define XCB_UNGRAB_BUTTON 29 |
Opcode for xcb_ungrab_button.
Referenced by xcb_ungrab_button(), and xcb_ungrab_button_checked().
#define XCB_UNGRAB_KEY 34 |
Opcode for xcb_ungrab_key.
Referenced by xcb_ungrab_key(), and xcb_ungrab_key_checked().
#define XCB_UNGRAB_KEYBOARD 32 |
Opcode for xcb_ungrab_keyboard.
Referenced by xcb_ungrab_keyboard(), and xcb_ungrab_keyboard_checked().
#define XCB_UNGRAB_POINTER 27 |
Opcode for xcb_ungrab_pointer.
Referenced by xcb_ungrab_pointer(), and xcb_ungrab_pointer_checked().
#define XCB_UNGRAB_SERVER 37 |
Opcode for xcb_ungrab_server.
Referenced by xcb_ungrab_server(), and xcb_ungrab_server_checked().
#define XCB_UNINSTALL_COLORMAP 82 |
Opcode for xcb_uninstall_colormap.
Referenced by xcb_uninstall_colormap(), and xcb_uninstall_colormap_checked().
#define XCB_UNMAP_NOTIFY 18 |
Opcode for xcb_unmap_notify.
#define XCB_UNMAP_SUBWINDOWS 11 |
Opcode for xcb_unmap_subwindows.
Referenced by xcb_unmap_subwindows(), and xcb_unmap_subwindows_checked().
#define XCB_UNMAP_WINDOW 10 |
Opcode for xcb_unmap_window.
Referenced by xcb_unmap_window(), and xcb_unmap_window_checked().
#define XCB_VALUE 2 |
Opcode for xcb_value.
#define XCB_VISIBILITY_NOTIFY 15 |
Opcode for xcb_visibility_notify.
#define XCB_WARP_POINTER 41 |
Opcode for xcb_warp_pointer.
Referenced by xcb_warp_pointer(), and xcb_warp_pointer_checked().
#define XCB_WINDOW 3 |
Opcode for xcb_window.
enum xcb_allow_t |
enum xcb_button_index_t |
enum xcb_colormap_state_t |
enum xcb_coord_mode_t |
enum xcb_cw_t |
enum xcb_gc_t |
enum xcb_grab_mode_t |
enum xcb_input_focus_t |
enum xcb_place_t |
enum xcb_prop_mode_t |
xcb_alloc_color_cookie_t xcb_alloc_color | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint16_t | red, | ||
uint16_t | green, | ||
uint16_t | blue | ||
) |
Allocate a color.
c | The connection |
cmap | TODO |
red | The red value of your color. |
green | The green value of your color. |
blue | The blue value of your color. |
Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware. If you are using TrueColor, you can take a shortcut and directly calculate the color pixel value to avoid the round trip. But, for example, on 16-bit color setups (VNC), you can easily get the closest supported RGB value to the RGB value you are specifying.
References xcb_alloc_color_request_t::blue, xcb_alloc_color_request_t::cmap, xcb_alloc_color_request_t::green, xcb_alloc_color_request_t::pad0, xcb_alloc_color_request_t::pad1, xcb_alloc_color_request_t::red, and XCB_ALLOC_COLOR.
xcb_alloc_color_cells_cookie_t xcb_alloc_color_cells | ( | xcb_connection_t * | c, |
uint8_t | contiguous, | ||
xcb_colormap_t | cmap, | ||
uint16_t | colors, | ||
uint16_t | planes | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_alloc_color_cells_request_t::cmap, xcb_alloc_color_cells_request_t::colors, xcb_alloc_color_cells_request_t::contiguous, xcb_alloc_color_cells_request_t::planes, and XCB_ALLOC_COLOR_CELLS.
xcb_alloc_color_cells_reply_t* xcb_alloc_color_cells_reply | ( | xcb_connection_t * | c, |
xcb_alloc_color_cells_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_alloc_color_cells_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_alloc_color_cells_cookie_t::sequence.
xcb_alloc_color_cells_cookie_t xcb_alloc_color_cells_unchecked | ( | xcb_connection_t * | c, |
uint8_t | contiguous, | ||
xcb_colormap_t | cmap, | ||
uint16_t | colors, | ||
uint16_t | planes | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_alloc_color_cells_request_t::cmap, xcb_alloc_color_cells_request_t::colors, xcb_alloc_color_cells_request_t::contiguous, xcb_alloc_color_cells_request_t::planes, and XCB_ALLOC_COLOR_CELLS.
xcb_alloc_color_planes_cookie_t xcb_alloc_color_planes | ( | xcb_connection_t * | c, |
uint8_t | contiguous, | ||
xcb_colormap_t | cmap, | ||
uint16_t | colors, | ||
uint16_t | reds, | ||
uint16_t | greens, | ||
uint16_t | blues | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_alloc_color_planes_request_t::blues, xcb_alloc_color_planes_request_t::cmap, xcb_alloc_color_planes_request_t::colors, xcb_alloc_color_planes_request_t::contiguous, xcb_alloc_color_planes_request_t::greens, xcb_alloc_color_planes_request_t::reds, and XCB_ALLOC_COLOR_PLANES.
xcb_alloc_color_planes_reply_t* xcb_alloc_color_planes_reply | ( | xcb_connection_t * | c, |
xcb_alloc_color_planes_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_alloc_color_planes_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_alloc_color_planes_cookie_t::sequence.
xcb_alloc_color_planes_cookie_t xcb_alloc_color_planes_unchecked | ( | xcb_connection_t * | c, |
uint8_t | contiguous, | ||
xcb_colormap_t | cmap, | ||
uint16_t | colors, | ||
uint16_t | reds, | ||
uint16_t | greens, | ||
uint16_t | blues | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_alloc_color_planes_request_t::blues, xcb_alloc_color_planes_request_t::cmap, xcb_alloc_color_planes_request_t::colors, xcb_alloc_color_planes_request_t::contiguous, xcb_alloc_color_planes_request_t::greens, xcb_alloc_color_planes_request_t::reds, and XCB_ALLOC_COLOR_PLANES.
xcb_alloc_color_reply_t* xcb_alloc_color_reply | ( | xcb_connection_t * | c, |
xcb_alloc_color_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_alloc_color_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_alloc_color_cookie_t::sequence.
xcb_alloc_color_cookie_t xcb_alloc_color_unchecked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint16_t | red, | ||
uint16_t | green, | ||
uint16_t | blue | ||
) |
Allocate a color.
c | The connection |
cmap | TODO |
red | The red value of your color. |
green | The green value of your color. |
blue | The blue value of your color. |
Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware. If you are using TrueColor, you can take a shortcut and directly calculate the color pixel value to avoid the round trip. But, for example, on 16-bit color setups (VNC), you can easily get the closest supported RGB value to the RGB value you are specifying.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_alloc_color_request_t::blue, xcb_alloc_color_request_t::cmap, xcb_alloc_color_request_t::green, xcb_alloc_color_request_t::pad0, xcb_alloc_color_request_t::pad1, xcb_alloc_color_request_t::red, and XCB_ALLOC_COLOR.
xcb_alloc_named_color_cookie_t xcb_alloc_named_color | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_alloc_named_color_request_t::cmap, xcb_alloc_named_color_request_t::name_len, xcb_alloc_named_color_request_t::pad0, xcb_alloc_named_color_request_t::pad1, and XCB_ALLOC_NAMED_COLOR.
xcb_alloc_named_color_reply_t* xcb_alloc_named_color_reply | ( | xcb_connection_t * | c, |
xcb_alloc_named_color_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_alloc_named_color_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_alloc_named_color_cookie_t::sequence.
xcb_alloc_named_color_cookie_t xcb_alloc_named_color_unchecked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_alloc_named_color_request_t::cmap, xcb_alloc_named_color_request_t::name_len, xcb_alloc_named_color_request_t::pad0, xcb_alloc_named_color_request_t::pad1, and XCB_ALLOC_NAMED_COLOR.
xcb_void_cookie_t xcb_allow_events | ( | xcb_connection_t * | c, |
uint8_t | mode, | ||
xcb_timestamp_t | time | ||
) |
release queued events
c | The connection |
mode | A bitmask of xcb_allow_t values. |
mode | |
time | Timestamp to avoid race conditions when running X over the network. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
Releases queued events if the client has caused a device (pointer/keyboard) to freeze due to grabbing it actively. This request has no effect if time is earlier than the last-grab time of the most recent active grab for this client or if time is later than the current X server time.
References xcb_allow_events_request_t::mode, xcb_allow_events_request_t::time, and XCB_ALLOW_EVENTS.
xcb_void_cookie_t xcb_allow_events_checked | ( | xcb_connection_t * | c, |
uint8_t | mode, | ||
xcb_timestamp_t | time | ||
) |
release queued events
c | The connection |
mode | A bitmask of xcb_allow_t values. |
mode | |
time | Timestamp to avoid race conditions when running X over the network. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
Releases queued events if the client has caused a device (pointer/keyboard) to freeze due to grabbing it actively. This request has no effect if time is earlier than the last-grab time of the most recent active grab for this client or if time is later than the current X server time.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_allow_events_request_t::mode, xcb_allow_events_request_t::time, and XCB_ALLOW_EVENTS.
Return the iterator pointing to the last element
i | An xcb_arc_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_arc_iterator_t::data, xcb_generic_iterator_t::index, xcb_arc_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_arc_iterator_t::rem.
void xcb_arc_next | ( | xcb_arc_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_arc_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_arc_t)
References xcb_arc_iterator_t::data, xcb_arc_iterator_t::index, and xcb_arc_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_atom_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_atom_iterator_t::data, xcb_generic_iterator_t::data, xcb_atom_iterator_t::index, xcb_generic_iterator_t::index, xcb_atom_iterator_t::rem, and xcb_generic_iterator_t::rem.
void xcb_atom_next | ( | xcb_atom_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_atom_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_atom_t)
References xcb_atom_iterator_t::data, xcb_atom_iterator_t::index, and xcb_atom_iterator_t::rem.
xcb_void_cookie_t xcb_bell | ( | xcb_connection_t * | c, |
int8_t | percent | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_bell_request_t::percent, and XCB_BELL.
xcb_void_cookie_t xcb_bell_checked | ( | xcb_connection_t * | c, |
int8_t | percent | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_bell_request_t::percent, and XCB_BELL.
Return the iterator pointing to the last element
i | An xcb_button_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_button_iterator_t::data, xcb_generic_iterator_t::index, xcb_button_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_button_iterator_t::rem.
void xcb_button_next | ( | xcb_button_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_button_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_button_t)
References xcb_button_iterator_t::data, xcb_button_iterator_t::index, and xcb_button_iterator_t::rem.
xcb_void_cookie_t xcb_change_active_pointer_grab | ( | xcb_connection_t * | c, |
xcb_cursor_t | cursor, | ||
xcb_timestamp_t | time, | ||
uint16_t | event_mask | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_change_active_pointer_grab_request_t::cursor, xcb_change_active_pointer_grab_request_t::event_mask, xcb_change_active_pointer_grab_request_t::pad0, xcb_change_active_pointer_grab_request_t::pad1, xcb_change_active_pointer_grab_request_t::time, and XCB_CHANGE_ACTIVE_POINTER_GRAB.
xcb_void_cookie_t xcb_change_active_pointer_grab_checked | ( | xcb_connection_t * | c, |
xcb_cursor_t | cursor, | ||
xcb_timestamp_t | time, | ||
uint16_t | event_mask | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_active_pointer_grab_request_t::cursor, xcb_change_active_pointer_grab_request_t::event_mask, xcb_change_active_pointer_grab_request_t::pad0, xcb_change_active_pointer_grab_request_t::pad1, xcb_change_active_pointer_grab_request_t::time, and XCB_CHANGE_ACTIVE_POINTER_GRAB.
xcb_void_cookie_t xcb_change_gc | ( | xcb_connection_t * | c, |
xcb_gcontext_t | gc, | ||
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
change graphics context components
c | The connection |
gc | The graphics context to change. |
value_mask | A bitmask of xcb_gc_t values. |
value_mask | |
value_list | Values for each of the components specified in the bitmask value_mask. The order has to correspond to the order of possible value_mask bits. See the example. |
Changes the components specified by value_mask for the specified graphics context.
References xcb_change_gc_request_t::gc, xcb_change_gc_request_t::pad0, xcb_change_gc_request_t::value_mask, and XCB_CHANGE_GC.
xcb_void_cookie_t xcb_change_gc_checked | ( | xcb_connection_t * | c, |
xcb_gcontext_t | gc, | ||
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
change graphics context components
c | The connection |
gc | The graphics context to change. |
value_mask | A bitmask of xcb_gc_t values. |
value_mask | |
value_list | Values for each of the components specified in the bitmask value_mask. The order has to correspond to the order of possible value_mask bits. See the example. |
Changes the components specified by value_mask for the specified graphics context.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_gc_request_t::gc, xcb_change_gc_request_t::pad0, xcb_change_gc_request_t::value_mask, and XCB_CHANGE_GC.
xcb_void_cookie_t xcb_change_hosts | ( | xcb_connection_t * | c, |
uint8_t | mode, | ||
uint8_t | family, | ||
uint16_t | address_len, | ||
const uint8_t * | address | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_change_hosts_request_t::address_len, xcb_change_hosts_request_t::family, xcb_change_hosts_request_t::mode, xcb_change_hosts_request_t::pad0, and XCB_CHANGE_HOSTS.
xcb_void_cookie_t xcb_change_hosts_checked | ( | xcb_connection_t * | c, |
uint8_t | mode, | ||
uint8_t | family, | ||
uint16_t | address_len, | ||
const uint8_t * | address | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_hosts_request_t::address_len, xcb_change_hosts_request_t::family, xcb_change_hosts_request_t::mode, xcb_change_hosts_request_t::pad0, and XCB_CHANGE_HOSTS.
xcb_void_cookie_t xcb_change_keyboard_control | ( | xcb_connection_t * | c, |
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_change_keyboard_control_request_t::pad0, xcb_change_keyboard_control_request_t::value_mask, and XCB_CHANGE_KEYBOARD_CONTROL.
xcb_void_cookie_t xcb_change_keyboard_control_checked | ( | xcb_connection_t * | c, |
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_keyboard_control_request_t::pad0, xcb_change_keyboard_control_request_t::value_mask, and XCB_CHANGE_KEYBOARD_CONTROL.
xcb_void_cookie_t xcb_change_keyboard_mapping | ( | xcb_connection_t * | c, |
uint8_t | keycode_count, | ||
xcb_keycode_t | first_keycode, | ||
uint8_t | keysyms_per_keycode, | ||
const xcb_keysym_t * | keysyms | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_change_keyboard_mapping_request_t::first_keycode, xcb_change_keyboard_mapping_request_t::keycode_count, xcb_change_keyboard_mapping_request_t::keysyms_per_keycode, xcb_change_keyboard_mapping_request_t::pad0, and XCB_CHANGE_KEYBOARD_MAPPING.
xcb_void_cookie_t xcb_change_keyboard_mapping_checked | ( | xcb_connection_t * | c, |
uint8_t | keycode_count, | ||
xcb_keycode_t | first_keycode, | ||
uint8_t | keysyms_per_keycode, | ||
const xcb_keysym_t * | keysyms | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_keyboard_mapping_request_t::first_keycode, xcb_change_keyboard_mapping_request_t::keycode_count, xcb_change_keyboard_mapping_request_t::keysyms_per_keycode, xcb_change_keyboard_mapping_request_t::pad0, and XCB_CHANGE_KEYBOARD_MAPPING.
xcb_void_cookie_t xcb_change_pointer_control | ( | xcb_connection_t * | c, |
int16_t | acceleration_numerator, | ||
int16_t | acceleration_denominator, | ||
int16_t | threshold, | ||
uint8_t | do_acceleration, | ||
uint8_t | do_threshold | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_change_pointer_control_request_t::acceleration_denominator, xcb_change_pointer_control_request_t::acceleration_numerator, xcb_change_pointer_control_request_t::do_acceleration, xcb_change_pointer_control_request_t::do_threshold, xcb_change_pointer_control_request_t::pad0, xcb_change_pointer_control_request_t::threshold, and XCB_CHANGE_POINTER_CONTROL.
xcb_void_cookie_t xcb_change_pointer_control_checked | ( | xcb_connection_t * | c, |
int16_t | acceleration_numerator, | ||
int16_t | acceleration_denominator, | ||
int16_t | threshold, | ||
uint8_t | do_acceleration, | ||
uint8_t | do_threshold | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_pointer_control_request_t::acceleration_denominator, xcb_change_pointer_control_request_t::acceleration_numerator, xcb_change_pointer_control_request_t::do_acceleration, xcb_change_pointer_control_request_t::do_threshold, xcb_change_pointer_control_request_t::pad0, xcb_change_pointer_control_request_t::threshold, and XCB_CHANGE_POINTER_CONTROL.
xcb_void_cookie_t xcb_change_property | ( | xcb_connection_t * | c, |
uint8_t | mode, | ||
xcb_window_t | window, | ||
xcb_atom_t | property, | ||
xcb_atom_t | type, | ||
uint8_t | format, | ||
uint32_t | data_len, | ||
const void * | data | ||
) |
Changes a window property.
c | The connection |
mode | A bitmask of xcb_prop_mode_t values. |
mode | |
window | The window whose property you want to change. |
property | The property you want to change (an atom). |
type | The type of the property you want to change (an atom). |
format | Specifies whether the data should be viewed as a list of 8-bit, 16-bit or 32-bit quantities. Possible values are 8, 16 and 32. This information allows the X server to correctly perform byte-swap operations as necessary. |
data_len | Specifies the number of elements (see format). |
data | The property data. |
Sets or updates a property on the specified window. Properties are for example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). Protocols such as EWMH also use properties - for example EWMH defines the window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
References xcb_change_property_request_t::data_len, xcb_change_property_request_t::format, xcb_change_property_request_t::mode, xcb_change_property_request_t::pad0, xcb_change_property_request_t::property, xcb_change_property_request_t::type, xcb_change_property_request_t::window, and XCB_CHANGE_PROPERTY.
xcb_void_cookie_t xcb_change_property_checked | ( | xcb_connection_t * | c, |
uint8_t | mode, | ||
xcb_window_t | window, | ||
xcb_atom_t | property, | ||
xcb_atom_t | type, | ||
uint8_t | format, | ||
uint32_t | data_len, | ||
const void * | data | ||
) |
Changes a window property.
c | The connection |
mode | A bitmask of xcb_prop_mode_t values. |
mode | |
window | The window whose property you want to change. |
property | The property you want to change (an atom). |
type | The type of the property you want to change (an atom). |
format | Specifies whether the data should be viewed as a list of 8-bit, 16-bit or 32-bit quantities. Possible values are 8, 16 and 32. This information allows the X server to correctly perform byte-swap operations as necessary. |
data_len | Specifies the number of elements (see format). |
data | The property data. |
Sets or updates a property on the specified window. Properties are for example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). Protocols such as EWMH also use properties - for example EWMH defines the window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_property_request_t::data_len, xcb_change_property_request_t::format, xcb_change_property_request_t::mode, xcb_change_property_request_t::pad0, xcb_change_property_request_t::property, xcb_change_property_request_t::type, xcb_change_property_request_t::window, and XCB_CHANGE_PROPERTY.
xcb_void_cookie_t xcb_change_save_set | ( | xcb_connection_t * | c, |
uint8_t | mode, | ||
xcb_window_t | window | ||
) |
Changes a client's save set.
c | The connection |
mode | A bitmask of #xcb_set_mode_t values. |
mode | Insert to add the specified window to the save set or Delete to delete it from the save set. |
window | The window to add or delete to/from your save set. |
TODO: explain what the save set is for.
This function either adds or removes the specified window to the client's (your application's) save set.
References xcb_change_save_set_request_t::mode, xcb_change_save_set_request_t::window, and XCB_CHANGE_SAVE_SET.
xcb_void_cookie_t xcb_change_save_set_checked | ( | xcb_connection_t * | c, |
uint8_t | mode, | ||
xcb_window_t | window | ||
) |
Changes a client's save set.
c | The connection |
mode | A bitmask of #xcb_set_mode_t values. |
mode | Insert to add the specified window to the save set or Delete to delete it from the save set. |
window | The window to add or delete to/from your save set. |
TODO: explain what the save set is for.
This function either adds or removes the specified window to the client's (your application's) save set.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_save_set_request_t::mode, xcb_change_save_set_request_t::window, and XCB_CHANGE_SAVE_SET.
xcb_void_cookie_t xcb_change_window_attributes | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
change window attributes
c | The connection |
window | The window to change. |
value_mask | A bitmask of xcb_cw_t values. |
value_mask | |
value_list | Values for each of the attributes specified in the bitmask value_mask. The order has to correspond to the order of possible value_mask bits. See the example. |
Changes the attributes specified by value_mask for the specified window.
References xcb_change_window_attributes_request_t::pad0, xcb_change_window_attributes_request_t::value_mask, xcb_change_window_attributes_request_t::window, and XCB_CHANGE_WINDOW_ATTRIBUTES.
xcb_void_cookie_t xcb_change_window_attributes_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
change window attributes
c | The connection |
window | The window to change. |
value_mask | A bitmask of xcb_cw_t values. |
value_mask | |
value_list | Values for each of the attributes specified in the bitmask value_mask. The order has to correspond to the order of possible value_mask bits. See the example. |
Changes the attributes specified by value_mask for the specified window.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_change_window_attributes_request_t::pad0, xcb_change_window_attributes_request_t::value_mask, xcb_change_window_attributes_request_t::window, and XCB_CHANGE_WINDOW_ATTRIBUTES.
Return the iterator pointing to the last element
i | An xcb_char2b_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_char2b_iterator_t::data, xcb_generic_iterator_t::data, xcb_char2b_iterator_t::index, xcb_generic_iterator_t::index, xcb_char2b_iterator_t::rem, and xcb_generic_iterator_t::rem.
void xcb_char2b_next | ( | xcb_char2b_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_char2b_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_char2b_t)
References xcb_char2b_iterator_t::data, xcb_char2b_iterator_t::index, and xcb_char2b_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_charinfo_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_charinfo_iterator_t::data, xcb_generic_iterator_t::index, xcb_charinfo_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_charinfo_iterator_t::rem.
void xcb_charinfo_next | ( | xcb_charinfo_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_charinfo_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_charinfo_t)
References xcb_charinfo_iterator_t::data, xcb_charinfo_iterator_t::index, and xcb_charinfo_iterator_t::rem.
xcb_void_cookie_t xcb_circulate_window | ( | xcb_connection_t * | c, |
uint8_t | direction, | ||
xcb_window_t | window | ||
) |
Change window stacking order.
c | The connection |
direction | A bitmask of #xcb_circulate_t values. |
direction | |
window | The window to raise/lower (depending on direction). |
If direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if any) will be raised to the top of the stack.
If direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will be lowered to the bottom of the stack.
References xcb_circulate_window_request_t::direction, xcb_circulate_window_request_t::window, and XCB_CIRCULATE_WINDOW.
xcb_void_cookie_t xcb_circulate_window_checked | ( | xcb_connection_t * | c, |
uint8_t | direction, | ||
xcb_window_t | window | ||
) |
Change window stacking order.
c | The connection |
direction | A bitmask of #xcb_circulate_t values. |
direction | |
window | The window to raise/lower (depending on direction). |
If direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if any) will be raised to the top of the stack.
If direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will be lowered to the bottom of the stack.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_circulate_window_request_t::direction, xcb_circulate_window_request_t::window, and XCB_CIRCULATE_WINDOW.
xcb_void_cookie_t xcb_clear_area | ( | xcb_connection_t * | c, |
uint8_t | exposures, | ||
xcb_window_t | window, | ||
int16_t | x, | ||
int16_t | y, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_clear_area_request_t::exposures, xcb_clear_area_request_t::height, xcb_clear_area_request_t::width, xcb_clear_area_request_t::window, xcb_clear_area_request_t::x, XCB_CLEAR_AREA, and xcb_clear_area_request_t::y.
xcb_void_cookie_t xcb_clear_area_checked | ( | xcb_connection_t * | c, |
uint8_t | exposures, | ||
xcb_window_t | window, | ||
int16_t | x, | ||
int16_t | y, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_clear_area_request_t::exposures, xcb_clear_area_request_t::height, xcb_clear_area_request_t::width, xcb_clear_area_request_t::window, xcb_clear_area_request_t::x, XCB_CLEAR_AREA, and xcb_clear_area_request_t::y.
Return the iterator pointing to the last element
i | An xcb_client_message_data_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_client_message_data_iterator_t::data, xcb_generic_iterator_t::index, xcb_client_message_data_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_client_message_data_iterator_t::rem.
Get the next element of the iterator
i | Pointer to a xcb_client_message_data_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_client_message_data_t)
References xcb_client_message_data_iterator_t::data, xcb_client_message_data_iterator_t::index, and xcb_client_message_data_iterator_t::rem.
xcb_void_cookie_t xcb_close_font | ( | xcb_connection_t * | c, |
xcb_font_t | font | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_close_font_request_t::font, xcb_close_font_request_t::pad0, and XCB_CLOSE_FONT.
xcb_void_cookie_t xcb_close_font_checked | ( | xcb_connection_t * | c, |
xcb_font_t | font | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_close_font_request_t::font, xcb_close_font_request_t::pad0, and XCB_CLOSE_FONT.
Return the iterator pointing to the last element
i | An xcb_coloritem_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_coloritem_iterator_t::data, xcb_generic_iterator_t::index, xcb_coloritem_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_coloritem_iterator_t::rem.
void xcb_coloritem_next | ( | xcb_coloritem_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_coloritem_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_coloritem_t)
References xcb_coloritem_iterator_t::data, xcb_coloritem_iterator_t::index, and xcb_coloritem_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_colormap_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_colormap_iterator_t::data, xcb_generic_iterator_t::data, xcb_colormap_iterator_t::index, xcb_generic_iterator_t::index, xcb_colormap_iterator_t::rem, and xcb_generic_iterator_t::rem.
void xcb_colormap_next | ( | xcb_colormap_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_colormap_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_colormap_t)
References xcb_colormap_iterator_t::data, xcb_colormap_iterator_t::index, and xcb_colormap_iterator_t::rem.
xcb_void_cookie_t xcb_configure_window | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
uint16_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
Configures window attributes.
c | The connection |
window | The window to configure. |
value_mask | Bitmask of attributes to change. |
value_list | New values, corresponding to the attributes in value_mask. The order has to correspond to the order of possible value_mask bits. See the example. |
Configures a window's size, position, border width and stacking order.
References xcb_configure_window_request_t::pad0, xcb_configure_window_request_t::pad1, xcb_configure_window_request_t::value_mask, xcb_configure_window_request_t::window, and XCB_CONFIGURE_WINDOW.
xcb_void_cookie_t xcb_configure_window_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
uint16_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
Configures window attributes.
c | The connection |
window | The window to configure. |
value_mask | Bitmask of attributes to change. |
value_list | New values, corresponding to the attributes in value_mask. The order has to correspond to the order of possible value_mask bits. See the example. |
Configures a window's size, position, border width and stacking order.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_configure_window_request_t::pad0, xcb_configure_window_request_t::pad1, xcb_configure_window_request_t::value_mask, xcb_configure_window_request_t::window, and XCB_CONFIGURE_WINDOW.
xcb_void_cookie_t xcb_convert_selection | ( | xcb_connection_t * | c, |
xcb_window_t | requestor, | ||
xcb_atom_t | selection, | ||
xcb_atom_t | target, | ||
xcb_atom_t | property, | ||
xcb_timestamp_t | time | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_convert_selection_request_t::pad0, xcb_convert_selection_request_t::property, xcb_convert_selection_request_t::requestor, xcb_convert_selection_request_t::selection, xcb_convert_selection_request_t::target, xcb_convert_selection_request_t::time, and XCB_CONVERT_SELECTION.
xcb_void_cookie_t xcb_convert_selection_checked | ( | xcb_connection_t * | c, |
xcb_window_t | requestor, | ||
xcb_atom_t | selection, | ||
xcb_atom_t | target, | ||
xcb_atom_t | property, | ||
xcb_timestamp_t | time | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_convert_selection_request_t::pad0, xcb_convert_selection_request_t::property, xcb_convert_selection_request_t::requestor, xcb_convert_selection_request_t::selection, xcb_convert_selection_request_t::target, xcb_convert_selection_request_t::time, and XCB_CONVERT_SELECTION.
xcb_void_cookie_t xcb_copy_area | ( | xcb_connection_t * | c, |
xcb_drawable_t | src_drawable, | ||
xcb_drawable_t | dst_drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | src_x, | ||
int16_t | src_y, | ||
int16_t | dst_x, | ||
int16_t | dst_y, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
copy areas
c | The connection |
src_drawable | The source drawable (Window or Pixmap). |
dst_drawable | The destination drawable (Window or Pixmap). |
gc | The graphics context to use. |
src_x | The source X coordinate. |
src_y | The source Y coordinate. |
dst_x | The destination X coordinate. |
dst_y | The destination Y coordinate. |
width | The width of the area to copy (in pixels). |
height | The height of the area to copy (in pixels). |
Copies the specified rectangle from src_drawable to dst_drawable.
References xcb_copy_area_request_t::dst_drawable, xcb_copy_area_request_t::dst_x, xcb_copy_area_request_t::dst_y, xcb_copy_area_request_t::gc, xcb_copy_area_request_t::height, xcb_copy_area_request_t::pad0, xcb_copy_area_request_t::src_drawable, xcb_copy_area_request_t::src_x, xcb_copy_area_request_t::src_y, xcb_copy_area_request_t::width, and XCB_COPY_AREA.
xcb_void_cookie_t xcb_copy_area_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | src_drawable, | ||
xcb_drawable_t | dst_drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | src_x, | ||
int16_t | src_y, | ||
int16_t | dst_x, | ||
int16_t | dst_y, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
copy areas
c | The connection |
src_drawable | The source drawable (Window or Pixmap). |
dst_drawable | The destination drawable (Window or Pixmap). |
gc | The graphics context to use. |
src_x | The source X coordinate. |
src_y | The source Y coordinate. |
dst_x | The destination X coordinate. |
dst_y | The destination Y coordinate. |
width | The width of the area to copy (in pixels). |
height | The height of the area to copy (in pixels). |
Copies the specified rectangle from src_drawable to dst_drawable.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_copy_area_request_t::dst_drawable, xcb_copy_area_request_t::dst_x, xcb_copy_area_request_t::dst_y, xcb_copy_area_request_t::gc, xcb_copy_area_request_t::height, xcb_copy_area_request_t::pad0, xcb_copy_area_request_t::src_drawable, xcb_copy_area_request_t::src_x, xcb_copy_area_request_t::src_y, xcb_copy_area_request_t::width, and XCB_COPY_AREA.
xcb_void_cookie_t xcb_copy_colormap_and_free | ( | xcb_connection_t * | c, |
xcb_colormap_t | mid, | ||
xcb_colormap_t | src_cmap | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_copy_colormap_and_free_request_t::mid, xcb_copy_colormap_and_free_request_t::pad0, xcb_copy_colormap_and_free_request_t::src_cmap, and XCB_COPY_COLORMAP_AND_FREE.
xcb_void_cookie_t xcb_copy_colormap_and_free_checked | ( | xcb_connection_t * | c, |
xcb_colormap_t | mid, | ||
xcb_colormap_t | src_cmap | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_copy_colormap_and_free_request_t::mid, xcb_copy_colormap_and_free_request_t::pad0, xcb_copy_colormap_and_free_request_t::src_cmap, and XCB_COPY_COLORMAP_AND_FREE.
xcb_void_cookie_t xcb_copy_gc | ( | xcb_connection_t * | c, |
xcb_gcontext_t | src_gc, | ||
xcb_gcontext_t | dst_gc, | ||
uint32_t | value_mask | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_copy_gc_request_t::dst_gc, xcb_copy_gc_request_t::pad0, xcb_copy_gc_request_t::src_gc, xcb_copy_gc_request_t::value_mask, and XCB_COPY_GC.
xcb_void_cookie_t xcb_copy_gc_checked | ( | xcb_connection_t * | c, |
xcb_gcontext_t | src_gc, | ||
xcb_gcontext_t | dst_gc, | ||
uint32_t | value_mask | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_copy_gc_request_t::dst_gc, xcb_copy_gc_request_t::pad0, xcb_copy_gc_request_t::src_gc, xcb_copy_gc_request_t::value_mask, and XCB_COPY_GC.
xcb_void_cookie_t xcb_copy_plane | ( | xcb_connection_t * | c, |
xcb_drawable_t | src_drawable, | ||
xcb_drawable_t | dst_drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | src_x, | ||
int16_t | src_y, | ||
int16_t | dst_x, | ||
int16_t | dst_y, | ||
uint16_t | width, | ||
uint16_t | height, | ||
uint32_t | bit_plane | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_copy_plane_request_t::bit_plane, xcb_copy_plane_request_t::dst_drawable, xcb_copy_plane_request_t::dst_x, xcb_copy_plane_request_t::dst_y, xcb_copy_plane_request_t::gc, xcb_copy_plane_request_t::height, xcb_copy_plane_request_t::pad0, xcb_copy_plane_request_t::src_drawable, xcb_copy_plane_request_t::src_x, xcb_copy_plane_request_t::src_y, xcb_copy_plane_request_t::width, and XCB_COPY_PLANE.
xcb_void_cookie_t xcb_copy_plane_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | src_drawable, | ||
xcb_drawable_t | dst_drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | src_x, | ||
int16_t | src_y, | ||
int16_t | dst_x, | ||
int16_t | dst_y, | ||
uint16_t | width, | ||
uint16_t | height, | ||
uint32_t | bit_plane | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_copy_plane_request_t::bit_plane, xcb_copy_plane_request_t::dst_drawable, xcb_copy_plane_request_t::dst_x, xcb_copy_plane_request_t::dst_y, xcb_copy_plane_request_t::gc, xcb_copy_plane_request_t::height, xcb_copy_plane_request_t::pad0, xcb_copy_plane_request_t::src_drawable, xcb_copy_plane_request_t::src_x, xcb_copy_plane_request_t::src_y, xcb_copy_plane_request_t::width, and XCB_COPY_PLANE.
xcb_void_cookie_t xcb_create_colormap | ( | xcb_connection_t * | c, |
uint8_t | alloc, | ||
xcb_colormap_t | mid, | ||
xcb_window_t | window, | ||
xcb_visualid_t | visual | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_create_colormap_request_t::alloc, xcb_create_colormap_request_t::mid, xcb_create_colormap_request_t::visual, xcb_create_colormap_request_t::window, and XCB_CREATE_COLORMAP.
xcb_void_cookie_t xcb_create_colormap_checked | ( | xcb_connection_t * | c, |
uint8_t | alloc, | ||
xcb_colormap_t | mid, | ||
xcb_window_t | window, | ||
xcb_visualid_t | visual | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_create_colormap_request_t::alloc, xcb_create_colormap_request_t::mid, xcb_create_colormap_request_t::visual, xcb_create_colormap_request_t::window, and XCB_CREATE_COLORMAP.
xcb_void_cookie_t xcb_create_cursor | ( | xcb_connection_t * | c, |
xcb_cursor_t | cid, | ||
xcb_pixmap_t | source, | ||
xcb_pixmap_t | mask, | ||
uint16_t | fore_red, | ||
uint16_t | fore_green, | ||
uint16_t | fore_blue, | ||
uint16_t | back_red, | ||
uint16_t | back_green, | ||
uint16_t | back_blue, | ||
uint16_t | x, | ||
uint16_t | y | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_create_cursor_request_t::back_blue, xcb_create_cursor_request_t::back_green, xcb_create_cursor_request_t::back_red, xcb_create_cursor_request_t::cid, xcb_create_cursor_request_t::fore_blue, xcb_create_cursor_request_t::fore_green, xcb_create_cursor_request_t::fore_red, xcb_create_cursor_request_t::mask, xcb_create_cursor_request_t::pad0, xcb_create_cursor_request_t::source, xcb_create_cursor_request_t::x, XCB_CREATE_CURSOR, and xcb_create_cursor_request_t::y.
xcb_void_cookie_t xcb_create_cursor_checked | ( | xcb_connection_t * | c, |
xcb_cursor_t | cid, | ||
xcb_pixmap_t | source, | ||
xcb_pixmap_t | mask, | ||
uint16_t | fore_red, | ||
uint16_t | fore_green, | ||
uint16_t | fore_blue, | ||
uint16_t | back_red, | ||
uint16_t | back_green, | ||
uint16_t | back_blue, | ||
uint16_t | x, | ||
uint16_t | y | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_create_cursor_request_t::back_blue, xcb_create_cursor_request_t::back_green, xcb_create_cursor_request_t::back_red, xcb_create_cursor_request_t::cid, xcb_create_cursor_request_t::fore_blue, xcb_create_cursor_request_t::fore_green, xcb_create_cursor_request_t::fore_red, xcb_create_cursor_request_t::mask, xcb_create_cursor_request_t::pad0, xcb_create_cursor_request_t::source, xcb_create_cursor_request_t::x, XCB_CREATE_CURSOR, and xcb_create_cursor_request_t::y.
xcb_void_cookie_t xcb_create_gc | ( | xcb_connection_t * | c, |
xcb_gcontext_t | cid, | ||
xcb_drawable_t | drawable, | ||
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
Creates a graphics context.
c | The connection |
cid | The ID with which you will refer to the graphics context, created by `xcb_generate_id`. |
drawable | Drawable to get the root/depth from. |
Creates a graphics context. The graphics context can be used with any drawable that has the same root and depth as the specified drawable.
References xcb_create_gc_request_t::cid, xcb_create_gc_request_t::drawable, xcb_create_gc_request_t::pad0, xcb_create_gc_request_t::value_mask, and XCB_CREATE_GC.
xcb_void_cookie_t xcb_create_gc_checked | ( | xcb_connection_t * | c, |
xcb_gcontext_t | cid, | ||
xcb_drawable_t | drawable, | ||
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
Creates a graphics context.
c | The connection |
cid | The ID with which you will refer to the graphics context, created by `xcb_generate_id`. |
drawable | Drawable to get the root/depth from. |
Creates a graphics context. The graphics context can be used with any drawable that has the same root and depth as the specified drawable.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_create_gc_request_t::cid, xcb_create_gc_request_t::drawable, xcb_create_gc_request_t::pad0, xcb_create_gc_request_t::value_mask, and XCB_CREATE_GC.
xcb_void_cookie_t xcb_create_glyph_cursor | ( | xcb_connection_t * | c, |
xcb_cursor_t | cid, | ||
xcb_font_t | source_font, | ||
xcb_font_t | mask_font, | ||
uint16_t | source_char, | ||
uint16_t | mask_char, | ||
uint16_t | fore_red, | ||
uint16_t | fore_green, | ||
uint16_t | fore_blue, | ||
uint16_t | back_red, | ||
uint16_t | back_green, | ||
uint16_t | back_blue | ||
) |
create cursor
c | The connection |
cid | The ID with which you will refer to the cursor, created by `xcb_generate_id`. |
source_font | In which font to look for the cursor glyph. |
mask_font | In which font to look for the mask glyph. |
source_char | The glyph of source_font to use. |
mask_char | The glyph of mask_font to use as a mask: Pixels which are set to 1 define which source pixels are displayed. All pixels which are set to 0 are not displayed. |
fore_red | The red value of the foreground color. |
fore_green | The green value of the foreground color. |
fore_blue | The blue value of the foreground color. |
back_red | The red value of the background color. |
back_green | The green value of the background color. |
back_blue | The blue value of the background color. |
Creates a cursor from a font glyph. X provides a set of standard cursor shapes in a special font named cursor. Applications are encouraged to use this interface for their cursors because the font can be customized for the individual display type.
All pixels which are set to 1 in the source will use the foreground color (as specified by fore_red, fore_green and fore_blue). All pixels set to 0 will use the background color (as specified by back_red, back_green and back_blue).
References xcb_create_glyph_cursor_request_t::back_blue, xcb_create_glyph_cursor_request_t::back_green, xcb_create_glyph_cursor_request_t::back_red, xcb_create_glyph_cursor_request_t::cid, xcb_create_glyph_cursor_request_t::fore_blue, xcb_create_glyph_cursor_request_t::fore_green, xcb_create_glyph_cursor_request_t::fore_red, xcb_create_glyph_cursor_request_t::mask_char, xcb_create_glyph_cursor_request_t::mask_font, xcb_create_glyph_cursor_request_t::pad0, xcb_create_glyph_cursor_request_t::source_char, xcb_create_glyph_cursor_request_t::source_font, and XCB_CREATE_GLYPH_CURSOR.
xcb_void_cookie_t xcb_create_glyph_cursor_checked | ( | xcb_connection_t * | c, |
xcb_cursor_t | cid, | ||
xcb_font_t | source_font, | ||
xcb_font_t | mask_font, | ||
uint16_t | source_char, | ||
uint16_t | mask_char, | ||
uint16_t | fore_red, | ||
uint16_t | fore_green, | ||
uint16_t | fore_blue, | ||
uint16_t | back_red, | ||
uint16_t | back_green, | ||
uint16_t | back_blue | ||
) |
create cursor
c | The connection |
cid | The ID with which you will refer to the cursor, created by `xcb_generate_id`. |
source_font | In which font to look for the cursor glyph. |
mask_font | In which font to look for the mask glyph. |
source_char | The glyph of source_font to use. |
mask_char | The glyph of mask_font to use as a mask: Pixels which are set to 1 define which source pixels are displayed. All pixels which are set to 0 are not displayed. |
fore_red | The red value of the foreground color. |
fore_green | The green value of the foreground color. |
fore_blue | The blue value of the foreground color. |
back_red | The red value of the background color. |
back_green | The green value of the background color. |
back_blue | The blue value of the background color. |
Creates a cursor from a font glyph. X provides a set of standard cursor shapes in a special font named cursor. Applications are encouraged to use this interface for their cursors because the font can be customized for the individual display type.
All pixels which are set to 1 in the source will use the foreground color (as specified by fore_red, fore_green and fore_blue). All pixels set to 0 will use the background color (as specified by back_red, back_green and back_blue).
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_create_glyph_cursor_request_t::back_blue, xcb_create_glyph_cursor_request_t::back_green, xcb_create_glyph_cursor_request_t::back_red, xcb_create_glyph_cursor_request_t::cid, xcb_create_glyph_cursor_request_t::fore_blue, xcb_create_glyph_cursor_request_t::fore_green, xcb_create_glyph_cursor_request_t::fore_red, xcb_create_glyph_cursor_request_t::mask_char, xcb_create_glyph_cursor_request_t::mask_font, xcb_create_glyph_cursor_request_t::pad0, xcb_create_glyph_cursor_request_t::source_char, xcb_create_glyph_cursor_request_t::source_font, and XCB_CREATE_GLYPH_CURSOR.
xcb_void_cookie_t xcb_create_pixmap | ( | xcb_connection_t * | c, |
uint8_t | depth, | ||
xcb_pixmap_t | pid, | ||
xcb_drawable_t | drawable, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
Creates a pixmap.
c | The connection |
depth | TODO |
pid | The ID with which you will refer to the new pixmap, created by `xcb_generate_id`. |
drawable | Drawable to get the screen from. |
width | The width of the new pixmap. |
height | The height of the new pixmap. |
Creates a pixmap. The pixmap can only be used on the same screen as drawable is on and only with drawables of the same depth.
References xcb_create_pixmap_request_t::depth, xcb_create_pixmap_request_t::drawable, xcb_create_pixmap_request_t::height, xcb_create_pixmap_request_t::pid, xcb_create_pixmap_request_t::width, and XCB_CREATE_PIXMAP.
xcb_void_cookie_t xcb_create_pixmap_checked | ( | xcb_connection_t * | c, |
uint8_t | depth, | ||
xcb_pixmap_t | pid, | ||
xcb_drawable_t | drawable, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
Creates a pixmap.
c | The connection |
depth | TODO |
pid | The ID with which you will refer to the new pixmap, created by `xcb_generate_id`. |
drawable | Drawable to get the screen from. |
width | The width of the new pixmap. |
height | The height of the new pixmap. |
Creates a pixmap. The pixmap can only be used on the same screen as drawable is on and only with drawables of the same depth.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_create_pixmap_request_t::depth, xcb_create_pixmap_request_t::drawable, xcb_create_pixmap_request_t::height, xcb_create_pixmap_request_t::pid, xcb_create_pixmap_request_t::width, and XCB_CREATE_PIXMAP.
xcb_void_cookie_t xcb_create_window | ( | xcb_connection_t * | c, |
uint8_t | depth, | ||
xcb_window_t | wid, | ||
xcb_window_t | parent, | ||
int16_t | x, | ||
int16_t | y, | ||
uint16_t | width, | ||
uint16_t | height, | ||
uint16_t | border_width, | ||
uint16_t | _class, | ||
xcb_visualid_t | visual, | ||
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
Creates a window.
c | The connection |
depth | Specifies the new window's depth (TODO: what unit?). The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the parent window. |
wid | The ID with which you will refer to the new window, created by `xcb_generate_id`. |
parent | The parent window of the new window. |
x | The X coordinate of the new window. |
y | The Y coordinate of the new window. |
width | The width of the new window. |
height | The height of the new window. |
border_width | TODO: Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. |
_class | A bitmask of #xcb_window_class_t values. |
_class | |
visual | Specifies the id for the new window's visual. The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the parent window. |
value_mask | A bitmask of xcb_cw_t values. |
Creates an unmapped window as child of the specified parent window. A CreateNotify event will be generated. The new window is placed on top in the stacking order with respect to siblings.
The coordinate system has the X axis horizontal and the Y axis vertical with the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms of pixels, and coincide with pixel centers. Each window and pixmap has its own coordinate system. For a window, the origin is inside the border at the inside, upper-left corner.
The created window is not yet displayed (mapped), call `xcb_map_window` to display it.
The created window will initially use the same cursor as its parent.
References xcb_create_window_request_t::_class, xcb_create_window_request_t::border_width, xcb_create_window_request_t::depth, xcb_create_window_request_t::height, xcb_create_window_request_t::parent, xcb_create_window_request_t::value_mask, xcb_create_window_request_t::visual, xcb_create_window_request_t::wid, xcb_create_window_request_t::width, xcb_create_window_request_t::x, XCB_CREATE_WINDOW, and xcb_create_window_request_t::y.
xcb_void_cookie_t xcb_create_window_checked | ( | xcb_connection_t * | c, |
uint8_t | depth, | ||
xcb_window_t | wid, | ||
xcb_window_t | parent, | ||
int16_t | x, | ||
int16_t | y, | ||
uint16_t | width, | ||
uint16_t | height, | ||
uint16_t | border_width, | ||
uint16_t | _class, | ||
xcb_visualid_t | visual, | ||
uint32_t | value_mask, | ||
const uint32_t * | value_list | ||
) |
Creates a window.
c | The connection |
depth | Specifies the new window's depth (TODO: what unit?). The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the parent window. |
wid | The ID with which you will refer to the new window, created by `xcb_generate_id`. |
parent | The parent window of the new window. |
x | The X coordinate of the new window. |
y | The Y coordinate of the new window. |
width | The width of the new window. |
height | The height of the new window. |
border_width | TODO: Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. |
_class | A bitmask of #xcb_window_class_t values. |
_class | |
visual | Specifies the id for the new window's visual. The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the parent window. |
value_mask | A bitmask of xcb_cw_t values. |
Creates an unmapped window as child of the specified parent window. A CreateNotify event will be generated. The new window is placed on top in the stacking order with respect to siblings.
The coordinate system has the X axis horizontal and the Y axis vertical with the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms of pixels, and coincide with pixel centers. Each window and pixmap has its own coordinate system. For a window, the origin is inside the border at the inside, upper-left corner.
The created window is not yet displayed (mapped), call `xcb_map_window` to display it.
The created window will initially use the same cursor as its parent.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_create_window_request_t::_class, xcb_create_window_request_t::border_width, xcb_create_window_request_t::depth, xcb_create_window_request_t::height, xcb_create_window_request_t::parent, xcb_create_window_request_t::value_mask, xcb_create_window_request_t::visual, xcb_create_window_request_t::wid, xcb_create_window_request_t::width, xcb_create_window_request_t::x, XCB_CREATE_WINDOW, and xcb_create_window_request_t::y.
Return the iterator pointing to the last element
i | An xcb_cursor_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_cursor_iterator_t::data, xcb_generic_iterator_t::data, xcb_cursor_iterator_t::index, xcb_generic_iterator_t::index, xcb_cursor_iterator_t::rem, and xcb_generic_iterator_t::rem.
void xcb_cursor_next | ( | xcb_cursor_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_cursor_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_cursor_t)
References xcb_cursor_iterator_t::data, xcb_cursor_iterator_t::index, and xcb_cursor_iterator_t::rem.
xcb_void_cookie_t xcb_delete_property | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
xcb_atom_t | property | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_delete_property_request_t::pad0, xcb_delete_property_request_t::property, xcb_delete_property_request_t::window, and XCB_DELETE_PROPERTY.
xcb_void_cookie_t xcb_delete_property_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
xcb_atom_t | property | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_delete_property_request_t::pad0, xcb_delete_property_request_t::property, xcb_delete_property_request_t::window, and XCB_DELETE_PROPERTY.
Return the iterator pointing to the last element
i | An xcb_depth_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_depth_iterator_t::data, xcb_generic_iterator_t::index, xcb_depth_iterator_t::index, xcb_generic_iterator_t::rem, xcb_depth_iterator_t::rem, and xcb_depth_next().
void xcb_depth_next | ( | xcb_depth_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_depth_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_depth_t)
References xcb_generic_iterator_t::data, xcb_depth_iterator_t::data, xcb_depth_iterator_t::index, and xcb_depth_iterator_t::rem.
Referenced by xcb_depth_end().
xcb_void_cookie_t xcb_destroy_subwindows | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_destroy_subwindows_request_t::pad0, xcb_destroy_subwindows_request_t::window, and XCB_DESTROY_SUBWINDOWS.
xcb_void_cookie_t xcb_destroy_subwindows_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_destroy_subwindows_request_t::pad0, xcb_destroy_subwindows_request_t::window, and XCB_DESTROY_SUBWINDOWS.
xcb_void_cookie_t xcb_destroy_window | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
Destroys a window.
c | The connection |
window | The window to destroy. |
Destroys the specified window and all of its subwindows. A DestroyNotify event is generated for each destroyed window (a DestroyNotify event is first generated for any given window's inferiors). If the window was mapped, it will be automatically unmapped before destroying.
Calling DestroyWindow on the root window will do nothing.
References xcb_destroy_window_request_t::pad0, xcb_destroy_window_request_t::window, and XCB_DESTROY_WINDOW.
xcb_void_cookie_t xcb_destroy_window_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
Destroys a window.
c | The connection |
window | The window to destroy. |
Destroys the specified window and all of its subwindows. A DestroyNotify event is generated for each destroyed window (a DestroyNotify event is first generated for any given window's inferiors). If the window was mapped, it will be automatically unmapped before destroying.
Calling DestroyWindow on the root window will do nothing.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_destroy_window_request_t::pad0, xcb_destroy_window_request_t::window, and XCB_DESTROY_WINDOW.
Return the iterator pointing to the last element
i | An xcb_drawable_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_drawable_iterator_t::data, xcb_generic_iterator_t::index, xcb_drawable_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_drawable_iterator_t::rem.
void xcb_drawable_next | ( | xcb_drawable_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_drawable_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_drawable_t)
References xcb_drawable_iterator_t::data, xcb_drawable_iterator_t::index, and xcb_drawable_iterator_t::rem.
xcb_void_cookie_t xcb_fill_poly | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint8_t | shape, | ||
uint8_t | coordinate_mode, | ||
uint32_t | points_len, | ||
const xcb_point_t * | points | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_fill_poly_request_t::coordinate_mode, xcb_fill_poly_request_t::drawable, xcb_fill_poly_request_t::gc, xcb_fill_poly_request_t::pad0, xcb_fill_poly_request_t::pad1, xcb_fill_poly_request_t::shape, and XCB_FILL_POLY.
xcb_void_cookie_t xcb_fill_poly_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint8_t | shape, | ||
uint8_t | coordinate_mode, | ||
uint32_t | points_len, | ||
const xcb_point_t * | points | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_fill_poly_request_t::coordinate_mode, xcb_fill_poly_request_t::drawable, xcb_fill_poly_request_t::gc, xcb_fill_poly_request_t::pad0, xcb_fill_poly_request_t::pad1, xcb_fill_poly_request_t::shape, and XCB_FILL_POLY.
Return the iterator pointing to the last element
i | An xcb_font_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_font_iterator_t::data, xcb_generic_iterator_t::data, xcb_font_iterator_t::index, xcb_generic_iterator_t::index, xcb_font_iterator_t::rem, and xcb_generic_iterator_t::rem.
void xcb_font_next | ( | xcb_font_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_font_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_font_t)
References xcb_font_iterator_t::data, xcb_font_iterator_t::index, and xcb_font_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_fontable_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_fontable_iterator_t::data, xcb_generic_iterator_t::index, xcb_fontable_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_fontable_iterator_t::rem.
void xcb_fontable_next | ( | xcb_fontable_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_fontable_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_fontable_t)
References xcb_fontable_iterator_t::data, xcb_fontable_iterator_t::index, and xcb_fontable_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_fontprop_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_fontprop_iterator_t::data, xcb_generic_iterator_t::index, xcb_fontprop_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_fontprop_iterator_t::rem.
void xcb_fontprop_next | ( | xcb_fontprop_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_fontprop_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_fontprop_t)
References xcb_fontprop_iterator_t::data, xcb_fontprop_iterator_t::index, and xcb_fontprop_iterator_t::rem.
xcb_void_cookie_t xcb_force_screen_saver | ( | xcb_connection_t * | c, |
uint8_t | mode | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_force_screen_saver_request_t::mode, and XCB_FORCE_SCREEN_SAVER.
xcb_void_cookie_t xcb_force_screen_saver_checked | ( | xcb_connection_t * | c, |
uint8_t | mode | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_force_screen_saver_request_t::mode, and XCB_FORCE_SCREEN_SAVER.
Return the iterator pointing to the last element
i | An xcb_format_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_format_iterator_t::data, xcb_generic_iterator_t::index, xcb_format_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_format_iterator_t::rem.
void xcb_format_next | ( | xcb_format_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_format_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_format_t)
References xcb_format_iterator_t::data, xcb_format_iterator_t::index, and xcb_format_iterator_t::rem.
xcb_void_cookie_t xcb_free_colormap | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_free_colormap_request_t::cmap, xcb_free_colormap_request_t::pad0, and XCB_FREE_COLORMAP.
xcb_void_cookie_t xcb_free_colormap_checked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_free_colormap_request_t::cmap, xcb_free_colormap_request_t::pad0, and XCB_FREE_COLORMAP.
xcb_void_cookie_t xcb_free_colors | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint32_t | plane_mask, | ||
uint32_t | pixels_len, | ||
const uint32_t * | pixels | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_free_colors_request_t::cmap, xcb_free_colors_request_t::pad0, xcb_free_colors_request_t::plane_mask, and XCB_FREE_COLORS.
xcb_void_cookie_t xcb_free_colors_checked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint32_t | plane_mask, | ||
uint32_t | pixels_len, | ||
const uint32_t * | pixels | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_free_colors_request_t::cmap, xcb_free_colors_request_t::pad0, xcb_free_colors_request_t::plane_mask, and XCB_FREE_COLORS.
xcb_void_cookie_t xcb_free_cursor | ( | xcb_connection_t * | c, |
xcb_cursor_t | cursor | ||
) |
Deletes a cursor.
c | The connection |
cursor | The cursor to destroy. |
Deletes the association between the cursor resource ID and the specified cursor. The cursor is freed when no other resource references it.
References xcb_free_cursor_request_t::cursor, xcb_free_cursor_request_t::pad0, and XCB_FREE_CURSOR.
xcb_void_cookie_t xcb_free_cursor_checked | ( | xcb_connection_t * | c, |
xcb_cursor_t | cursor | ||
) |
Deletes a cursor.
c | The connection |
cursor | The cursor to destroy. |
Deletes the association between the cursor resource ID and the specified cursor. The cursor is freed when no other resource references it.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_free_cursor_request_t::cursor, xcb_free_cursor_request_t::pad0, and XCB_FREE_CURSOR.
xcb_void_cookie_t xcb_free_gc | ( | xcb_connection_t * | c, |
xcb_gcontext_t | gc | ||
) |
Destroys a graphics context.
c | The connection |
gc | The graphics context to destroy. |
Destroys the specified gc and all associated storage.
References xcb_free_gc_request_t::gc, xcb_free_gc_request_t::pad0, and XCB_FREE_GC.
xcb_void_cookie_t xcb_free_gc_checked | ( | xcb_connection_t * | c, |
xcb_gcontext_t | gc | ||
) |
Destroys a graphics context.
c | The connection |
gc | The graphics context to destroy. |
Destroys the specified gc and all associated storage.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_free_gc_request_t::gc, xcb_free_gc_request_t::pad0, and XCB_FREE_GC.
xcb_void_cookie_t xcb_free_pixmap | ( | xcb_connection_t * | c, |
xcb_pixmap_t | pixmap | ||
) |
Destroys a pixmap.
c | The connection |
pixmap | The pixmap to destroy. |
Deletes the association between the pixmap ID and the pixmap. The pixmap storage will be freed when there are no more references to it.
References xcb_free_pixmap_request_t::pad0, xcb_free_pixmap_request_t::pixmap, and XCB_FREE_PIXMAP.
xcb_void_cookie_t xcb_free_pixmap_checked | ( | xcb_connection_t * | c, |
xcb_pixmap_t | pixmap | ||
) |
Destroys a pixmap.
c | The connection |
pixmap | The pixmap to destroy. |
Deletes the association between the pixmap ID and the pixmap. The pixmap storage will be freed when there are no more references to it.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_free_pixmap_request_t::pad0, xcb_free_pixmap_request_t::pixmap, and XCB_FREE_PIXMAP.
Return the iterator pointing to the last element
i | An xcb_gcontext_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_gcontext_iterator_t::data, xcb_generic_iterator_t::data, xcb_gcontext_iterator_t::index, xcb_generic_iterator_t::index, xcb_gcontext_iterator_t::rem, and xcb_generic_iterator_t::rem.
void xcb_gcontext_next | ( | xcb_gcontext_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_gcontext_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_gcontext_t)
References xcb_gcontext_iterator_t::data, xcb_gcontext_iterator_t::index, and xcb_gcontext_iterator_t::rem.
xcb_get_atom_name_cookie_t xcb_get_atom_name | ( | xcb_connection_t * | c, |
xcb_atom_t | atom | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_get_atom_name_request_t::atom, xcb_get_atom_name_request_t::pad0, and XCB_GET_ATOM_NAME.
xcb_get_atom_name_reply_t* xcb_get_atom_name_reply | ( | xcb_connection_t * | c, |
xcb_get_atom_name_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_atom_name_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_atom_name_cookie_t::sequence.
xcb_get_atom_name_cookie_t xcb_get_atom_name_unchecked | ( | xcb_connection_t * | c, |
xcb_atom_t | atom | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_atom_name_request_t::atom, xcb_get_atom_name_request_t::pad0, and XCB_GET_ATOM_NAME.
c | The connection |
Delivers a request to the X server.
References xcb_get_font_path_request_t::pad0, and XCB_GET_FONT_PATH.
xcb_get_font_path_reply_t* xcb_get_font_path_reply | ( | xcb_connection_t * | c, |
xcb_get_font_path_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_font_path_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_font_path_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_font_path_request_t::pad0, and XCB_GET_FONT_PATH.
xcb_get_geometry_cookie_t xcb_get_geometry | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable | ||
) |
Get current window geometry.
c | The connection |
drawable | The drawable (`Window` or `Pixmap`) of which the geometry will be received. |
Gets the current geometry of the specified drawable (either `Window` or `Pixmap`).
References xcb_get_geometry_request_t::drawable, xcb_get_geometry_request_t::pad0, and XCB_GET_GEOMETRY.
xcb_get_geometry_reply_t* xcb_get_geometry_reply | ( | xcb_connection_t * | c, |
xcb_get_geometry_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_geometry_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_geometry_cookie_t::sequence.
xcb_get_geometry_cookie_t xcb_get_geometry_unchecked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable | ||
) |
Get current window geometry.
c | The connection |
drawable | The drawable (`Window` or `Pixmap`) of which the geometry will be received. |
Gets the current geometry of the specified drawable (either `Window` or `Pixmap`).
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_geometry_request_t::drawable, xcb_get_geometry_request_t::pad0, and XCB_GET_GEOMETRY.
xcb_get_image_cookie_t xcb_get_image | ( | xcb_connection_t * | c, |
uint8_t | format, | ||
xcb_drawable_t | drawable, | ||
int16_t | x, | ||
int16_t | y, | ||
uint16_t | width, | ||
uint16_t | height, | ||
uint32_t | plane_mask | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_get_image_request_t::drawable, xcb_get_image_request_t::format, xcb_get_image_request_t::height, xcb_get_image_request_t::plane_mask, xcb_get_image_request_t::width, xcb_get_image_request_t::x, XCB_GET_IMAGE, and xcb_get_image_request_t::y.
xcb_get_image_reply_t* xcb_get_image_reply | ( | xcb_connection_t * | c, |
xcb_get_image_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_image_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_image_cookie_t::sequence.
xcb_get_image_cookie_t xcb_get_image_unchecked | ( | xcb_connection_t * | c, |
uint8_t | format, | ||
xcb_drawable_t | drawable, | ||
int16_t | x, | ||
int16_t | y, | ||
uint16_t | width, | ||
uint16_t | height, | ||
uint32_t | plane_mask | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_image_request_t::drawable, xcb_get_image_request_t::format, xcb_get_image_request_t::height, xcb_get_image_request_t::plane_mask, xcb_get_image_request_t::width, xcb_get_image_request_t::x, XCB_GET_IMAGE, and xcb_get_image_request_t::y.
c | The connection |
Delivers a request to the X server.
References xcb_get_input_focus_request_t::pad0, and XCB_GET_INPUT_FOCUS.
xcb_get_input_focus_reply_t* xcb_get_input_focus_reply | ( | xcb_connection_t * | c, |
xcb_get_input_focus_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_input_focus_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_input_focus_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_input_focus_request_t::pad0, and XCB_GET_INPUT_FOCUS.
c | The connection |
Delivers a request to the X server.
References xcb_get_keyboard_control_request_t::pad0, and XCB_GET_KEYBOARD_CONTROL.
xcb_get_keyboard_control_reply_t* xcb_get_keyboard_control_reply | ( | xcb_connection_t * | c, |
xcb_get_keyboard_control_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_keyboard_control_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_keyboard_control_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_keyboard_control_request_t::pad0, and XCB_GET_KEYBOARD_CONTROL.
xcb_get_keyboard_mapping_cookie_t xcb_get_keyboard_mapping | ( | xcb_connection_t * | c, |
xcb_keycode_t | first_keycode, | ||
uint8_t | count | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_get_keyboard_mapping_request_t::count, xcb_get_keyboard_mapping_request_t::first_keycode, xcb_get_keyboard_mapping_request_t::pad0, and XCB_GET_KEYBOARD_MAPPING.
xcb_get_keyboard_mapping_reply_t* xcb_get_keyboard_mapping_reply | ( | xcb_connection_t * | c, |
xcb_get_keyboard_mapping_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_keyboard_mapping_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_keyboard_mapping_cookie_t::sequence.
xcb_get_keyboard_mapping_cookie_t xcb_get_keyboard_mapping_unchecked | ( | xcb_connection_t * | c, |
xcb_keycode_t | first_keycode, | ||
uint8_t | count | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_keyboard_mapping_request_t::count, xcb_get_keyboard_mapping_request_t::first_keycode, xcb_get_keyboard_mapping_request_t::pad0, and XCB_GET_KEYBOARD_MAPPING.
c | The connection |
Delivers a request to the X server.
References xcb_get_modifier_mapping_request_t::pad0, and XCB_GET_MODIFIER_MAPPING.
xcb_get_modifier_mapping_reply_t* xcb_get_modifier_mapping_reply | ( | xcb_connection_t * | c, |
xcb_get_modifier_mapping_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_modifier_mapping_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_modifier_mapping_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_modifier_mapping_request_t::pad0, and XCB_GET_MODIFIER_MAPPING.
xcb_get_motion_events_cookie_t xcb_get_motion_events | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
xcb_timestamp_t | start, | ||
xcb_timestamp_t | stop | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_get_motion_events_request_t::pad0, xcb_get_motion_events_request_t::start, xcb_get_motion_events_request_t::stop, xcb_get_motion_events_request_t::window, and XCB_GET_MOTION_EVENTS.
xcb_get_motion_events_reply_t* xcb_get_motion_events_reply | ( | xcb_connection_t * | c, |
xcb_get_motion_events_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_motion_events_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_motion_events_cookie_t::sequence.
xcb_get_motion_events_cookie_t xcb_get_motion_events_unchecked | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
xcb_timestamp_t | start, | ||
xcb_timestamp_t | stop | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_motion_events_request_t::pad0, xcb_get_motion_events_request_t::start, xcb_get_motion_events_request_t::stop, xcb_get_motion_events_request_t::window, and XCB_GET_MOTION_EVENTS.
c | The connection |
Delivers a request to the X server.
References xcb_get_pointer_control_request_t::pad0, and XCB_GET_POINTER_CONTROL.
xcb_get_pointer_control_reply_t* xcb_get_pointer_control_reply | ( | xcb_connection_t * | c, |
xcb_get_pointer_control_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_pointer_control_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_pointer_control_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_pointer_control_request_t::pad0, and XCB_GET_POINTER_CONTROL.
c | The connection |
Delivers a request to the X server.
References xcb_get_pointer_mapping_request_t::pad0, and XCB_GET_POINTER_MAPPING.
xcb_get_pointer_mapping_reply_t* xcb_get_pointer_mapping_reply | ( | xcb_connection_t * | c, |
xcb_get_pointer_mapping_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_pointer_mapping_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_pointer_mapping_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_pointer_mapping_request_t::pad0, and XCB_GET_POINTER_MAPPING.
xcb_get_property_cookie_t xcb_get_property | ( | xcb_connection_t * | c, |
uint8_t | _delete, | ||
xcb_window_t | window, | ||
xcb_atom_t | property, | ||
xcb_atom_t | type, | ||
uint32_t | long_offset, | ||
uint32_t | long_length | ||
) |
Gets a window property.
c | The connection |
_delete | Whether the property should actually be deleted. For deleting a property, the specified type has to match the actual property type. |
window | The window whose property you want to get. |
property | The property you want to get (an atom). |
type | The type of the property you want to get (an atom). |
long_offset | Specifies the offset (in 32-bit multiples) in the specified property where the data is to be retrieved. |
long_length | Specifies how many 32-bit multiples of data should be retrieved (e.g. if you set long_length to 4, you will receive 16 bytes of data). |
Gets the specified property from the specified window. Properties are for example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). Protocols such as EWMH also use properties - for example EWMH defines the window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
TODO: talk about type
TODO: talk about `delete`
TODO: talk about the offset/length thing. what's a valid use case?
References xcb_get_property_request_t::_delete, xcb_get_property_request_t::long_length, xcb_get_property_request_t::long_offset, xcb_get_property_request_t::property, xcb_get_property_request_t::type, xcb_get_property_request_t::window, and XCB_GET_PROPERTY.
xcb_get_property_reply_t* xcb_get_property_reply | ( | xcb_connection_t * | c, |
xcb_get_property_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_property_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_property_cookie_t::sequence.
xcb_get_property_cookie_t xcb_get_property_unchecked | ( | xcb_connection_t * | c, |
uint8_t | _delete, | ||
xcb_window_t | window, | ||
xcb_atom_t | property, | ||
xcb_atom_t | type, | ||
uint32_t | long_offset, | ||
uint32_t | long_length | ||
) |
Gets a window property.
c | The connection |
_delete | Whether the property should actually be deleted. For deleting a property, the specified type has to match the actual property type. |
window | The window whose property you want to get. |
property | The property you want to get (an atom). |
type | The type of the property you want to get (an atom). |
long_offset | Specifies the offset (in 32-bit multiples) in the specified property where the data is to be retrieved. |
long_length | Specifies how many 32-bit multiples of data should be retrieved (e.g. if you set long_length to 4, you will receive 16 bytes of data). |
Gets the specified property from the specified window. Properties are for example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). Protocols such as EWMH also use properties - for example EWMH defines the window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property.
TODO: talk about type
TODO: talk about `delete`
TODO: talk about the offset/length thing. what's a valid use case?
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_property_request_t::_delete, xcb_get_property_request_t::long_length, xcb_get_property_request_t::long_offset, xcb_get_property_request_t::property, xcb_get_property_request_t::type, xcb_get_property_request_t::window, and XCB_GET_PROPERTY.
c | The connection |
Delivers a request to the X server.
References xcb_get_screen_saver_request_t::pad0, and XCB_GET_SCREEN_SAVER.
xcb_get_screen_saver_reply_t* xcb_get_screen_saver_reply | ( | xcb_connection_t * | c, |
xcb_get_screen_saver_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_screen_saver_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_screen_saver_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_screen_saver_request_t::pad0, and XCB_GET_SCREEN_SAVER.
xcb_get_selection_owner_cookie_t xcb_get_selection_owner | ( | xcb_connection_t * | c, |
xcb_atom_t | selection | ||
) |
Gets the owner of a selection.
c | The connection |
selection | The selection. |
Gets the owner of the specified selection.
TODO: briefly explain what a selection is.
References xcb_get_selection_owner_request_t::pad0, xcb_get_selection_owner_request_t::selection, and XCB_GET_SELECTION_OWNER.
xcb_get_selection_owner_reply_t* xcb_get_selection_owner_reply | ( | xcb_connection_t * | c, |
xcb_get_selection_owner_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_selection_owner_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_selection_owner_cookie_t::sequence.
xcb_get_selection_owner_cookie_t xcb_get_selection_owner_unchecked | ( | xcb_connection_t * | c, |
xcb_atom_t | selection | ||
) |
Gets the owner of a selection.
c | The connection |
selection | The selection. |
Gets the owner of the specified selection.
TODO: briefly explain what a selection is.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_selection_owner_request_t::pad0, xcb_get_selection_owner_request_t::selection, and XCB_GET_SELECTION_OWNER.
xcb_get_window_attributes_cookie_t xcb_get_window_attributes | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
Gets window attributes.
c | The connection |
window | The window to get the attributes from. |
Gets the current attributes for the specified window.
References xcb_get_window_attributes_request_t::pad0, xcb_get_window_attributes_request_t::window, and XCB_GET_WINDOW_ATTRIBUTES.
xcb_get_window_attributes_reply_t* xcb_get_window_attributes_reply | ( | xcb_connection_t * | c, |
xcb_get_window_attributes_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_get_window_attributes_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_get_window_attributes_cookie_t::sequence.
xcb_get_window_attributes_cookie_t xcb_get_window_attributes_unchecked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
Gets window attributes.
c | The connection |
window | The window to get the attributes from. |
Gets the current attributes for the specified window.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_get_window_attributes_request_t::pad0, xcb_get_window_attributes_request_t::window, and XCB_GET_WINDOW_ATTRIBUTES.
xcb_void_cookie_t xcb_grab_button | ( | xcb_connection_t * | c, |
uint8_t | owner_events, | ||
xcb_window_t | grab_window, | ||
uint16_t | event_mask, | ||
uint8_t | pointer_mode, | ||
uint8_t | keyboard_mode, | ||
xcb_window_t | confine_to, | ||
xcb_cursor_t | cursor, | ||
uint8_t | button, | ||
uint16_t | modifiers | ||
) |
Grab pointer button(s)
c | The connection |
owner_events | If 1, the grab_window will still get the pointer events. If 0, events are not reported to the grab_window. |
grab_window | Specifies the window on which the pointer should be grabbed. |
event_mask | Specifies which pointer events are reported to the client. TODO: which values? |
pointer_mode | A bitmask of xcb_grab_mode_t values. |
pointer_mode | |
keyboard_mode | A bitmask of xcb_grab_mode_t values. |
keyboard_mode | |
confine_to | Specifies the window to confine the pointer in (the user will not be able to move the pointer out of that window). The special value `XCB_NONE` means don't confine the pointer. |
cursor | Specifies the cursor that should be displayed or `XCB_NONE` to not change the cursor. |
button | A bitmask of xcb_button_index_t values. |
button | |
modifiers | The modifiers to grab. Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all possible modifier combinations. |
This request establishes a passive grab. The pointer is actively grabbed as described in GrabPointer, the last-pointer-grab time is set to the time at which the button was pressed (as transmitted in the ButtonPress event), and the ButtonPress event is reported if all of the following conditions are true:
The pointer is not grabbed and the specified button is logically pressed when the specified modifier keys are logically down, and no other buttons or modifier keys are logically down.
The grab-window contains the pointer.
The confine-to window (if any) is viewable.
A passive grab on the same button/key combination does not exist on any ancestor of grab-window.
The interpretation of the remaining arguments is the same as for GrabPointer. The active grab is terminated automatically when the logical state of the pointer has all buttons released, independent of the logical state of modifier keys. Note that the logical state of a device (as seen by means of the protocol) may lag the physical state if device event processing is frozen. This request overrides all previous passive grabs by the same client on the same button/key combinations on the same window. A modifier of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all specified modifiers have currently assigned keycodes. A button of AnyButton is equivalent to issuing the request for all possible buttons. Otherwise, it is not required that the button specified currently be assigned to a physical button.
An Access error is generated if some other client has already issued a GrabButton request with the same button/key combination on the same window. When using AnyModifier or AnyButton, the request fails completely (no grabs are established), and an Access error is generated if there is a conflicting grab for any combination. The request has no effect on an active grab.
References xcb_grab_button_request_t::button, xcb_grab_button_request_t::confine_to, xcb_grab_button_request_t::cursor, xcb_grab_button_request_t::event_mask, xcb_grab_button_request_t::grab_window, xcb_grab_button_request_t::keyboard_mode, xcb_grab_button_request_t::modifiers, xcb_grab_button_request_t::owner_events, xcb_grab_button_request_t::pad0, xcb_grab_button_request_t::pointer_mode, and XCB_GRAB_BUTTON.
xcb_void_cookie_t xcb_grab_button_checked | ( | xcb_connection_t * | c, |
uint8_t | owner_events, | ||
xcb_window_t | grab_window, | ||
uint16_t | event_mask, | ||
uint8_t | pointer_mode, | ||
uint8_t | keyboard_mode, | ||
xcb_window_t | confine_to, | ||
xcb_cursor_t | cursor, | ||
uint8_t | button, | ||
uint16_t | modifiers | ||
) |
Grab pointer button(s)
c | The connection |
owner_events | If 1, the grab_window will still get the pointer events. If 0, events are not reported to the grab_window. |
grab_window | Specifies the window on which the pointer should be grabbed. |
event_mask | Specifies which pointer events are reported to the client. TODO: which values? |
pointer_mode | A bitmask of xcb_grab_mode_t values. |
pointer_mode | |
keyboard_mode | A bitmask of xcb_grab_mode_t values. |
keyboard_mode | |
confine_to | Specifies the window to confine the pointer in (the user will not be able to move the pointer out of that window). The special value `XCB_NONE` means don't confine the pointer. |
cursor | Specifies the cursor that should be displayed or `XCB_NONE` to not change the cursor. |
button | A bitmask of xcb_button_index_t values. |
button | |
modifiers | The modifiers to grab. Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all possible modifier combinations. |
This request establishes a passive grab. The pointer is actively grabbed as described in GrabPointer, the last-pointer-grab time is set to the time at which the button was pressed (as transmitted in the ButtonPress event), and the ButtonPress event is reported if all of the following conditions are true:
The pointer is not grabbed and the specified button is logically pressed when the specified modifier keys are logically down, and no other buttons or modifier keys are logically down.
The grab-window contains the pointer.
The confine-to window (if any) is viewable.
A passive grab on the same button/key combination does not exist on any ancestor of grab-window.
The interpretation of the remaining arguments is the same as for GrabPointer. The active grab is terminated automatically when the logical state of the pointer has all buttons released, independent of the logical state of modifier keys. Note that the logical state of a device (as seen by means of the protocol) may lag the physical state if device event processing is frozen. This request overrides all previous passive grabs by the same client on the same button/key combinations on the same window. A modifier of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all specified modifiers have currently assigned keycodes. A button of AnyButton is equivalent to issuing the request for all possible buttons. Otherwise, it is not required that the button specified currently be assigned to a physical button.
An Access error is generated if some other client has already issued a GrabButton request with the same button/key combination on the same window. When using AnyModifier or AnyButton, the request fails completely (no grabs are established), and an Access error is generated if there is a conflicting grab for any combination. The request has no effect on an active grab.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_grab_button_request_t::button, xcb_grab_button_request_t::confine_to, xcb_grab_button_request_t::cursor, xcb_grab_button_request_t::event_mask, xcb_grab_button_request_t::grab_window, xcb_grab_button_request_t::keyboard_mode, xcb_grab_button_request_t::modifiers, xcb_grab_button_request_t::owner_events, xcb_grab_button_request_t::pad0, xcb_grab_button_request_t::pointer_mode, and XCB_GRAB_BUTTON.
xcb_void_cookie_t xcb_grab_key | ( | xcb_connection_t * | c, |
uint8_t | owner_events, | ||
xcb_window_t | grab_window, | ||
uint16_t | modifiers, | ||
xcb_keycode_t | key, | ||
uint8_t | pointer_mode, | ||
uint8_t | keyboard_mode | ||
) |
Grab keyboard key(s)
c | The connection |
owner_events | If 1, the grab_window will still get the pointer events. If 0, events are not reported to the grab_window. |
grab_window | Specifies the window on which the pointer should be grabbed. |
modifiers | The modifiers to grab. Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all possible modifier combinations. |
key | The keycode of the key to grab. The special value `XCB_GRAB_ANY` means grab any key. |
pointer_mode | A bitmask of xcb_grab_mode_t values. |
pointer_mode | |
keyboard_mode | A bitmask of xcb_grab_mode_t values. |
keyboard_mode |
Establishes a passive grab on the keyboard. In the future, the keyboard is actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to the time at which the key was pressed (as transmitted in the KeyPress event), and the KeyPress event is reported if all of the following conditions are true:
The keyboard is not grabbed and the specified key (which can itself be a modifier key) is logically pressed when the specified modifier keys are logically down, and no other modifier keys are logically down.
Either the grab_window is an ancestor of (or is) the focus window, or the grab_window is a descendant of the focus window and contains the pointer.
A passive grab on the same key combination does not exist on any ancestor of grab_window.
The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated automatically when the logical state of the keyboard has the specified key released (independent of the logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window.
Note that the logical state of a device (as seen by client applications) may lag the physical state if device event processing is frozen.
A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode and max_keycode in the connection setup, or a BadValue error results.
If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error results (no grabs are established) if there is a conflicting grab for any combination.
References xcb_grab_key_request_t::grab_window, xcb_grab_key_request_t::key, xcb_grab_key_request_t::keyboard_mode, xcb_grab_key_request_t::modifiers, xcb_grab_key_request_t::owner_events, xcb_grab_key_request_t::pad0, xcb_grab_key_request_t::pointer_mode, and XCB_GRAB_KEY.
xcb_void_cookie_t xcb_grab_key_checked | ( | xcb_connection_t * | c, |
uint8_t | owner_events, | ||
xcb_window_t | grab_window, | ||
uint16_t | modifiers, | ||
xcb_keycode_t | key, | ||
uint8_t | pointer_mode, | ||
uint8_t | keyboard_mode | ||
) |
Grab keyboard key(s)
c | The connection |
owner_events | If 1, the grab_window will still get the pointer events. If 0, events are not reported to the grab_window. |
grab_window | Specifies the window on which the pointer should be grabbed. |
modifiers | The modifiers to grab. Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all possible modifier combinations. |
key | The keycode of the key to grab. The special value `XCB_GRAB_ANY` means grab any key. |
pointer_mode | A bitmask of xcb_grab_mode_t values. |
pointer_mode | |
keyboard_mode | A bitmask of xcb_grab_mode_t values. |
keyboard_mode |
Establishes a passive grab on the keyboard. In the future, the keyboard is actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to the time at which the key was pressed (as transmitted in the KeyPress event), and the KeyPress event is reported if all of the following conditions are true:
The keyboard is not grabbed and the specified key (which can itself be a modifier key) is logically pressed when the specified modifier keys are logically down, and no other modifier keys are logically down.
Either the grab_window is an ancestor of (or is) the focus window, or the grab_window is a descendant of the focus window and contains the pointer.
A passive grab on the same key combination does not exist on any ancestor of grab_window.
The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated automatically when the logical state of the keyboard has the specified key released (independent of the logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window.
Note that the logical state of a device (as seen by client applications) may lag the physical state if device event processing is frozen.
A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode and max_keycode in the connection setup, or a BadValue error results.
If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error results (no grabs are established) if there is a conflicting grab for any combination.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_grab_key_request_t::grab_window, xcb_grab_key_request_t::key, xcb_grab_key_request_t::keyboard_mode, xcb_grab_key_request_t::modifiers, xcb_grab_key_request_t::owner_events, xcb_grab_key_request_t::pad0, xcb_grab_key_request_t::pointer_mode, and XCB_GRAB_KEY.
xcb_grab_keyboard_cookie_t xcb_grab_keyboard | ( | xcb_connection_t * | c, |
uint8_t | owner_events, | ||
xcb_window_t | grab_window, | ||
xcb_timestamp_t | time, | ||
uint8_t | pointer_mode, | ||
uint8_t | keyboard_mode | ||
) |
Grab the keyboard.
c | The connection |
owner_events | If 1, the grab_window will still get the pointer events. If 0, events are not reported to the grab_window. |
grab_window | Specifies the window on which the pointer should be grabbed. |
time | Timestamp to avoid race conditions when running X over the network. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
pointer_mode | A bitmask of xcb_grab_mode_t values. |
pointer_mode | |
keyboard_mode | A bitmask of xcb_grab_mode_t values. |
keyboard_mode |
Actively grabs control of the keyboard and generates FocusIn and FocusOut events. Further key events are reported only to the grabbing client.
Any active keyboard grab by this client is overridden. If the keyboard is actively grabbed by some other client, `AlreadyGrabbed` is returned. If grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard is frozen by an active grab of another client, `GrabFrozen` is returned. If the specified time is earlier than the last-keyboard-grab time or later than the current X server time, `GrabInvalidTime` is returned. Otherwise, the last-keyboard-grab time is set to the specified time.
References xcb_grab_keyboard_request_t::grab_window, xcb_grab_keyboard_request_t::keyboard_mode, xcb_grab_keyboard_request_t::owner_events, xcb_grab_keyboard_request_t::pad0, xcb_grab_keyboard_request_t::pointer_mode, xcb_grab_keyboard_request_t::time, and XCB_GRAB_KEYBOARD.
xcb_grab_keyboard_reply_t* xcb_grab_keyboard_reply | ( | xcb_connection_t * | c, |
xcb_grab_keyboard_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_grab_keyboard_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_grab_keyboard_cookie_t::sequence.
xcb_grab_keyboard_cookie_t xcb_grab_keyboard_unchecked | ( | xcb_connection_t * | c, |
uint8_t | owner_events, | ||
xcb_window_t | grab_window, | ||
xcb_timestamp_t | time, | ||
uint8_t | pointer_mode, | ||
uint8_t | keyboard_mode | ||
) |
Grab the keyboard.
c | The connection |
owner_events | If 1, the grab_window will still get the pointer events. If 0, events are not reported to the grab_window. |
grab_window | Specifies the window on which the pointer should be grabbed. |
time | Timestamp to avoid race conditions when running X over the network. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
pointer_mode | A bitmask of xcb_grab_mode_t values. |
pointer_mode | |
keyboard_mode | A bitmask of xcb_grab_mode_t values. |
keyboard_mode |
Actively grabs control of the keyboard and generates FocusIn and FocusOut events. Further key events are reported only to the grabbing client.
Any active keyboard grab by this client is overridden. If the keyboard is actively grabbed by some other client, `AlreadyGrabbed` is returned. If grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard is frozen by an active grab of another client, `GrabFrozen` is returned. If the specified time is earlier than the last-keyboard-grab time or later than the current X server time, `GrabInvalidTime` is returned. Otherwise, the last-keyboard-grab time is set to the specified time.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_grab_keyboard_request_t::grab_window, xcb_grab_keyboard_request_t::keyboard_mode, xcb_grab_keyboard_request_t::owner_events, xcb_grab_keyboard_request_t::pad0, xcb_grab_keyboard_request_t::pointer_mode, xcb_grab_keyboard_request_t::time, and XCB_GRAB_KEYBOARD.
xcb_grab_pointer_cookie_t xcb_grab_pointer | ( | xcb_connection_t * | c, |
uint8_t | owner_events, | ||
xcb_window_t | grab_window, | ||
uint16_t | event_mask, | ||
uint8_t | pointer_mode, | ||
uint8_t | keyboard_mode, | ||
xcb_window_t | confine_to, | ||
xcb_cursor_t | cursor, | ||
xcb_timestamp_t | time | ||
) |
Grab the pointer.
c | The connection |
owner_events | If 1, the grab_window will still get the pointer events. If 0, events are not reported to the grab_window. |
grab_window | Specifies the window on which the pointer should be grabbed. |
event_mask | Specifies which pointer events are reported to the client. TODO: which values? |
pointer_mode | A bitmask of xcb_grab_mode_t values. |
pointer_mode | |
keyboard_mode | A bitmask of xcb_grab_mode_t values. |
keyboard_mode | |
confine_to | Specifies the window to confine the pointer in (the user will not be able to move the pointer out of that window). The special value `XCB_NONE` means don't confine the pointer. |
cursor | Specifies the cursor that should be displayed or `XCB_NONE` to not change the cursor. |
time | The time argument allows you to avoid certain circumstances that come up if applications take a long time to respond or if there are long network delays. Consider a situation where you have two applications, both of which normally grab the pointer when clicked on. If both applications specify the timestamp from the event, the second application may wake up faster and successfully grab the pointer before the first application. The first application then will get an indication that the other application grabbed the pointer before its request was processed. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client.
References xcb_grab_pointer_request_t::confine_to, xcb_grab_pointer_request_t::cursor, xcb_grab_pointer_request_t::event_mask, xcb_grab_pointer_request_t::grab_window, xcb_grab_pointer_request_t::keyboard_mode, xcb_grab_pointer_request_t::owner_events, xcb_grab_pointer_request_t::pointer_mode, xcb_grab_pointer_request_t::time, and XCB_GRAB_POINTER.
xcb_grab_pointer_reply_t* xcb_grab_pointer_reply | ( | xcb_connection_t * | c, |
xcb_grab_pointer_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_grab_pointer_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_grab_pointer_cookie_t::sequence.
xcb_grab_pointer_cookie_t xcb_grab_pointer_unchecked | ( | xcb_connection_t * | c, |
uint8_t | owner_events, | ||
xcb_window_t | grab_window, | ||
uint16_t | event_mask, | ||
uint8_t | pointer_mode, | ||
uint8_t | keyboard_mode, | ||
xcb_window_t | confine_to, | ||
xcb_cursor_t | cursor, | ||
xcb_timestamp_t | time | ||
) |
Grab the pointer.
c | The connection |
owner_events | If 1, the grab_window will still get the pointer events. If 0, events are not reported to the grab_window. |
grab_window | Specifies the window on which the pointer should be grabbed. |
event_mask | Specifies which pointer events are reported to the client. TODO: which values? |
pointer_mode | A bitmask of xcb_grab_mode_t values. |
pointer_mode | |
keyboard_mode | A bitmask of xcb_grab_mode_t values. |
keyboard_mode | |
confine_to | Specifies the window to confine the pointer in (the user will not be able to move the pointer out of that window). The special value `XCB_NONE` means don't confine the pointer. |
cursor | Specifies the cursor that should be displayed or `XCB_NONE` to not change the cursor. |
time | The time argument allows you to avoid certain circumstances that come up if applications take a long time to respond or if there are long network delays. Consider a situation where you have two applications, both of which normally grab the pointer when clicked on. If both applications specify the timestamp from the event, the second application may wake up faster and successfully grab the pointer before the first application. The first application then will get an indication that the other application grabbed the pointer before its request was processed. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_grab_pointer_request_t::confine_to, xcb_grab_pointer_request_t::cursor, xcb_grab_pointer_request_t::event_mask, xcb_grab_pointer_request_t::grab_window, xcb_grab_pointer_request_t::keyboard_mode, xcb_grab_pointer_request_t::owner_events, xcb_grab_pointer_request_t::pointer_mode, xcb_grab_pointer_request_t::time, and XCB_GRAB_POINTER.
c | The connection |
Delivers a request to the X server.
References xcb_grab_server_request_t::pad0, and XCB_GRAB_SERVER.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_grab_server_request_t::pad0, and XCB_GRAB_SERVER.
Return the iterator pointing to the last element
i | An xcb_host_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_host_iterator_t::data, xcb_generic_iterator_t::index, xcb_host_iterator_t::index, xcb_generic_iterator_t::rem, xcb_host_iterator_t::rem, and xcb_host_next().
void xcb_host_next | ( | xcb_host_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_host_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_host_t)
References xcb_generic_iterator_t::data, xcb_host_iterator_t::data, xcb_host_iterator_t::index, and xcb_host_iterator_t::rem.
Referenced by xcb_host_end().
xcb_void_cookie_t xcb_image_text_16 | ( | xcb_connection_t * | c, |
uint8_t | string_len, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | x, | ||
int16_t | y, | ||
const xcb_char2b_t * | string | ||
) |
Draws text.
c | The connection |
string_len | The length of the string in characters. Note that this parameter limited by 255 due to using 8 bits! |
drawable | The drawable (Window or Pixmap) to draw text on. |
gc | The graphics context to use. The following graphics context components are used: plane-mask, foreground, background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. |
x | The x coordinate of the first character, relative to the origin of drawable. |
y | The y coordinate of the first character, relative to the origin of drawable. |
string | The string to draw. Only the first 255 characters are relevant due to the data type of string_len. Every character uses 2 bytes (hence the 16 in this request's name). |
Fills the destination rectangle with the background pixel from gc, then paints the text with the foreground pixel from gc. The upper-left corner of the filled rectangle is at [x, y - font-ascent]. The width is overall-width, the height is font-ascent + font-descent. The overall-width, font-ascent and font-descent are as returned by `xcb_query_text_extents` (TODO).
Note that using X core fonts is deprecated (but still supported) in favor of client-side rendering using Xft.
References xcb_image_text_16_request_t::drawable, xcb_image_text_16_request_t::gc, xcb_image_text_16_request_t::string_len, xcb_image_text_16_request_t::x, XCB_IMAGE_TEXT_16, and xcb_image_text_16_request_t::y.
xcb_void_cookie_t xcb_image_text_16_checked | ( | xcb_connection_t * | c, |
uint8_t | string_len, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | x, | ||
int16_t | y, | ||
const xcb_char2b_t * | string | ||
) |
Draws text.
c | The connection |
string_len | The length of the string in characters. Note that this parameter limited by 255 due to using 8 bits! |
drawable | The drawable (Window or Pixmap) to draw text on. |
gc | The graphics context to use. The following graphics context components are used: plane-mask, foreground, background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. |
x | The x coordinate of the first character, relative to the origin of drawable. |
y | The y coordinate of the first character, relative to the origin of drawable. |
string | The string to draw. Only the first 255 characters are relevant due to the data type of string_len. Every character uses 2 bytes (hence the 16 in this request's name). |
Fills the destination rectangle with the background pixel from gc, then paints the text with the foreground pixel from gc. The upper-left corner of the filled rectangle is at [x, y - font-ascent]. The width is overall-width, the height is font-ascent + font-descent. The overall-width, font-ascent and font-descent are as returned by `xcb_query_text_extents` (TODO).
Note that using X core fonts is deprecated (but still supported) in favor of client-side rendering using Xft.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_image_text_16_request_t::drawable, xcb_image_text_16_request_t::gc, xcb_image_text_16_request_t::string_len, xcb_image_text_16_request_t::x, XCB_IMAGE_TEXT_16, and xcb_image_text_16_request_t::y.
xcb_void_cookie_t xcb_image_text_8 | ( | xcb_connection_t * | c, |
uint8_t | string_len, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | x, | ||
int16_t | y, | ||
const char * | string | ||
) |
Draws text.
c | The connection |
string_len | The length of the string. Note that this parameter limited by 255 due to using 8 bits! |
drawable | The drawable (Window or Pixmap) to draw text on. |
gc | The graphics context to use. The following graphics context components are used: plane-mask, foreground, background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. |
x | The x coordinate of the first character, relative to the origin of drawable. |
y | The y coordinate of the first character, relative to the origin of drawable. |
string | The string to draw. Only the first 255 characters are relevant due to the data type of string_len. |
Fills the destination rectangle with the background pixel from gc, then paints the text with the foreground pixel from gc. The upper-left corner of the filled rectangle is at [x, y - font-ascent]. The width is overall-width, the height is font-ascent + font-descent. The overall-width, font-ascent and font-descent are as returned by `xcb_query_text_extents` (TODO).
Note that using X core fonts is deprecated (but still supported) in favor of client-side rendering using Xft.
References xcb_image_text_8_request_t::drawable, xcb_image_text_8_request_t::gc, xcb_image_text_8_request_t::string_len, xcb_image_text_8_request_t::x, XCB_IMAGE_TEXT_8, and xcb_image_text_8_request_t::y.
xcb_void_cookie_t xcb_image_text_8_checked | ( | xcb_connection_t * | c, |
uint8_t | string_len, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | x, | ||
int16_t | y, | ||
const char * | string | ||
) |
Draws text.
c | The connection |
string_len | The length of the string. Note that this parameter limited by 255 due to using 8 bits! |
drawable | The drawable (Window or Pixmap) to draw text on. |
gc | The graphics context to use. The following graphics context components are used: plane-mask, foreground, background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. |
x | The x coordinate of the first character, relative to the origin of drawable. |
y | The y coordinate of the first character, relative to the origin of drawable. |
string | The string to draw. Only the first 255 characters are relevant due to the data type of string_len. |
Fills the destination rectangle with the background pixel from gc, then paints the text with the foreground pixel from gc. The upper-left corner of the filled rectangle is at [x, y - font-ascent]. The width is overall-width, the height is font-ascent + font-descent. The overall-width, font-ascent and font-descent are as returned by `xcb_query_text_extents` (TODO).
Note that using X core fonts is deprecated (but still supported) in favor of client-side rendering using Xft.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_image_text_8_request_t::drawable, xcb_image_text_8_request_t::gc, xcb_image_text_8_request_t::string_len, xcb_image_text_8_request_t::x, XCB_IMAGE_TEXT_8, and xcb_image_text_8_request_t::y.
xcb_void_cookie_t xcb_install_colormap | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_install_colormap_request_t::cmap, xcb_install_colormap_request_t::pad0, and XCB_INSTALL_COLORMAP.
xcb_void_cookie_t xcb_install_colormap_checked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_install_colormap_request_t::cmap, xcb_install_colormap_request_t::pad0, and XCB_INSTALL_COLORMAP.
xcb_intern_atom_cookie_t xcb_intern_atom | ( | xcb_connection_t * | c, |
uint8_t | only_if_exists, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
Get atom identifier by name.
c | The connection |
only_if_exists | Return a valid atom id only if the atom already exists. |
name_len | The length of the following name. |
name | The name of the atom. |
Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified name. Atoms are used in protocols like EWMH, for example to store window titles (`_NET_WM_NAME` atom) as property of a window.
If only_if_exists is 0, the atom will be created if it does not already exist. If only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does not yet exist.
References xcb_intern_atom_request_t::name_len, xcb_intern_atom_request_t::only_if_exists, xcb_intern_atom_request_t::pad0, and XCB_INTERN_ATOM.
xcb_intern_atom_reply_t* xcb_intern_atom_reply | ( | xcb_connection_t * | c, |
xcb_intern_atom_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_intern_atom_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_intern_atom_cookie_t::sequence.
xcb_intern_atom_cookie_t xcb_intern_atom_unchecked | ( | xcb_connection_t * | c, |
uint8_t | only_if_exists, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
Get atom identifier by name.
c | The connection |
only_if_exists | Return a valid atom id only if the atom already exists. |
name_len | The length of the following name. |
name | The name of the atom. |
Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified name. Atoms are used in protocols like EWMH, for example to store window titles (`_NET_WM_NAME` atom) as property of a window.
If only_if_exists is 0, the atom will be created if it does not already exist. If only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does not yet exist.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_intern_atom_request_t::name_len, xcb_intern_atom_request_t::only_if_exists, xcb_intern_atom_request_t::pad0, and XCB_INTERN_ATOM.
Return the iterator pointing to the last element
i | An xcb_keycode_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_keycode_iterator_t::data, xcb_generic_iterator_t::index, xcb_keycode_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_keycode_iterator_t::rem.
void xcb_keycode_next | ( | xcb_keycode_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_keycode_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_keycode_t)
References xcb_keycode_iterator_t::data, xcb_keycode_iterator_t::index, and xcb_keycode_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_keysym_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_keysym_iterator_t::data, xcb_generic_iterator_t::index, xcb_keysym_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_keysym_iterator_t::rem.
void xcb_keysym_next | ( | xcb_keysym_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_keysym_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_keysym_t)
References xcb_keysym_iterator_t::data, xcb_keysym_iterator_t::index, and xcb_keysym_iterator_t::rem.
xcb_void_cookie_t xcb_kill_client | ( | xcb_connection_t * | c, |
uint32_t | resource | ||
) |
kills a client
c | The connection |
resource | Any resource belonging to the client (for example a Window), used to identify the client connection. The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients that have terminated in `RetainTemporary` (TODO) are destroyed. |
Forces a close down of the client that created the specified resource.
References xcb_kill_client_request_t::pad0, xcb_kill_client_request_t::resource, and XCB_KILL_CLIENT.
xcb_void_cookie_t xcb_kill_client_checked | ( | xcb_connection_t * | c, |
uint32_t | resource | ||
) |
kills a client
c | The connection |
resource | Any resource belonging to the client (for example a Window), used to identify the client connection. The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients that have terminated in `RetainTemporary` (TODO) are destroyed. |
Forces a close down of the client that created the specified resource.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_kill_client_request_t::pad0, xcb_kill_client_request_t::resource, and XCB_KILL_CLIENT.
c | The connection |
Delivers a request to the X server.
References xcb_list_extensions_request_t::pad0, and XCB_LIST_EXTENSIONS.
xcb_list_extensions_reply_t* xcb_list_extensions_reply | ( | xcb_connection_t * | c, |
xcb_list_extensions_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_list_extensions_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_list_extensions_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_list_extensions_request_t::pad0, and XCB_LIST_EXTENSIONS.
xcb_list_fonts_cookie_t xcb_list_fonts | ( | xcb_connection_t * | c, |
uint16_t | max_names, | ||
uint16_t | pattern_len, | ||
const char * | pattern | ||
) |
get matching font names
c | The connection |
max_names | The maximum number of fonts to be returned. |
pattern_len | The length (in bytes) of pattern. |
pattern | A font pattern, for example "-misc-fixed-*". The asterisk (*) is a wildcard for any number of characters. The question mark (?) is a wildcard for a single character. Use of uppercase or lowercase does not matter. |
Gets a list of available font names which match the given pattern.
References xcb_list_fonts_request_t::max_names, xcb_list_fonts_request_t::pad0, xcb_list_fonts_request_t::pattern_len, and XCB_LIST_FONTS.
xcb_list_fonts_reply_t* xcb_list_fonts_reply | ( | xcb_connection_t * | c, |
xcb_list_fonts_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_list_fonts_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_list_fonts_cookie_t::sequence.
xcb_list_fonts_cookie_t xcb_list_fonts_unchecked | ( | xcb_connection_t * | c, |
uint16_t | max_names, | ||
uint16_t | pattern_len, | ||
const char * | pattern | ||
) |
get matching font names
c | The connection |
max_names | The maximum number of fonts to be returned. |
pattern_len | The length (in bytes) of pattern. |
pattern | A font pattern, for example "-misc-fixed-*". The asterisk (*) is a wildcard for any number of characters. The question mark (?) is a wildcard for a single character. Use of uppercase or lowercase does not matter. |
Gets a list of available font names which match the given pattern.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_list_fonts_request_t::max_names, xcb_list_fonts_request_t::pad0, xcb_list_fonts_request_t::pattern_len, and XCB_LIST_FONTS.
xcb_list_fonts_with_info_cookie_t xcb_list_fonts_with_info | ( | xcb_connection_t * | c, |
uint16_t | max_names, | ||
uint16_t | pattern_len, | ||
const char * | pattern | ||
) |
get matching font names and information
c | The connection |
max_names | The maximum number of fonts to be returned. |
pattern_len | The length (in bytes) of pattern. |
pattern | A font pattern, for example "-misc-fixed-*". The asterisk (*) is a wildcard for any number of characters. The question mark (?) is a wildcard for a single character. Use of uppercase or lowercase does not matter. |
Gets a list of available font names which match the given pattern.
References xcb_list_fonts_with_info_request_t::max_names, xcb_list_fonts_with_info_request_t::pad0, xcb_list_fonts_with_info_request_t::pattern_len, and XCB_LIST_FONTS_WITH_INFO.
xcb_list_fonts_with_info_reply_t* xcb_list_fonts_with_info_reply | ( | xcb_connection_t * | c, |
xcb_list_fonts_with_info_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_list_fonts_with_info_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_list_fonts_with_info_cookie_t::sequence.
xcb_list_fonts_with_info_cookie_t xcb_list_fonts_with_info_unchecked | ( | xcb_connection_t * | c, |
uint16_t | max_names, | ||
uint16_t | pattern_len, | ||
const char * | pattern | ||
) |
get matching font names and information
c | The connection |
max_names | The maximum number of fonts to be returned. |
pattern_len | The length (in bytes) of pattern. |
pattern | A font pattern, for example "-misc-fixed-*". The asterisk (*) is a wildcard for any number of characters. The question mark (?) is a wildcard for a single character. Use of uppercase or lowercase does not matter. |
Gets a list of available font names which match the given pattern.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_list_fonts_with_info_request_t::max_names, xcb_list_fonts_with_info_request_t::pad0, xcb_list_fonts_with_info_request_t::pattern_len, and XCB_LIST_FONTS_WITH_INFO.
c | The connection |
Delivers a request to the X server.
References xcb_list_hosts_request_t::pad0, and XCB_LIST_HOSTS.
xcb_list_hosts_reply_t* xcb_list_hosts_reply | ( | xcb_connection_t * | c, |
xcb_list_hosts_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_list_hosts_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_list_hosts_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_list_hosts_request_t::pad0, and XCB_LIST_HOSTS.
xcb_list_installed_colormaps_cookie_t xcb_list_installed_colormaps | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_list_installed_colormaps_request_t::pad0, xcb_list_installed_colormaps_request_t::window, and XCB_LIST_INSTALLED_COLORMAPS.
xcb_list_installed_colormaps_reply_t* xcb_list_installed_colormaps_reply | ( | xcb_connection_t * | c, |
xcb_list_installed_colormaps_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_list_installed_colormaps_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_list_installed_colormaps_cookie_t::sequence.
xcb_list_installed_colormaps_cookie_t xcb_list_installed_colormaps_unchecked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_list_installed_colormaps_request_t::pad0, xcb_list_installed_colormaps_request_t::window, and XCB_LIST_INSTALLED_COLORMAPS.
xcb_list_properties_cookie_t xcb_list_properties | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_list_properties_request_t::pad0, xcb_list_properties_request_t::window, and XCB_LIST_PROPERTIES.
xcb_list_properties_reply_t* xcb_list_properties_reply | ( | xcb_connection_t * | c, |
xcb_list_properties_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_list_properties_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_list_properties_cookie_t::sequence.
xcb_list_properties_cookie_t xcb_list_properties_unchecked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_list_properties_request_t::pad0, xcb_list_properties_request_t::window, and XCB_LIST_PROPERTIES.
xcb_lookup_color_cookie_t xcb_lookup_color | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_lookup_color_request_t::cmap, xcb_lookup_color_request_t::name_len, xcb_lookup_color_request_t::pad0, xcb_lookup_color_request_t::pad1, and XCB_LOOKUP_COLOR.
xcb_lookup_color_reply_t* xcb_lookup_color_reply | ( | xcb_connection_t * | c, |
xcb_lookup_color_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_lookup_color_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_lookup_color_cookie_t::sequence.
xcb_lookup_color_cookie_t xcb_lookup_color_unchecked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_lookup_color_request_t::cmap, xcb_lookup_color_request_t::name_len, xcb_lookup_color_request_t::pad0, xcb_lookup_color_request_t::pad1, and XCB_LOOKUP_COLOR.
xcb_void_cookie_t xcb_map_subwindows | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_map_subwindows_request_t::pad0, xcb_map_subwindows_request_t::window, and XCB_MAP_SUBWINDOWS.
xcb_void_cookie_t xcb_map_subwindows_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_map_subwindows_request_t::pad0, xcb_map_subwindows_request_t::window, and XCB_MAP_SUBWINDOWS.
xcb_void_cookie_t xcb_map_window | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
Makes a window visible.
c | The connection |
window | The window to make visible. |
Maps the specified window. This means making the window visible (as long as its parent is visible).
This MapWindow request will be translated to a MapRequest request if a window manager is running. The window manager then decides to either map the window or not. Set the override-redirect window attribute to true if you want to bypass this mechanism.
If the window manager decides to map the window (or if no window manager is running), a MapNotify event is generated.
If the window becomes viewable and no earlier contents for it are remembered, the X server tiles the window with its background. If the window's background is undefined, the existing screen contents are not altered, and the X server generates zero or more Expose events.
If the window type is InputOutput, an Expose event will be generated when the window becomes visible. The normal response to an Expose event should be to repaint the window.
References xcb_map_window_request_t::pad0, xcb_map_window_request_t::window, and XCB_MAP_WINDOW.
xcb_void_cookie_t xcb_map_window_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
Makes a window visible.
c | The connection |
window | The window to make visible. |
Maps the specified window. This means making the window visible (as long as its parent is visible).
This MapWindow request will be translated to a MapRequest request if a window manager is running. The window manager then decides to either map the window or not. Set the override-redirect window attribute to true if you want to bypass this mechanism.
If the window manager decides to map the window (or if no window manager is running), a MapNotify event is generated.
If the window becomes viewable and no earlier contents for it are remembered, the X server tiles the window with its background. If the window's background is undefined, the existing screen contents are not altered, and the X server generates zero or more Expose events.
If the window type is InputOutput, an Expose event will be generated when the window becomes visible. The normal response to an Expose event should be to repaint the window.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_map_window_request_t::pad0, xcb_map_window_request_t::window, and XCB_MAP_WINDOW.
c | The connection |
Delivers a request to the X server.
References xcb_no_operation_request_t::pad0, and XCB_NO_OPERATION.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_no_operation_request_t::pad0, and XCB_NO_OPERATION.
xcb_void_cookie_t xcb_open_font | ( | xcb_connection_t * | c, |
xcb_font_t | fid, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
opens a font
c | The connection |
fid | The ID with which you will refer to the font, created by `xcb_generate_id`. |
name_len | Length (in bytes) of name. |
name | A pattern describing an X core font. |
Opens any X core font matching the given name (for example "-misc-fixed-*").
Note that X core fonts are deprecated (but still supported) in favor of client-side rendering using Xft.
References xcb_open_font_request_t::fid, xcb_open_font_request_t::name_len, xcb_open_font_request_t::pad0, xcb_open_font_request_t::pad1, and XCB_OPEN_FONT.
xcb_void_cookie_t xcb_open_font_checked | ( | xcb_connection_t * | c, |
xcb_font_t | fid, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
opens a font
c | The connection |
fid | The ID with which you will refer to the font, created by `xcb_generate_id`. |
name_len | Length (in bytes) of name. |
name | A pattern describing an X core font. |
Opens any X core font matching the given name (for example "-misc-fixed-*").
Note that X core fonts are deprecated (but still supported) in favor of client-side rendering using Xft.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_open_font_request_t::fid, xcb_open_font_request_t::name_len, xcb_open_font_request_t::pad0, xcb_open_font_request_t::pad1, and XCB_OPEN_FONT.
Return the iterator pointing to the last element
i | An xcb_pixmap_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_pixmap_iterator_t::data, xcb_generic_iterator_t::data, xcb_pixmap_iterator_t::index, xcb_generic_iterator_t::index, xcb_pixmap_iterator_t::rem, and xcb_generic_iterator_t::rem.
void xcb_pixmap_next | ( | xcb_pixmap_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_pixmap_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_pixmap_t)
References xcb_pixmap_iterator_t::data, xcb_pixmap_iterator_t::index, and xcb_pixmap_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_point_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_point_iterator_t::data, xcb_generic_iterator_t::index, xcb_point_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_point_iterator_t::rem.
void xcb_point_next | ( | xcb_point_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_point_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_point_t)
References xcb_point_iterator_t::data, xcb_point_iterator_t::index, and xcb_point_iterator_t::rem.
xcb_void_cookie_t xcb_poly_arc | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | arcs_len, | ||
const xcb_arc_t * | arcs | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_poly_arc_request_t::drawable, xcb_poly_arc_request_t::gc, xcb_poly_arc_request_t::pad0, and XCB_POLY_ARC.
xcb_void_cookie_t xcb_poly_arc_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | arcs_len, | ||
const xcb_arc_t * | arcs | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_arc_request_t::drawable, xcb_poly_arc_request_t::gc, xcb_poly_arc_request_t::pad0, and XCB_POLY_ARC.
xcb_void_cookie_t xcb_poly_fill_arc | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | arcs_len, | ||
const xcb_arc_t * | arcs | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_poly_fill_arc_request_t::drawable, xcb_poly_fill_arc_request_t::gc, xcb_poly_fill_arc_request_t::pad0, and XCB_POLY_FILL_ARC.
xcb_void_cookie_t xcb_poly_fill_arc_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | arcs_len, | ||
const xcb_arc_t * | arcs | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_fill_arc_request_t::drawable, xcb_poly_fill_arc_request_t::gc, xcb_poly_fill_arc_request_t::pad0, and XCB_POLY_FILL_ARC.
xcb_void_cookie_t xcb_poly_fill_rectangle | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | rectangles_len, | ||
const xcb_rectangle_t * | rectangles | ||
) |
Fills rectangles.
c | The connection |
drawable | The drawable (Window or Pixmap) to draw on. |
gc | The graphics context to use. The following graphics context components are used: function, plane-mask, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. The following graphics context mode-dependent components are used: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. |
rectangles_len | The number of `xcb_rectangle_t` structures in rectangles. |
rectangles | The rectangles to fill. |
Fills the specified rectangle(s) in the order listed in the array. For any given rectangle, each pixel is not drawn more than once. If rectangles intersect, the intersecting pixels are drawn multiple times.
References xcb_poly_fill_rectangle_request_t::drawable, xcb_poly_fill_rectangle_request_t::gc, xcb_poly_fill_rectangle_request_t::pad0, and XCB_POLY_FILL_RECTANGLE.
xcb_void_cookie_t xcb_poly_fill_rectangle_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | rectangles_len, | ||
const xcb_rectangle_t * | rectangles | ||
) |
Fills rectangles.
c | The connection |
drawable | The drawable (Window or Pixmap) to draw on. |
gc | The graphics context to use. The following graphics context components are used: function, plane-mask, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. The following graphics context mode-dependent components are used: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. |
rectangles_len | The number of `xcb_rectangle_t` structures in rectangles. |
rectangles | The rectangles to fill. |
Fills the specified rectangle(s) in the order listed in the array. For any given rectangle, each pixel is not drawn more than once. If rectangles intersect, the intersecting pixels are drawn multiple times.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_fill_rectangle_request_t::drawable, xcb_poly_fill_rectangle_request_t::gc, xcb_poly_fill_rectangle_request_t::pad0, and XCB_POLY_FILL_RECTANGLE.
xcb_void_cookie_t xcb_poly_line | ( | xcb_connection_t * | c, |
uint8_t | coordinate_mode, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | points_len, | ||
const xcb_point_t * | points | ||
) |
draw lines
c | The connection |
coordinate_mode | A bitmask of xcb_coord_mode_t values. |
coordinate_mode | |
drawable | The drawable to draw the line(s) on. |
gc | The graphics context to use. |
points_len | The number of `xcb_point_t` structures in points. |
points | An array of points. |
Draws points_len-1 lines between each pair of points (point[i], point[i+1]) in the points array. The lines are drawn in the order listed in the array. They join correctly at all intermediate points, and if the first and last points coincide, the first and last lines also join correctly. For any given line, a pixel is not drawn more than once. If thin (zero line-width) lines intersect, the intersecting pixels are drawn multiple times. If wide lines intersect, the intersecting pixels are drawn only once, as though the entire request were a single, filled shape.
References xcb_poly_line_request_t::coordinate_mode, xcb_poly_line_request_t::drawable, xcb_poly_line_request_t::gc, and XCB_POLY_LINE.
xcb_void_cookie_t xcb_poly_line_checked | ( | xcb_connection_t * | c, |
uint8_t | coordinate_mode, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | points_len, | ||
const xcb_point_t * | points | ||
) |
draw lines
c | The connection |
coordinate_mode | A bitmask of xcb_coord_mode_t values. |
coordinate_mode | |
drawable | The drawable to draw the line(s) on. |
gc | The graphics context to use. |
points_len | The number of `xcb_point_t` structures in points. |
points | An array of points. |
Draws points_len-1 lines between each pair of points (point[i], point[i+1]) in the points array. The lines are drawn in the order listed in the array. They join correctly at all intermediate points, and if the first and last points coincide, the first and last lines also join correctly. For any given line, a pixel is not drawn more than once. If thin (zero line-width) lines intersect, the intersecting pixels are drawn multiple times. If wide lines intersect, the intersecting pixels are drawn only once, as though the entire request were a single, filled shape.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_line_request_t::coordinate_mode, xcb_poly_line_request_t::drawable, xcb_poly_line_request_t::gc, and XCB_POLY_LINE.
xcb_void_cookie_t xcb_poly_point | ( | xcb_connection_t * | c, |
uint8_t | coordinate_mode, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | points_len, | ||
const xcb_point_t * | points | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_poly_point_request_t::coordinate_mode, xcb_poly_point_request_t::drawable, xcb_poly_point_request_t::gc, and XCB_POLY_POINT.
xcb_void_cookie_t xcb_poly_point_checked | ( | xcb_connection_t * | c, |
uint8_t | coordinate_mode, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | points_len, | ||
const xcb_point_t * | points | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_point_request_t::coordinate_mode, xcb_poly_point_request_t::drawable, xcb_poly_point_request_t::gc, and XCB_POLY_POINT.
xcb_void_cookie_t xcb_poly_rectangle | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | rectangles_len, | ||
const xcb_rectangle_t * | rectangles | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_poly_rectangle_request_t::drawable, xcb_poly_rectangle_request_t::gc, xcb_poly_rectangle_request_t::pad0, and XCB_POLY_RECTANGLE.
xcb_void_cookie_t xcb_poly_rectangle_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | rectangles_len, | ||
const xcb_rectangle_t * | rectangles | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_rectangle_request_t::drawable, xcb_poly_rectangle_request_t::gc, xcb_poly_rectangle_request_t::pad0, and XCB_POLY_RECTANGLE.
xcb_void_cookie_t xcb_poly_segment | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | segments_len, | ||
const xcb_segment_t * | segments | ||
) |
draw lines
c | The connection |
drawable | A drawable (Window or Pixmap) to draw on. |
gc | The graphics context to use. TODO: document which attributes of a gc are used |
segments_len | The number of `xcb_segment_t` structures in segments. |
segments | An array of `xcb_segment_t` structures. |
Draws multiple, unconnected lines. For each segment, a line is drawn between (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of `xcb_segment_t` structures and does not perform joining at coincident endpoints. For any given line, a pixel is not drawn more than once. If lines intersect, the intersecting pixels are drawn multiple times.
TODO: include the xcb_segment_t data structure
TODO: an example
References xcb_poly_segment_request_t::drawable, xcb_poly_segment_request_t::gc, xcb_poly_segment_request_t::pad0, and XCB_POLY_SEGMENT.
xcb_void_cookie_t xcb_poly_segment_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint32_t | segments_len, | ||
const xcb_segment_t * | segments | ||
) |
draw lines
c | The connection |
drawable | A drawable (Window or Pixmap) to draw on. |
gc | The graphics context to use. TODO: document which attributes of a gc are used |
segments_len | The number of `xcb_segment_t` structures in segments. |
segments | An array of `xcb_segment_t` structures. |
Draws multiple, unconnected lines. For each segment, a line is drawn between (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of `xcb_segment_t` structures and does not perform joining at coincident endpoints. For any given line, a pixel is not drawn more than once. If lines intersect, the intersecting pixels are drawn multiple times.
TODO: include the xcb_segment_t data structure
TODO: an example
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_segment_request_t::drawable, xcb_poly_segment_request_t::gc, xcb_poly_segment_request_t::pad0, and XCB_POLY_SEGMENT.
xcb_void_cookie_t xcb_poly_text_16 | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | x, | ||
int16_t | y, | ||
uint32_t | items_len, | ||
const uint8_t * | items | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_poly_text_16_request_t::drawable, xcb_poly_text_16_request_t::gc, xcb_poly_text_16_request_t::pad0, xcb_poly_text_16_request_t::x, XCB_POLY_TEXT_16, and xcb_poly_text_16_request_t::y.
xcb_void_cookie_t xcb_poly_text_16_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | x, | ||
int16_t | y, | ||
uint32_t | items_len, | ||
const uint8_t * | items | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_text_16_request_t::drawable, xcb_poly_text_16_request_t::gc, xcb_poly_text_16_request_t::pad0, xcb_poly_text_16_request_t::x, XCB_POLY_TEXT_16, and xcb_poly_text_16_request_t::y.
xcb_void_cookie_t xcb_poly_text_8 | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | x, | ||
int16_t | y, | ||
uint32_t | items_len, | ||
const uint8_t * | items | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_poly_text_8_request_t::drawable, xcb_poly_text_8_request_t::gc, xcb_poly_text_8_request_t::pad0, xcb_poly_text_8_request_t::x, XCB_POLY_TEXT_8, and xcb_poly_text_8_request_t::y.
xcb_void_cookie_t xcb_poly_text_8_checked | ( | xcb_connection_t * | c, |
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
int16_t | x, | ||
int16_t | y, | ||
uint32_t | items_len, | ||
const uint8_t * | items | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_poly_text_8_request_t::drawable, xcb_poly_text_8_request_t::gc, xcb_poly_text_8_request_t::pad0, xcb_poly_text_8_request_t::x, XCB_POLY_TEXT_8, and xcb_poly_text_8_request_t::y.
xcb_void_cookie_t xcb_put_image | ( | xcb_connection_t * | c, |
uint8_t | format, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint16_t | width, | ||
uint16_t | height, | ||
int16_t | dst_x, | ||
int16_t | dst_y, | ||
uint8_t | left_pad, | ||
uint8_t | depth, | ||
uint32_t | data_len, | ||
const uint8_t * | data | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_put_image_request_t::depth, xcb_put_image_request_t::drawable, xcb_put_image_request_t::dst_x, xcb_put_image_request_t::dst_y, xcb_put_image_request_t::format, xcb_put_image_request_t::gc, xcb_put_image_request_t::height, xcb_put_image_request_t::left_pad, xcb_put_image_request_t::pad0, xcb_put_image_request_t::width, and XCB_PUT_IMAGE.
xcb_void_cookie_t xcb_put_image_checked | ( | xcb_connection_t * | c, |
uint8_t | format, | ||
xcb_drawable_t | drawable, | ||
xcb_gcontext_t | gc, | ||
uint16_t | width, | ||
uint16_t | height, | ||
int16_t | dst_x, | ||
int16_t | dst_y, | ||
uint8_t | left_pad, | ||
uint8_t | depth, | ||
uint32_t | data_len, | ||
const uint8_t * | data | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_put_image_request_t::depth, xcb_put_image_request_t::drawable, xcb_put_image_request_t::dst_x, xcb_put_image_request_t::dst_y, xcb_put_image_request_t::format, xcb_put_image_request_t::gc, xcb_put_image_request_t::height, xcb_put_image_request_t::left_pad, xcb_put_image_request_t::pad0, xcb_put_image_request_t::width, and XCB_PUT_IMAGE.
xcb_query_best_size_cookie_t xcb_query_best_size | ( | xcb_connection_t * | c, |
uint8_t | _class, | ||
xcb_drawable_t | drawable, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_query_best_size_request_t::_class, xcb_query_best_size_request_t::drawable, xcb_query_best_size_request_t::height, xcb_query_best_size_request_t::width, and XCB_QUERY_BEST_SIZE.
xcb_query_best_size_reply_t* xcb_query_best_size_reply | ( | xcb_connection_t * | c, |
xcb_query_best_size_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_query_best_size_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_query_best_size_cookie_t::sequence.
xcb_query_best_size_cookie_t xcb_query_best_size_unchecked | ( | xcb_connection_t * | c, |
uint8_t | _class, | ||
xcb_drawable_t | drawable, | ||
uint16_t | width, | ||
uint16_t | height | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_query_best_size_request_t::_class, xcb_query_best_size_request_t::drawable, xcb_query_best_size_request_t::height, xcb_query_best_size_request_t::width, and XCB_QUERY_BEST_SIZE.
xcb_query_colors_cookie_t xcb_query_colors | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint32_t | pixels_len, | ||
const uint32_t * | pixels | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_query_colors_request_t::cmap, xcb_query_colors_request_t::pad0, and XCB_QUERY_COLORS.
xcb_query_colors_reply_t* xcb_query_colors_reply | ( | xcb_connection_t * | c, |
xcb_query_colors_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_query_colors_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_query_colors_cookie_t::sequence.
xcb_query_colors_cookie_t xcb_query_colors_unchecked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint32_t | pixels_len, | ||
const uint32_t * | pixels | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_query_colors_request_t::cmap, xcb_query_colors_request_t::pad0, and XCB_QUERY_COLORS.
xcb_query_extension_cookie_t xcb_query_extension | ( | xcb_connection_t * | c, |
uint16_t | name_len, | ||
const char * | name | ||
) |
check if extension is present
c | The connection |
name_len | The length of name in bytes. |
name | The name of the extension to query, for example "RANDR". This is case sensitive! |
Determines if the specified extension is present on this X11 server.
Every extension has a unique `major_opcode` to identify requests, the minor opcodes and request formats are extension-specific. If the extension provides events and errors, the `first_event` and `first_error` fields in the reply are set accordingly.
There should rarely be a need to use this request directly, XCB provides the `xcb_get_extension_data` function instead.
References xcb_query_extension_request_t::name_len, xcb_query_extension_request_t::pad0, xcb_query_extension_request_t::pad1, and XCB_QUERY_EXTENSION.
xcb_query_extension_reply_t* xcb_query_extension_reply | ( | xcb_connection_t * | c, |
xcb_query_extension_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_query_extension_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_query_extension_cookie_t::sequence.
Referenced by xcb_get_extension_data().
xcb_query_extension_cookie_t xcb_query_extension_unchecked | ( | xcb_connection_t * | c, |
uint16_t | name_len, | ||
const char * | name | ||
) |
check if extension is present
c | The connection |
name_len | The length of name in bytes. |
name | The name of the extension to query, for example "RANDR". This is case sensitive! |
Determines if the specified extension is present on this X11 server.
Every extension has a unique `major_opcode` to identify requests, the minor opcodes and request formats are extension-specific. If the extension provides events and errors, the `first_event` and `first_error` fields in the reply are set accordingly.
There should rarely be a need to use this request directly, XCB provides the `xcb_get_extension_data` function instead.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_query_extension_request_t::name_len, xcb_query_extension_request_t::pad0, xcb_query_extension_request_t::pad1, and XCB_QUERY_EXTENSION.
xcb_query_font_cookie_t xcb_query_font | ( | xcb_connection_t * | c, |
xcb_fontable_t | font | ||
) |
query font metrics
c | The connection |
font | The fontable (Font or Graphics Context) to query. |
Queries information associated with the font.
References xcb_query_font_request_t::font, xcb_query_font_request_t::pad0, and XCB_QUERY_FONT.
xcb_query_font_reply_t* xcb_query_font_reply | ( | xcb_connection_t * | c, |
xcb_query_font_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_query_font_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_query_font_cookie_t::sequence.
xcb_query_font_cookie_t xcb_query_font_unchecked | ( | xcb_connection_t * | c, |
xcb_fontable_t | font | ||
) |
query font metrics
c | The connection |
font | The fontable (Font or Graphics Context) to query. |
Queries information associated with the font.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_query_font_request_t::font, xcb_query_font_request_t::pad0, and XCB_QUERY_FONT.
c | The connection |
Delivers a request to the X server.
References xcb_query_keymap_request_t::pad0, and XCB_QUERY_KEYMAP.
xcb_query_keymap_reply_t* xcb_query_keymap_reply | ( | xcb_connection_t * | c, |
xcb_query_keymap_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_query_keymap_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_query_keymap_cookie_t::sequence.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_query_keymap_request_t::pad0, and XCB_QUERY_KEYMAP.
xcb_query_pointer_cookie_t xcb_query_pointer | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
get pointer coordinates
c | The connection |
window | A window to check if the pointer is on the same screen as window (see the `same_screen` field in the reply). |
Gets the root window the pointer is logically on and the pointer coordinates relative to the root window's origin.
References xcb_query_pointer_request_t::pad0, xcb_query_pointer_request_t::window, and XCB_QUERY_POINTER.
xcb_query_pointer_reply_t* xcb_query_pointer_reply | ( | xcb_connection_t * | c, |
xcb_query_pointer_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_query_pointer_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_query_pointer_cookie_t::sequence.
xcb_query_pointer_cookie_t xcb_query_pointer_unchecked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
get pointer coordinates
c | The connection |
window | A window to check if the pointer is on the same screen as window (see the `same_screen` field in the reply). |
Gets the root window the pointer is logically on and the pointer coordinates relative to the root window's origin.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_query_pointer_request_t::pad0, xcb_query_pointer_request_t::window, and XCB_QUERY_POINTER.
xcb_query_text_extents_cookie_t xcb_query_text_extents | ( | xcb_connection_t * | c, |
xcb_fontable_t | font, | ||
uint32_t | string_len, | ||
const xcb_char2b_t * | string | ||
) |
get text extents
c | The connection |
font | The font to calculate text extents in. You can also pass a graphics context. |
string_len | The number of characters in string. |
string | The text to get text extents for. |
Query text extents from the X11 server. This request returns the bounding box of the specified 16-bit character string in the specified font or the font contained in the specified graphics context.
`font_ascent` is set to the maximum of the ascent metrics of all characters in the string. `font_descent` is set to the maximum of the descent metrics. `overall_width` is set to the sum of the character-width metrics of all characters in the string. For each character in the string, let W be the sum of the character-width metrics of all characters preceding it in the string. Let L be the left-side-bearing metric of the character plus W. Let R be the right-side-bearing metric of the character plus W. The lbearing member is set to the minimum L of all characters in the string. The rbearing member is set to the maximum R.
For fonts defined with linear indexing rather than 2-byte matrix indexing, each `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the most significant byte. If the font has no defined default character, undefined characters in the string are taken to have all zero metrics.
Characters with all zero metrics are ignored. If the font has no defined default_char, the undefined characters in the string are also ignored.
References xcb_query_text_extents_request_t::font, xcb_query_text_extents_request_t::odd_length, and XCB_QUERY_TEXT_EXTENTS.
xcb_query_text_extents_reply_t* xcb_query_text_extents_reply | ( | xcb_connection_t * | c, |
xcb_query_text_extents_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_query_text_extents_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_query_text_extents_cookie_t::sequence.
xcb_query_text_extents_cookie_t xcb_query_text_extents_unchecked | ( | xcb_connection_t * | c, |
xcb_fontable_t | font, | ||
uint32_t | string_len, | ||
const xcb_char2b_t * | string | ||
) |
get text extents
c | The connection |
font | The font to calculate text extents in. You can also pass a graphics context. |
string_len | The number of characters in string. |
string | The text to get text extents for. |
Query text extents from the X11 server. This request returns the bounding box of the specified 16-bit character string in the specified font or the font contained in the specified graphics context.
`font_ascent` is set to the maximum of the ascent metrics of all characters in the string. `font_descent` is set to the maximum of the descent metrics. `overall_width` is set to the sum of the character-width metrics of all characters in the string. For each character in the string, let W be the sum of the character-width metrics of all characters preceding it in the string. Let L be the left-side-bearing metric of the character plus W. Let R be the right-side-bearing metric of the character plus W. The lbearing member is set to the minimum L of all characters in the string. The rbearing member is set to the maximum R.
For fonts defined with linear indexing rather than 2-byte matrix indexing, each `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the most significant byte. If the font has no defined default character, undefined characters in the string are taken to have all zero metrics.
Characters with all zero metrics are ignored. If the font has no defined default_char, the undefined characters in the string are also ignored.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_query_text_extents_request_t::font, xcb_query_text_extents_request_t::odd_length, and XCB_QUERY_TEXT_EXTENTS.
xcb_query_tree_cookie_t xcb_query_tree | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
query the window tree
c | The connection |
window | The window to query. |
Gets the root window ID, parent window ID and list of children windows for the specified window. The children are listed in bottom-to-top stacking order.
References xcb_query_tree_request_t::pad0, xcb_query_tree_request_t::window, and XCB_QUERY_TREE.
xcb_query_tree_reply_t* xcb_query_tree_reply | ( | xcb_connection_t * | c, |
xcb_query_tree_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_query_tree_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_query_tree_cookie_t::sequence.
xcb_query_tree_cookie_t xcb_query_tree_unchecked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
query the window tree
c | The connection |
window | The window to query. |
Gets the root window ID, parent window ID and list of children windows for the specified window. The children are listed in bottom-to-top stacking order.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_query_tree_request_t::pad0, xcb_query_tree_request_t::window, and XCB_QUERY_TREE.
xcb_void_cookie_t xcb_recolor_cursor | ( | xcb_connection_t * | c, |
xcb_cursor_t | cursor, | ||
uint16_t | fore_red, | ||
uint16_t | fore_green, | ||
uint16_t | fore_blue, | ||
uint16_t | back_red, | ||
uint16_t | back_green, | ||
uint16_t | back_blue | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_recolor_cursor_request_t::back_blue, xcb_recolor_cursor_request_t::back_green, xcb_recolor_cursor_request_t::back_red, xcb_recolor_cursor_request_t::cursor, xcb_recolor_cursor_request_t::fore_blue, xcb_recolor_cursor_request_t::fore_green, xcb_recolor_cursor_request_t::fore_red, xcb_recolor_cursor_request_t::pad0, and XCB_RECOLOR_CURSOR.
xcb_void_cookie_t xcb_recolor_cursor_checked | ( | xcb_connection_t * | c, |
xcb_cursor_t | cursor, | ||
uint16_t | fore_red, | ||
uint16_t | fore_green, | ||
uint16_t | fore_blue, | ||
uint16_t | back_red, | ||
uint16_t | back_green, | ||
uint16_t | back_blue | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_recolor_cursor_request_t::back_blue, xcb_recolor_cursor_request_t::back_green, xcb_recolor_cursor_request_t::back_red, xcb_recolor_cursor_request_t::cursor, xcb_recolor_cursor_request_t::fore_blue, xcb_recolor_cursor_request_t::fore_green, xcb_recolor_cursor_request_t::fore_red, xcb_recolor_cursor_request_t::pad0, and XCB_RECOLOR_CURSOR.
Return the iterator pointing to the last element
i | An xcb_rectangle_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_rectangle_iterator_t::data, xcb_generic_iterator_t::index, xcb_rectangle_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_rectangle_iterator_t::rem.
void xcb_rectangle_next | ( | xcb_rectangle_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_rectangle_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_rectangle_t)
References xcb_rectangle_iterator_t::data, xcb_rectangle_iterator_t::index, and xcb_rectangle_iterator_t::rem.
xcb_void_cookie_t xcb_reparent_window | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
xcb_window_t | parent, | ||
int16_t | x, | ||
int16_t | y | ||
) |
Reparents a window.
c | The connection |
window | The window to reparent. |
parent | The new parent of the window. |
x | The X position of the window within its new parent. |
y | The Y position of the window within its new parent. |
Makes the specified window a child of the specified parent window. If the window is mapped, it will automatically be unmapped before reparenting and re-mapped after reparenting. The window is placed in the stacking order on top with respect to sibling windows.
After reparenting, a ReparentNotify event is generated.
References xcb_reparent_window_request_t::pad0, xcb_reparent_window_request_t::parent, xcb_reparent_window_request_t::window, xcb_reparent_window_request_t::x, XCB_REPARENT_WINDOW, and xcb_reparent_window_request_t::y.
xcb_void_cookie_t xcb_reparent_window_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
xcb_window_t | parent, | ||
int16_t | x, | ||
int16_t | y | ||
) |
Reparents a window.
c | The connection |
window | The window to reparent. |
parent | The new parent of the window. |
x | The X position of the window within its new parent. |
y | The Y position of the window within its new parent. |
Makes the specified window a child of the specified parent window. If the window is mapped, it will automatically be unmapped before reparenting and re-mapped after reparenting. The window is placed in the stacking order on top with respect to sibling windows.
After reparenting, a ReparentNotify event is generated.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_reparent_window_request_t::pad0, xcb_reparent_window_request_t::parent, xcb_reparent_window_request_t::window, xcb_reparent_window_request_t::x, XCB_REPARENT_WINDOW, and xcb_reparent_window_request_t::y.
Return the iterator pointing to the last element
i | An xcb_rgb_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_rgb_iterator_t::data, xcb_generic_iterator_t::index, xcb_rgb_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_rgb_iterator_t::rem.
void xcb_rgb_next | ( | xcb_rgb_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_rgb_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_rgb_t)
References xcb_rgb_iterator_t::data, xcb_rgb_iterator_t::index, and xcb_rgb_iterator_t::rem.
xcb_void_cookie_t xcb_rotate_properties | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
uint16_t | atoms_len, | ||
int16_t | delta, | ||
const xcb_atom_t * | atoms | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_rotate_properties_request_t::atoms_len, xcb_rotate_properties_request_t::delta, xcb_rotate_properties_request_t::pad0, xcb_rotate_properties_request_t::window, and XCB_ROTATE_PROPERTIES.
xcb_void_cookie_t xcb_rotate_properties_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window, | ||
uint16_t | atoms_len, | ||
int16_t | delta, | ||
const xcb_atom_t * | atoms | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_rotate_properties_request_t::atoms_len, xcb_rotate_properties_request_t::delta, xcb_rotate_properties_request_t::pad0, xcb_rotate_properties_request_t::window, and XCB_ROTATE_PROPERTIES.
Return the iterator pointing to the last element
i | An xcb_screen_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_screen_iterator_t::data, xcb_generic_iterator_t::index, xcb_screen_iterator_t::index, xcb_generic_iterator_t::rem, xcb_screen_iterator_t::rem, and xcb_screen_next().
void xcb_screen_next | ( | xcb_screen_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_screen_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_screen_t)
References xcb_generic_iterator_t::data, xcb_screen_iterator_t::data, xcb_screen_iterator_t::index, and xcb_screen_iterator_t::rem.
Referenced by xcb_screen_end().
Return the iterator pointing to the last element
i | An xcb_segment_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_segment_iterator_t::data, xcb_generic_iterator_t::index, xcb_segment_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_segment_iterator_t::rem.
void xcb_segment_next | ( | xcb_segment_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_segment_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_segment_t)
References xcb_segment_iterator_t::data, xcb_segment_iterator_t::index, and xcb_segment_iterator_t::rem.
xcb_void_cookie_t xcb_send_event | ( | xcb_connection_t * | c, |
uint8_t | propagate, | ||
xcb_window_t | destination, | ||
uint32_t | event_mask, | ||
const char * | event | ||
) |
send an event
c | The connection |
propagate | If propagate is true and no clients have selected any event on destination, the destination is replaced with the closest ancestor of destination for which some client has selected a type in event_mask and for which no intervening window has that type in its do-not-propagate-mask. If no such window exists or if the window is an ancestor of the focus window and `InputFocus` was originally specified as the destination, the event is not sent to any clients. Otherwise, the event is reported to every client selecting on the final destination any of the types specified in event_mask. |
destination | The window to send this event to. Every client which selects any event within event_mask on destination will get the event. The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window that contains the mouse pointer. The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which has the keyboard focus. |
event_mask | Event_mask for determining which clients should receive the specified event. See destination and propagate. |
event | The event to send to the specified destination. |
Identifies the destination window, determines which clients should receive the specified event and ignores any active grabs.
The event must be one of the core events or an event defined by an extension, so that the X server can correctly byte-swap the contents as necessary. The contents of event are otherwise unaltered and unchecked except for the `send_event` field which is forced to 'true'.
References xcb_send_event_request_t::destination, xcb_send_event_request_t::event, xcb_send_event_request_t::event_mask, xcb_send_event_request_t::propagate, and XCB_SEND_EVENT.
xcb_void_cookie_t xcb_send_event_checked | ( | xcb_connection_t * | c, |
uint8_t | propagate, | ||
xcb_window_t | destination, | ||
uint32_t | event_mask, | ||
const char * | event | ||
) |
send an event
c | The connection |
propagate | If propagate is true and no clients have selected any event on destination, the destination is replaced with the closest ancestor of destination for which some client has selected a type in event_mask and for which no intervening window has that type in its do-not-propagate-mask. If no such window exists or if the window is an ancestor of the focus window and `InputFocus` was originally specified as the destination, the event is not sent to any clients. Otherwise, the event is reported to every client selecting on the final destination any of the types specified in event_mask. |
destination | The window to send this event to. Every client which selects any event within event_mask on destination will get the event. The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window that contains the mouse pointer. The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which has the keyboard focus. |
event_mask | Event_mask for determining which clients should receive the specified event. See destination and propagate. |
event | The event to send to the specified destination. |
Identifies the destination window, determines which clients should receive the specified event and ignores any active grabs.
The event must be one of the core events or an event defined by an extension, so that the X server can correctly byte-swap the contents as necessary. The contents of event are otherwise unaltered and unchecked except for the `send_event` field which is forced to 'true'.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_send_event_request_t::destination, xcb_send_event_request_t::event, xcb_send_event_request_t::event_mask, xcb_send_event_request_t::propagate, and XCB_SEND_EVENT.
xcb_void_cookie_t xcb_set_access_control | ( | xcb_connection_t * | c, |
uint8_t | mode | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_set_access_control_request_t::mode, and XCB_SET_ACCESS_CONTROL.
xcb_void_cookie_t xcb_set_access_control_checked | ( | xcb_connection_t * | c, |
uint8_t | mode | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_set_access_control_request_t::mode, and XCB_SET_ACCESS_CONTROL.
xcb_void_cookie_t xcb_set_clip_rectangles | ( | xcb_connection_t * | c, |
uint8_t | ordering, | ||
xcb_gcontext_t | gc, | ||
int16_t | clip_x_origin, | ||
int16_t | clip_y_origin, | ||
uint32_t | rectangles_len, | ||
const xcb_rectangle_t * | rectangles | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_set_clip_rectangles_request_t::clip_x_origin, xcb_set_clip_rectangles_request_t::clip_y_origin, xcb_set_clip_rectangles_request_t::gc, xcb_set_clip_rectangles_request_t::ordering, and XCB_SET_CLIP_RECTANGLES.
xcb_void_cookie_t xcb_set_clip_rectangles_checked | ( | xcb_connection_t * | c, |
uint8_t | ordering, | ||
xcb_gcontext_t | gc, | ||
int16_t | clip_x_origin, | ||
int16_t | clip_y_origin, | ||
uint32_t | rectangles_len, | ||
const xcb_rectangle_t * | rectangles | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_set_clip_rectangles_request_t::clip_x_origin, xcb_set_clip_rectangles_request_t::clip_y_origin, xcb_set_clip_rectangles_request_t::gc, xcb_set_clip_rectangles_request_t::ordering, and XCB_SET_CLIP_RECTANGLES.
xcb_void_cookie_t xcb_set_close_down_mode | ( | xcb_connection_t * | c, |
uint8_t | mode | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_set_close_down_mode_request_t::mode, and XCB_SET_CLOSE_DOWN_MODE.
xcb_void_cookie_t xcb_set_close_down_mode_checked | ( | xcb_connection_t * | c, |
uint8_t | mode | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_set_close_down_mode_request_t::mode, and XCB_SET_CLOSE_DOWN_MODE.
xcb_void_cookie_t xcb_set_dashes | ( | xcb_connection_t * | c, |
xcb_gcontext_t | gc, | ||
uint16_t | dash_offset, | ||
uint16_t | dashes_len, | ||
const uint8_t * | dashes | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_set_dashes_request_t::dash_offset, xcb_set_dashes_request_t::dashes_len, xcb_set_dashes_request_t::gc, xcb_set_dashes_request_t::pad0, and XCB_SET_DASHES.
xcb_void_cookie_t xcb_set_dashes_checked | ( | xcb_connection_t * | c, |
xcb_gcontext_t | gc, | ||
uint16_t | dash_offset, | ||
uint16_t | dashes_len, | ||
const uint8_t * | dashes | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_set_dashes_request_t::dash_offset, xcb_set_dashes_request_t::dashes_len, xcb_set_dashes_request_t::gc, xcb_set_dashes_request_t::pad0, and XCB_SET_DASHES.
xcb_void_cookie_t xcb_set_font_path | ( | xcb_connection_t * | c, |
uint16_t | font_qty, | ||
const xcb_str_t * | font | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_set_font_path_request_t::font_qty, xcb_set_font_path_request_t::pad0, xcb_set_font_path_request_t::pad1, and XCB_SET_FONT_PATH.
xcb_void_cookie_t xcb_set_font_path_checked | ( | xcb_connection_t * | c, |
uint16_t | font_qty, | ||
const xcb_str_t * | font | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_set_font_path_request_t::font_qty, xcb_set_font_path_request_t::pad0, xcb_set_font_path_request_t::pad1, and XCB_SET_FONT_PATH.
xcb_void_cookie_t xcb_set_input_focus | ( | xcb_connection_t * | c, |
uint8_t | revert_to, | ||
xcb_window_t | focus, | ||
xcb_timestamp_t | time | ||
) |
Sets input focus.
c | The connection |
revert_to | A bitmask of xcb_input_focus_t values. |
revert_to | Specifies what happens when the focus window becomes unviewable (if focus is neither `XCB_NONE` nor `XCB_POINTER_ROOT`). |
focus | The window to focus. All keyboard events will be reported to this window. The window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO). If focus is `XCB_NONE` (TODO), all keyboard events are discarded until a new focus window is set. If focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the screen on which the pointer is on currently. |
time | Timestamp to avoid race conditions when running X over the network. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
Changes the input focus and the last-focus-change time. If the specified time is earlier than the current last-focus-change time, the request is ignored (to avoid race conditions when running X over the network).
A FocusIn and FocusOut event is generated when focus is changed.
References xcb_set_input_focus_request_t::focus, xcb_set_input_focus_request_t::revert_to, xcb_set_input_focus_request_t::time, and XCB_SET_INPUT_FOCUS.
xcb_void_cookie_t xcb_set_input_focus_checked | ( | xcb_connection_t * | c, |
uint8_t | revert_to, | ||
xcb_window_t | focus, | ||
xcb_timestamp_t | time | ||
) |
Sets input focus.
c | The connection |
revert_to | A bitmask of xcb_input_focus_t values. |
revert_to | Specifies what happens when the focus window becomes unviewable (if focus is neither `XCB_NONE` nor `XCB_POINTER_ROOT`). |
focus | The window to focus. All keyboard events will be reported to this window. The window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO). If focus is `XCB_NONE` (TODO), all keyboard events are discarded until a new focus window is set. If focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the screen on which the pointer is on currently. |
time | Timestamp to avoid race conditions when running X over the network. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
Changes the input focus and the last-focus-change time. If the specified time is earlier than the current last-focus-change time, the request is ignored (to avoid race conditions when running X over the network).
A FocusIn and FocusOut event is generated when focus is changed.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_set_input_focus_request_t::focus, xcb_set_input_focus_request_t::revert_to, xcb_set_input_focus_request_t::time, and XCB_SET_INPUT_FOCUS.
xcb_set_modifier_mapping_cookie_t xcb_set_modifier_mapping | ( | xcb_connection_t * | c, |
uint8_t | keycodes_per_modifier, | ||
const xcb_keycode_t * | keycodes | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_set_modifier_mapping_request_t::keycodes_per_modifier, and XCB_SET_MODIFIER_MAPPING.
xcb_set_modifier_mapping_reply_t* xcb_set_modifier_mapping_reply | ( | xcb_connection_t * | c, |
xcb_set_modifier_mapping_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_set_modifier_mapping_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_set_modifier_mapping_cookie_t::sequence.
xcb_set_modifier_mapping_cookie_t xcb_set_modifier_mapping_unchecked | ( | xcb_connection_t * | c, |
uint8_t | keycodes_per_modifier, | ||
const xcb_keycode_t * | keycodes | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_set_modifier_mapping_request_t::keycodes_per_modifier, and XCB_SET_MODIFIER_MAPPING.
xcb_set_pointer_mapping_cookie_t xcb_set_pointer_mapping | ( | xcb_connection_t * | c, |
uint8_t | map_len, | ||
const uint8_t * | map | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_set_pointer_mapping_request_t::map_len, and XCB_SET_POINTER_MAPPING.
xcb_set_pointer_mapping_reply_t* xcb_set_pointer_mapping_reply | ( | xcb_connection_t * | c, |
xcb_set_pointer_mapping_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_set_pointer_mapping_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_set_pointer_mapping_cookie_t::sequence.
xcb_set_pointer_mapping_cookie_t xcb_set_pointer_mapping_unchecked | ( | xcb_connection_t * | c, |
uint8_t | map_len, | ||
const uint8_t * | map | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_set_pointer_mapping_request_t::map_len, and XCB_SET_POINTER_MAPPING.
xcb_void_cookie_t xcb_set_screen_saver | ( | xcb_connection_t * | c, |
int16_t | timeout, | ||
int16_t | interval, | ||
uint8_t | prefer_blanking, | ||
uint8_t | allow_exposures | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_set_screen_saver_request_t::allow_exposures, xcb_set_screen_saver_request_t::interval, xcb_set_screen_saver_request_t::pad0, xcb_set_screen_saver_request_t::prefer_blanking, xcb_set_screen_saver_request_t::timeout, and XCB_SET_SCREEN_SAVER.
xcb_void_cookie_t xcb_set_screen_saver_checked | ( | xcb_connection_t * | c, |
int16_t | timeout, | ||
int16_t | interval, | ||
uint8_t | prefer_blanking, | ||
uint8_t | allow_exposures | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_set_screen_saver_request_t::allow_exposures, xcb_set_screen_saver_request_t::interval, xcb_set_screen_saver_request_t::pad0, xcb_set_screen_saver_request_t::prefer_blanking, xcb_set_screen_saver_request_t::timeout, and XCB_SET_SCREEN_SAVER.
xcb_void_cookie_t xcb_set_selection_owner | ( | xcb_connection_t * | c, |
xcb_window_t | owner, | ||
xcb_atom_t | selection, | ||
xcb_timestamp_t | time | ||
) |
Sets the owner of a selection.
c | The connection |
owner | The new owner of the selection. The special value `XCB_NONE` means that the selection will have no owner. |
selection | The selection. |
time | Timestamp to avoid race conditions when running X over the network. The selection will not be changed if time is earlier than the current last-change time of the selection or is later than the current X server time. Otherwise, the last-change time is set to the specified time. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
Makes `window` the owner of the selection selection and updates the last-change time of the specified selection.
TODO: briefly explain what a selection is.
References xcb_set_selection_owner_request_t::owner, xcb_set_selection_owner_request_t::pad0, xcb_set_selection_owner_request_t::selection, xcb_set_selection_owner_request_t::time, and XCB_SET_SELECTION_OWNER.
xcb_void_cookie_t xcb_set_selection_owner_checked | ( | xcb_connection_t * | c, |
xcb_window_t | owner, | ||
xcb_atom_t | selection, | ||
xcb_timestamp_t | time | ||
) |
Sets the owner of a selection.
c | The connection |
owner | The new owner of the selection. The special value `XCB_NONE` means that the selection will have no owner. |
selection | The selection. |
time | Timestamp to avoid race conditions when running X over the network. The selection will not be changed if time is earlier than the current last-change time of the selection or is later than the current X server time. Otherwise, the last-change time is set to the specified time. The special value `XCB_CURRENT_TIME` will be replaced with the current server time. |
Makes `window` the owner of the selection selection and updates the last-change time of the specified selection.
TODO: briefly explain what a selection is.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_set_selection_owner_request_t::owner, xcb_set_selection_owner_request_t::pad0, xcb_set_selection_owner_request_t::selection, xcb_set_selection_owner_request_t::time, and XCB_SET_SELECTION_OWNER.
Return the iterator pointing to the last element
i | An xcb_setup_authenticate_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_setup_authenticate_iterator_t::data, xcb_generic_iterator_t::index, xcb_setup_authenticate_iterator_t::index, xcb_generic_iterator_t::rem, xcb_setup_authenticate_iterator_t::rem, and xcb_setup_authenticate_next().
Get the next element of the iterator
i | Pointer to a xcb_setup_authenticate_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_setup_authenticate_t)
References xcb_generic_iterator_t::data, xcb_setup_authenticate_iterator_t::data, xcb_setup_authenticate_iterator_t::index, and xcb_setup_authenticate_iterator_t::rem.
Referenced by xcb_setup_authenticate_end().
Return the iterator pointing to the last element
i | An xcb_setup_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_setup_iterator_t::data, xcb_generic_iterator_t::index, xcb_setup_iterator_t::index, xcb_generic_iterator_t::rem, xcb_setup_iterator_t::rem, and xcb_setup_next().
Return the iterator pointing to the last element
i | An xcb_setup_failed_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_setup_failed_iterator_t::data, xcb_generic_iterator_t::index, xcb_setup_failed_iterator_t::index, xcb_generic_iterator_t::rem, xcb_setup_failed_iterator_t::rem, and xcb_setup_failed_next().
void xcb_setup_failed_next | ( | xcb_setup_failed_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_setup_failed_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_setup_failed_t)
References xcb_generic_iterator_t::data, xcb_setup_failed_iterator_t::data, xcb_setup_failed_iterator_t::index, and xcb_setup_failed_iterator_t::rem.
Referenced by xcb_setup_failed_end().
void xcb_setup_next | ( | xcb_setup_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_setup_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_setup_t)
References xcb_generic_iterator_t::data, xcb_setup_iterator_t::data, xcb_setup_iterator_t::index, and xcb_setup_iterator_t::rem.
Referenced by xcb_setup_end().
Return the iterator pointing to the last element
i | An xcb_setup_request_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_setup_request_iterator_t::data, xcb_generic_iterator_t::index, xcb_setup_request_iterator_t::index, xcb_generic_iterator_t::rem, xcb_setup_request_iterator_t::rem, and xcb_setup_request_next().
void xcb_setup_request_next | ( | xcb_setup_request_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_setup_request_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_setup_request_t)
References xcb_generic_iterator_t::data, xcb_setup_request_iterator_t::data, xcb_setup_request_iterator_t::index, and xcb_setup_request_iterator_t::rem.
Referenced by xcb_setup_request_end().
xcb_void_cookie_t xcb_store_colors | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint32_t | items_len, | ||
const xcb_coloritem_t * | items | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_store_colors_request_t::cmap, xcb_store_colors_request_t::pad0, and XCB_STORE_COLORS.
xcb_void_cookie_t xcb_store_colors_checked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap, | ||
uint32_t | items_len, | ||
const xcb_coloritem_t * | items | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_store_colors_request_t::cmap, xcb_store_colors_request_t::pad0, and XCB_STORE_COLORS.
xcb_void_cookie_t xcb_store_named_color | ( | xcb_connection_t * | c, |
uint8_t | flags, | ||
xcb_colormap_t | cmap, | ||
uint32_t | pixel, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_store_named_color_request_t::cmap, xcb_store_named_color_request_t::flags, xcb_store_named_color_request_t::name_len, xcb_store_named_color_request_t::pad0, xcb_store_named_color_request_t::pixel, and XCB_STORE_NAMED_COLOR.
xcb_void_cookie_t xcb_store_named_color_checked | ( | xcb_connection_t * | c, |
uint8_t | flags, | ||
xcb_colormap_t | cmap, | ||
uint32_t | pixel, | ||
uint16_t | name_len, | ||
const char * | name | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_store_named_color_request_t::cmap, xcb_store_named_color_request_t::flags, xcb_store_named_color_request_t::name_len, xcb_store_named_color_request_t::pad0, xcb_store_named_color_request_t::pixel, and XCB_STORE_NAMED_COLOR.
Return the iterator pointing to the last element
i | An xcb_str_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_str_iterator_t::data, xcb_generic_iterator_t::index, xcb_str_iterator_t::index, xcb_generic_iterator_t::rem, xcb_str_iterator_t::rem, and xcb_str_next().
void xcb_str_next | ( | xcb_str_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_str_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_str_t)
References xcb_generic_iterator_t::data, xcb_str_iterator_t::data, xcb_str_iterator_t::index, and xcb_str_iterator_t::rem.
Referenced by xcb_str_end().
Return the iterator pointing to the last element
i | An xcb_timecoord_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_timecoord_iterator_t::data, xcb_generic_iterator_t::index, xcb_timecoord_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_timecoord_iterator_t::rem.
void xcb_timecoord_next | ( | xcb_timecoord_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_timecoord_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_timecoord_t)
References xcb_timecoord_iterator_t::data, xcb_timecoord_iterator_t::index, and xcb_timecoord_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_timestamp_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_timestamp_iterator_t::data, xcb_generic_iterator_t::index, xcb_timestamp_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_timestamp_iterator_t::rem.
void xcb_timestamp_next | ( | xcb_timestamp_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_timestamp_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_timestamp_t)
References xcb_timestamp_iterator_t::data, xcb_timestamp_iterator_t::index, and xcb_timestamp_iterator_t::rem.
xcb_translate_coordinates_cookie_t xcb_translate_coordinates | ( | xcb_connection_t * | c, |
xcb_window_t | src_window, | ||
xcb_window_t | dst_window, | ||
int16_t | src_x, | ||
int16_t | src_y | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_translate_coordinates_request_t::dst_window, xcb_translate_coordinates_request_t::pad0, xcb_translate_coordinates_request_t::src_window, xcb_translate_coordinates_request_t::src_x, xcb_translate_coordinates_request_t::src_y, and XCB_TRANSLATE_COORDINATES.
xcb_translate_coordinates_reply_t* xcb_translate_coordinates_reply | ( | xcb_connection_t * | c, |
xcb_translate_coordinates_cookie_t | cookie, | ||
xcb_generic_error_t ** | e | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_translate_coordinates_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_translate_coordinates_cookie_t::sequence.
xcb_translate_coordinates_cookie_t xcb_translate_coordinates_unchecked | ( | xcb_connection_t * | c, |
xcb_window_t | src_window, | ||
xcb_window_t | dst_window, | ||
int16_t | src_x, | ||
int16_t | src_y | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_translate_coordinates_request_t::dst_window, xcb_translate_coordinates_request_t::pad0, xcb_translate_coordinates_request_t::src_window, xcb_translate_coordinates_request_t::src_x, xcb_translate_coordinates_request_t::src_y, and XCB_TRANSLATE_COORDINATES.
xcb_void_cookie_t xcb_ungrab_button | ( | xcb_connection_t * | c, |
uint8_t | button, | ||
xcb_window_t | grab_window, | ||
uint16_t | modifiers | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_ungrab_button_request_t::button, xcb_ungrab_button_request_t::grab_window, xcb_ungrab_button_request_t::modifiers, xcb_ungrab_button_request_t::pad0, and XCB_UNGRAB_BUTTON.
xcb_void_cookie_t xcb_ungrab_button_checked | ( | xcb_connection_t * | c, |
uint8_t | button, | ||
xcb_window_t | grab_window, | ||
uint16_t | modifiers | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_ungrab_button_request_t::button, xcb_ungrab_button_request_t::grab_window, xcb_ungrab_button_request_t::modifiers, xcb_ungrab_button_request_t::pad0, and XCB_UNGRAB_BUTTON.
xcb_void_cookie_t xcb_ungrab_key | ( | xcb_connection_t * | c, |
xcb_keycode_t | key, | ||
xcb_window_t | grab_window, | ||
uint16_t | modifiers | ||
) |
release a key combination
c | The connection |
key | The keycode of the specified key combination. Using the special value `XCB_GRAB_ANY` means releasing all possible key codes. |
grab_window | The window on which the grabbed key combination will be released. |
modifiers | The modifiers of the specified key combination. Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination with every possible modifier combination. |
Releases the key combination on grab_window if you grabbed it using `xcb_grab_key` before.
References xcb_ungrab_key_request_t::grab_window, xcb_ungrab_key_request_t::key, xcb_ungrab_key_request_t::modifiers, xcb_ungrab_key_request_t::pad0, and XCB_UNGRAB_KEY.
xcb_void_cookie_t xcb_ungrab_key_checked | ( | xcb_connection_t * | c, |
xcb_keycode_t | key, | ||
xcb_window_t | grab_window, | ||
uint16_t | modifiers | ||
) |
release a key combination
c | The connection |
key | The keycode of the specified key combination. Using the special value `XCB_GRAB_ANY` means releasing all possible key codes. |
grab_window | The window on which the grabbed key combination will be released. |
modifiers | The modifiers of the specified key combination. Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination with every possible modifier combination. |
Releases the key combination on grab_window if you grabbed it using `xcb_grab_key` before.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_ungrab_key_request_t::grab_window, xcb_ungrab_key_request_t::key, xcb_ungrab_key_request_t::modifiers, xcb_ungrab_key_request_t::pad0, and XCB_UNGRAB_KEY.
xcb_void_cookie_t xcb_ungrab_keyboard | ( | xcb_connection_t * | c, |
xcb_timestamp_t | time | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_ungrab_keyboard_request_t::pad0, xcb_ungrab_keyboard_request_t::time, and XCB_UNGRAB_KEYBOARD.
xcb_void_cookie_t xcb_ungrab_keyboard_checked | ( | xcb_connection_t * | c, |
xcb_timestamp_t | time | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_ungrab_keyboard_request_t::pad0, xcb_ungrab_keyboard_request_t::time, and XCB_UNGRAB_KEYBOARD.
xcb_void_cookie_t xcb_ungrab_pointer | ( | xcb_connection_t * | c, |
xcb_timestamp_t | time | ||
) |
release the pointer
c | The connection |
time | Timestamp to avoid race conditions when running X over the network. The pointer will not be released if time is earlier than the last-pointer-grab time or later than the current X server time. |
Releases the pointer and any queued events if you actively grabbed the pointer before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button press.
EnterNotify and LeaveNotify events are generated.
References xcb_ungrab_pointer_request_t::pad0, xcb_ungrab_pointer_request_t::time, and XCB_UNGRAB_POINTER.
xcb_void_cookie_t xcb_ungrab_pointer_checked | ( | xcb_connection_t * | c, |
xcb_timestamp_t | time | ||
) |
release the pointer
c | The connection |
time | Timestamp to avoid race conditions when running X over the network. The pointer will not be released if time is earlier than the last-pointer-grab time or later than the current X server time. |
Releases the pointer and any queued events if you actively grabbed the pointer before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button press.
EnterNotify and LeaveNotify events are generated.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_ungrab_pointer_request_t::pad0, xcb_ungrab_pointer_request_t::time, and XCB_UNGRAB_POINTER.
c | The connection |
Delivers a request to the X server.
References xcb_ungrab_server_request_t::pad0, and XCB_UNGRAB_SERVER.
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_ungrab_server_request_t::pad0, and XCB_UNGRAB_SERVER.
xcb_void_cookie_t xcb_uninstall_colormap | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_uninstall_colormap_request_t::cmap, xcb_uninstall_colormap_request_t::pad0, and XCB_UNINSTALL_COLORMAP.
xcb_void_cookie_t xcb_uninstall_colormap_checked | ( | xcb_connection_t * | c, |
xcb_colormap_t | cmap | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_uninstall_colormap_request_t::cmap, xcb_uninstall_colormap_request_t::pad0, and XCB_UNINSTALL_COLORMAP.
xcb_void_cookie_t xcb_unmap_subwindows | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_unmap_subwindows_request_t::pad0, xcb_unmap_subwindows_request_t::window, and XCB_UNMAP_SUBWINDOWS.
xcb_void_cookie_t xcb_unmap_subwindows_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_unmap_subwindows_request_t::pad0, xcb_unmap_subwindows_request_t::window, and XCB_UNMAP_SUBWINDOWS.
xcb_void_cookie_t xcb_unmap_window | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
Makes a window invisible.
c | The connection |
window | The window to make invisible. |
Unmaps the specified window. This means making the window invisible (and all its child windows).
Unmapping a window leads to the `UnmapNotify` event being generated. Also, `Expose` events are generated for formerly obscured windows.
References xcb_unmap_window_request_t::pad0, xcb_unmap_window_request_t::window, and XCB_UNMAP_WINDOW.
xcb_void_cookie_t xcb_unmap_window_checked | ( | xcb_connection_t * | c, |
xcb_window_t | window | ||
) |
Makes a window invisible.
c | The connection |
window | The window to make invisible. |
Unmaps the specified window. This means making the window invisible (and all its child windows).
Unmapping a window leads to the `UnmapNotify` event being generated. Also, `Expose` events are generated for formerly obscured windows.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_unmap_window_request_t::pad0, xcb_unmap_window_request_t::window, and XCB_UNMAP_WINDOW.
Return the iterator pointing to the last element
i | An xcb_visualid_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_visualid_iterator_t::data, xcb_generic_iterator_t::index, xcb_visualid_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_visualid_iterator_t::rem.
void xcb_visualid_next | ( | xcb_visualid_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_visualid_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_visualid_t)
References xcb_visualid_iterator_t::data, xcb_visualid_iterator_t::index, and xcb_visualid_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_visualtype_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_visualtype_iterator_t::data, xcb_generic_iterator_t::index, xcb_visualtype_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_visualtype_iterator_t::rem.
void xcb_visualtype_next | ( | xcb_visualtype_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_visualtype_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_visualtype_t)
References xcb_visualtype_iterator_t::data, xcb_visualtype_iterator_t::index, and xcb_visualtype_iterator_t::rem.
xcb_void_cookie_t xcb_warp_pointer | ( | xcb_connection_t * | c, |
xcb_window_t | src_window, | ||
xcb_window_t | dst_window, | ||
int16_t | src_x, | ||
int16_t | src_y, | ||
uint16_t | src_width, | ||
uint16_t | src_height, | ||
int16_t | dst_x, | ||
int16_t | dst_y | ||
) |
move mouse pointer
c | The connection |
src_window | If src_window is not `XCB_NONE` (TODO), the move will only take place if the pointer is inside src_window and within the rectangle specified by (src_x, src_y, src_width, src_height). The rectangle coordinates are relative to src_window. |
dst_window | If dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the offsets (dst_x, dst_y) relative to dst_window. If dst_window is `XCB_NONE` (TODO), the pointer will be moved by the offsets (dst_x, dst_y) relative to the current position of the pointer. |
Moves the mouse pointer to the specified position.
If src_window is not `XCB_NONE` (TODO), the move will only take place if the pointer is inside src_window and within the rectangle specified by (src_x, src_y, src_width, src_height). The rectangle coordinates are relative to src_window.
If dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the offsets (dst_x, dst_y) relative to dst_window. If dst_window is `XCB_NONE` (TODO), the pointer will be moved by the offsets (dst_x, dst_y) relative to the current position of the pointer.
References xcb_warp_pointer_request_t::dst_window, xcb_warp_pointer_request_t::dst_x, xcb_warp_pointer_request_t::dst_y, xcb_warp_pointer_request_t::pad0, xcb_warp_pointer_request_t::src_height, xcb_warp_pointer_request_t::src_width, xcb_warp_pointer_request_t::src_window, xcb_warp_pointer_request_t::src_x, xcb_warp_pointer_request_t::src_y, and XCB_WARP_POINTER.
xcb_void_cookie_t xcb_warp_pointer_checked | ( | xcb_connection_t * | c, |
xcb_window_t | src_window, | ||
xcb_window_t | dst_window, | ||
int16_t | src_x, | ||
int16_t | src_y, | ||
uint16_t | src_width, | ||
uint16_t | src_height, | ||
int16_t | dst_x, | ||
int16_t | dst_y | ||
) |
move mouse pointer
c | The connection |
src_window | If src_window is not `XCB_NONE` (TODO), the move will only take place if the pointer is inside src_window and within the rectangle specified by (src_x, src_y, src_width, src_height). The rectangle coordinates are relative to src_window. |
dst_window | If dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the offsets (dst_x, dst_y) relative to dst_window. If dst_window is `XCB_NONE` (TODO), the pointer will be moved by the offsets (dst_x, dst_y) relative to the current position of the pointer. |
Moves the mouse pointer to the specified position.
If src_window is not `XCB_NONE` (TODO), the move will only take place if the pointer is inside src_window and within the rectangle specified by (src_x, src_y, src_width, src_height). The rectangle coordinates are relative to src_window.
If dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the offsets (dst_x, dst_y) relative to dst_window. If dst_window is `XCB_NONE` (TODO), the pointer will be moved by the offsets (dst_x, dst_y) relative to the current position of the pointer.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_warp_pointer_request_t::dst_window, xcb_warp_pointer_request_t::dst_x, xcb_warp_pointer_request_t::dst_y, xcb_warp_pointer_request_t::pad0, xcb_warp_pointer_request_t::src_height, xcb_warp_pointer_request_t::src_width, xcb_warp_pointer_request_t::src_window, xcb_warp_pointer_request_t::src_x, xcb_warp_pointer_request_t::src_y, and XCB_WARP_POINTER.
Return the iterator pointing to the last element
i | An xcb_window_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_window_iterator_t::data, xcb_generic_iterator_t::data, xcb_window_iterator_t::index, xcb_generic_iterator_t::index, xcb_window_iterator_t::rem, and xcb_generic_iterator_t::rem.
void xcb_window_next | ( | xcb_window_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_window_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_window_t)
References xcb_window_iterator_t::data, xcb_window_iterator_t::index, and xcb_window_iterator_t::rem.