Class: XCB::Connection
- Inherits:
-
Object
- Object
- XCB::Connection
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
- #alloc_color(r_cmap, r_red, r_green, r_blue) ⇒ Object
- #alloc_color_cells(r_contiguous, r_cmap, r_colors, r_planes) ⇒ Object
- #alloc_color_planes(r_contiguous, r_cmap, r_colors, r_reds, r_greens, r_blues) ⇒ Object
- #alloc_named_color(r_cmap, r_name) ⇒ Object
- #allow_events(r_mode, r_time) ⇒ Object
- #bell(r_percent) ⇒ Object
- #change_active_pointer_grab(r_cursor, r_time, r_event_mask) ⇒ Object
- #change_gc(r_gc, r_value_mask, r_value_list) ⇒ Object
- #change_hosts(r_mode, r_family, r_address) ⇒ Object
- #change_keyboard_control(r_value_mask, r_value_list) ⇒ Object
- #change_keyboard_mapping(r_keycode_count, r_first_keycode, r_keysyms_per_keycode, r_keysyms) ⇒ Object
- #change_pointer_control(r_acceleration_numerator, r_acceleration_denominator, r_threshold, r_do_acceleration, r_do_threshold) ⇒ Object
- #change_property(r_mode, r_window, r_property, r_type, r_format, r_data) ⇒ Object
- #change_save_set(r_mode, r_window) ⇒ Object
- #change_window_attributes(r_window, r_value_mask, r_value_list) ⇒ Object
- #circulate_window(r_direction, r_window) ⇒ Object
- #clear_area(r_exposures, r_window, r_x, r_y, r_width, r_height) ⇒ Object
- #close_font(r_font) ⇒ Object
- #configure_window(r_window, r_value_mask, r_value_list) ⇒ Object
- #convert_selection(r_requestor, r_selection, r_target, r_property, r_time) ⇒ Object
- #copy_area(r_src_drawable, r_dst_drawable, r_gc, r_src_x, r_src_y, r_dst_x, r_dst_y, r_width, r_height) ⇒ Object
- #copy_colormap_and_free(r_mid, r_src_cmap) ⇒ Object
- #copy_gc(r_src_gc, r_dst_gc, r_value_mask) ⇒ Object
- #copy_plane(r_src_drawable, r_dst_drawable, r_gc, r_src_x, r_src_y, r_dst_x, r_dst_y, r_width, r_height, r_bit_plane) ⇒ Object
- #create_colormap(r_alloc, r_mid, r_window, r_visual) ⇒ Object
- #create_cursor(r_cid, r_source, r_mask, r_fore_red, r_fore_green, r_fore_blue, r_back_red, r_back_green, r_back_blue, r_x, r_y) ⇒ Object
- #create_gc(r_cid, r_drawable, r_value_mask, r_value_list) ⇒ Object
- #create_glyph_cursor(r_cid, r_source_font, r_mask_font, r_source_char, r_mask_char, r_fore_red, r_fore_green, r_fore_blue, r_back_red, r_back_green, r_back_blue) ⇒ Object
- #create_pixmap(r_depth, r_pid, r_drawable, r_width, r_height) ⇒ Object
- #create_window(r_depth, r_wid, r_parent, r_x, r_y, r_width, r_height, r_border_width, r_class, r_visual, r_value_mask, r_value_list) ⇒ Object
- #delete_property(r_window, r_property) ⇒ Object
- #destroy_subwindows(r_window) ⇒ Object
- #destroy_window(r_window) ⇒ Object
- #each_event ⇒ Object
- #fill_poly(r_drawable, r_gc, r_shape, r_coordinate_mode, r_points) ⇒ Object
- #flush ⇒ Object
- #force_screen_saver(r_mode) ⇒ Object
- #free_colormap(r_cmap) ⇒ Object
- #free_colors(r_cmap, r_plane_mask, r_pixels) ⇒ Object
- #free_cursor(r_cursor) ⇒ Object
- #free_gc(r_gc) ⇒ Object
- #free_pixmap(r_pixmap) ⇒ Object
- #get_any_property(r_del, r_window, r_name) ⇒ Object
- #get_atom(r_atom_name) ⇒ Object
- #get_atom_name(r_atom) ⇒ Object
- #get_file_descriptor ⇒ Object
- #get_font_path ⇒ Object
- #get_geometry(r_drawable) ⇒ Object
- #get_image(r_format, r_drawable, r_x, r_y, r_width, r_height, r_plane_mask) ⇒ Object
- #get_image_data(r_drawable, r_x, r_y, r_w, r_h) ⇒ Object
- #get_input_focus ⇒ Object
- #get_keyboard_control ⇒ Object
- #get_keyboard_mapping(r_first_keycode, r_count) ⇒ Object
- #get_modifier_mapping ⇒ Object
- #get_motion_events(r_window, r_start, r_stop) ⇒ Object
- #get_pointer_control ⇒ Object
- #get_pointer_mapping ⇒ Object
- #get_property(r_delete, r_window, r_property, r_type, r_long_offset, r_long_length) ⇒ Object
- #get_screen_saver ⇒ Object
- #get_selection_owner(r_selection) ⇒ Object
- #get_setup ⇒ Object
- #get_window_attributes(r_window) ⇒ Object
- #get_wm_protocols(r_window, r_wm_protocols_atom) ⇒ Object
- #grab_button(r_owner_events, r_grab_window, r_event_mask, r_pointer_mode, r_keyboard_mode, r_confine_to, r_cursor, r_button, r_modifiers) ⇒ Object
- #grab_key(r_owner_events, r_grab_window, r_modifiers, r_key, r_pointer_mode, r_keyboard_mode) ⇒ Object
- #grab_keyboard(r_owner_events, r_grab_window, r_time, r_pointer_mode, r_keyboard_mode) ⇒ Object
- #grab_pointer(r_owner_events, r_grab_window, r_event_mask, r_pointer_mode, r_keyboard_mode, r_confine_to, r_cursor, r_time) ⇒ Object
- #grab_server ⇒ Object
- #image_text_16(r_drawable, r_gc, r_x, r_y, r_string) ⇒ Object
- #image_text_8(r_drawable, r_gc, r_x, r_y, r_string) ⇒ Object
- #initialize(r_display_name) ⇒ Object constructor
- #install_colormap(r_cmap) ⇒ Object
- #intern_atom(r_only_if_exists, r_name) ⇒ Object
- #kill_client(r_resource) ⇒ Object
- #list_extensions ⇒ Object
- #list_fonts(r_max_names, r_pattern) ⇒ Object
- #list_fonts_with_info(r_max_names, r_pattern) ⇒ Object
- #list_hosts ⇒ Object
- #list_installed_colormaps(r_window) ⇒ Object
- #list_properties(r_window) ⇒ Object
- #lookup_color(r_cmap, r_name) ⇒ Object
- #map_subwindows(r_window) ⇒ Object
- #map_window(r_window) ⇒ Object
- #no_operation ⇒ Object
- #open_font(r_fid, r_name) ⇒ Object
- #poly_arc(r_drawable, r_gc, r_arcs) ⇒ Object
- #poly_fill_arc(r_drawable, r_gc, r_arcs) ⇒ Object
- #poly_fill_rectangle(r_drawable, r_gc, r_rectangles) ⇒ Object
- #poly_line(r_coordinate_mode, r_drawable, r_gc, r_points) ⇒ Object
- #poly_point(r_coordinate_mode, r_drawable, r_gc, r_points) ⇒ Object
- #poly_rectangle(r_drawable, r_gc, r_rectangles) ⇒ Object
- #poly_segment(r_drawable, r_gc, r_segments) ⇒ Object
- #poly_text_16(r_drawable, r_gc, r_x, r_y, r_items) ⇒ Object
- #poly_text_8(r_drawable, r_gc, r_x, r_y, r_items) ⇒ Object
- #put_image(r_format, r_drawable, r_gc, r_width, r_height, r_dst_x, r_dst_y, r_left_pad, r_depth, r_data) ⇒ Object
- #query_best_size(r_class, r_drawable, r_width, r_height) ⇒ Object
- #query_colors(r_cmap, r_pixels) ⇒ Object
- #query_extension(r_name) ⇒ Object
- #query_font(r_font) ⇒ Object
- #query_keymap ⇒ Object
- #query_pointer(r_window) ⇒ Object
- #query_text_extents(r_font, r_string) ⇒ Object
- #query_tree(r_window) ⇒ Object
- #recolor_cursor(r_cursor, r_fore_red, r_fore_green, r_fore_blue, r_back_red, r_back_green, r_back_blue) ⇒ Object
- #reparent_window(r_window, r_parent, r_x, r_y) ⇒ Object
- #rotate_properties(r_window, r_delta, r_atoms) ⇒ Object
- #send_event(r_propagate, r_destination, r_event_mask, r_event) ⇒ Object
- #send_event_object(r_propagate, r_destination, r_event_mask, r_event) ⇒ Object
- #set_access_control(r_mode) ⇒ Object
- #set_clip_rectangles(r_ordering, r_gc, r_clip_x_origin, r_clip_y_origin, r_rectangles) ⇒ Object
- #set_close_down_mode(r_mode) ⇒ Object
- #set_dashes(r_gc, r_dash_offset, r_dashes) ⇒ Object
- #set_font_path(r_font) ⇒ Object
- #set_image_data(r_drawable, r_x, r_y, r_w, r_h, r_data) ⇒ Object
- #set_input_focus(r_revert_to, r_focus, r_time) ⇒ Object
- #set_modifier_mapping(r_keycodes_per_modifier, r_keycodes) ⇒ Object
- #set_pointer_mapping(r_map) ⇒ Object
- #set_screen_saver(r_timeout, r_interval, r_prefer_blanking, r_allow_exposures) ⇒ Object
- #set_selection_owner(r_owner, r_selection, r_time) ⇒ Object
- #store_colors(r_cmap, r_items) ⇒ Object
- #store_named_color(r_flags, r_cmap, r_pixel, r_name) ⇒ Object
- #translate_coordinates(r_src_window, r_dst_window, r_src_x, r_src_y) ⇒ Object
- #ungrab_button(r_button, r_grab_window, r_modifiers) ⇒ Object
- #ungrab_key(r_key, r_grab_window, r_modifiers) ⇒ Object
- #ungrab_keyboard(r_time) ⇒ Object
- #ungrab_pointer(r_time) ⇒ Object
- #ungrab_server ⇒ Object
- #uninstall_colormap(r_cmap) ⇒ Object
- #unmap_subwindows(r_window) ⇒ Object
- #unmap_window(r_window) ⇒ Object
- #warp_pointer(r_src_window, r_dst_window, r_src_x, r_src_y, r_src_width, r_src_height, r_dst_x, r_dst_y) ⇒ Object
Constructor Details
#initialize(r_display_name) ⇒ Object
4475 4476 4477 4478 4479 |
# File 'ext/xproto.c', line 4475 static VALUE r_XCB_Connection_initialize(VALUE r_self, VALUE r_display_name) { return Qnil; } |
Class Method Details
.new(r_display_name) ⇒ Object
4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 |
# File 'ext/xproto.c', line 4462 static VALUE r_XCB_Connection_new(VALUE r_klass, VALUE r_display_name) { Check_Type(r_display_name, T_STRING); char *__display_name = StringValueCStr(r_display_name); xcb_connection_t *connection = xcb_connect(__display_name, NULL); if (xcb_connection_has_error(connection)) rb_raise(rb_eArgError, "xcb_connect failed"); VALUE r_self = Data_Wrap_Struct(r_klass, NULL, xcb_disconnect, connection); rb_funcall(r_self, rb_intern("initialize"), 1, r_display_name); return r_self; } |
Instance Method Details
#alloc_color(r_cmap, r_red, r_green, r_blue) ⇒ Object
5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 |
# File 'ext/xproto.c', line 5880 static VALUE r_XCB_Connection_alloc_color(VALUE r_self, VALUE r_cmap, VALUE r_red, VALUE r_green, VALUE r_blue) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); uint16_t __red = FIX2INT(r_red); uint16_t __green = FIX2INT(r_green); uint16_t __blue = FIX2INT(r_blue); = xcb_alloc_color(connection, __cmap, __red, __green, __blue); xcb_alloc_color_reply_t *reply = xcb_alloc_color_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_AllocColorReply, NULL, NULL, reply); } |
#alloc_color_cells(r_contiguous, r_cmap, r_colors, r_planes) ⇒ Object
5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 |
# File 'ext/xproto.c', line 5913 static VALUE r_XCB_Connection_alloc_color_cells(VALUE r_self, VALUE r_contiguous, VALUE r_cmap, VALUE r_colors, VALUE r_planes) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __contiguous = RTEST(r_contiguous); uint32_t __cmap = FIX2INT(r_cmap); uint16_t __colors = FIX2INT(r_colors); uint16_t __planes = FIX2INT(r_planes); = xcb_alloc_color_cells(connection, __contiguous, __cmap, __colors, __planes); xcb_alloc_color_cells_reply_t *reply = xcb_alloc_color_cells_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_AllocColorCellsReply, NULL, NULL, reply); } |
#alloc_color_planes(r_contiguous, r_cmap, r_colors, r_reds, r_greens, r_blues) ⇒ Object
5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 |
# File 'ext/xproto.c', line 5928 static VALUE r_XCB_Connection_alloc_color_planes(VALUE r_self, VALUE r_contiguous, VALUE r_cmap, VALUE r_colors, VALUE r_reds, VALUE r_greens, VALUE r_blues) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __contiguous = RTEST(r_contiguous); uint32_t __cmap = FIX2INT(r_cmap); uint16_t __colors = FIX2INT(r_colors); uint16_t __reds = FIX2INT(r_reds); uint16_t __greens = FIX2INT(r_greens); uint16_t __blues = FIX2INT(r_blues); = xcb_alloc_color_planes(connection, __contiguous, __cmap, __colors, __reds, __greens, __blues); xcb_alloc_color_planes_reply_t *reply = xcb_alloc_color_planes_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_AllocColorPlanesReply, NULL, NULL, reply); } |
#alloc_named_color(r_cmap, r_name) ⇒ Object
5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 |
# File 'ext/xproto.c', line 5895 static VALUE r_XCB_Connection_alloc_named_color(VALUE r_self, VALUE r_cmap, VALUE r_name) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); Check_Type(r_name, T_ARRAY); int __name_len = RARRAY_LEN(r_name); char __name[__name_len]; int i; for (i = 0; i < __name_len; i += 1) __name[i] = FIX2INT(rb_ary_entry(r_name, i)); = xcb_alloc_named_color(connection, __cmap, __name_len, __name); xcb_alloc_named_color_reply_t *reply = xcb_alloc_named_color_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_AllocNamedColorReply, NULL, NULL, reply); } |
#allow_events(r_mode, r_time) ⇒ Object
5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 |
# File 'ext/xproto.c', line 5113 static VALUE r_XCB_Connection_allow_events(VALUE r_self, VALUE r_mode, VALUE r_time) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __mode = FIX2INT(r_mode); uint32_t __time = FIX2INT(r_time); xcb_allow_events(connection, __mode, __time); return Qnil; } |
#bell(r_percent) ⇒ Object
6196 6197 6198 6199 6200 6201 6202 6203 6204 |
# File 'ext/xproto.c', line 6196 static VALUE r_XCB_Connection_bell(VALUE r_self, VALUE r_percent) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __percent = FIX2INT(r_percent); xcb_bell(connection, __percent); return Qnil; } |
#change_active_pointer_grab(r_cursor, r_time, r_event_mask) ⇒ Object
5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 |
# File 'ext/xproto.c', line 5052 static VALUE r_XCB_Connection_change_active_pointer_grab(VALUE r_self, VALUE r_cursor, VALUE r_time, VALUE r_event_mask) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cursor = FIX2INT(r_cursor); uint32_t __time = FIX2INT(r_time); uint16_t __event_mask = FIX2INT(r_event_mask); xcb_change_active_pointer_grab(connection, __cursor, __time, __event_mask); return Qnil; } |
#change_gc(r_gc, r_value_mask, r_value_list) ⇒ Object
5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 |
# File 'ext/xproto.c', line 5395 static VALUE r_XCB_Connection_change_gc(VALUE r_self, VALUE r_gc, VALUE r_value_mask, VALUE r_value_list) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __gc = FIX2INT(r_gc); uint32_t __value_mask = FIX2INT(r_value_mask); Check_Type(r_value_list, T_ARRAY); int __value_list_len = RARRAY_LEN(r_value_list); uint32_t __value_list[__value_list_len]; int i; for (i = 0; i < __value_list_len; i += 1) __value_list[i] = FIX2INT(rb_ary_entry(r_value_list, i)); xcb_change_gc(connection, __gc, __value_mask, __value_list); return Qnil; } |
#change_hosts(r_mode, r_family, r_address) ⇒ Object
6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 |
# File 'ext/xproto.c', line 6252 static VALUE r_XCB_Connection_change_hosts(VALUE r_self, VALUE r_mode, VALUE r_family, VALUE r_address) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __mode = FIX2INT(r_mode); uint8_t __family = FIX2INT(r_family); Check_Type(r_address, T_ARRAY); int __address_len = RARRAY_LEN(r_address); uint8_t __address[__address_len]; int i; for (i = 0; i < __address_len; i += 1) __address[i] = FIX2INT(rb_ary_entry(r_address, i)); xcb_change_hosts(connection, __mode, __family, __address_len, __address); return Qnil; } |
#change_keyboard_control(r_value_mask, r_value_list) ⇒ Object
6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 |
# File 'ext/xproto.c', line 6170 static VALUE r_XCB_Connection_change_keyboard_control(VALUE r_self, VALUE r_value_mask, VALUE r_value_list) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __value_mask = FIX2INT(r_value_mask); Check_Type(r_value_list, T_ARRAY); int __value_list_len = RARRAY_LEN(r_value_list); uint32_t __value_list[__value_list_len]; int i; for (i = 0; i < __value_list_len; i += 1) __value_list[i] = FIX2INT(rb_ary_entry(r_value_list, i)); xcb_change_keyboard_control(connection, __value_mask, __value_list); return Qnil; } |
#change_keyboard_mapping(r_keycode_count, r_first_keycode, r_keysyms_per_keycode, r_keysyms) ⇒ Object
6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 |
# File 'ext/xproto.c', line 6140 static VALUE r_XCB_Connection_change_keyboard_mapping(VALUE r_self, VALUE r_keycode_count, VALUE r_first_keycode, VALUE r_keysyms_per_keycode, VALUE r_keysyms) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __keycode_count = FIX2INT(r_keycode_count); uint8_t __first_keycode = FIX2INT(r_first_keycode); uint8_t __keysyms_per_keycode = FIX2INT(r_keysyms_per_keycode); Check_Type(r_keysyms, T_ARRAY); int __keysyms_len = RARRAY_LEN(r_keysyms); uint32_t __keysyms[__keysyms_len]; int i; for (i = 0; i < __keysyms_len; i += 1) __keysyms[i] = FIX2INT(rb_ary_entry(r_keysyms, i)); xcb_change_keyboard_mapping(connection, __keycode_count, __first_keycode, __keysyms_per_keycode, __keysyms); return Qnil; } |
#change_pointer_control(r_acceleration_numerator, r_acceleration_denominator, r_threshold, r_do_acceleration, r_do_threshold) ⇒ Object
6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 |
# File 'ext/xproto.c', line 6205 static VALUE r_XCB_Connection_change_pointer_control(VALUE r_self, VALUE r_acceleration_numerator, VALUE r_acceleration_denominator, VALUE r_threshold, VALUE r_do_acceleration, VALUE r_do_threshold) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint16_t __acceleration_numerator = FIX2INT(r_acceleration_numerator); uint16_t __acceleration_denominator = FIX2INT(r_acceleration_denominator); uint16_t __threshold = FIX2INT(r_threshold); uint8_t __do_acceleration = RTEST(r_do_acceleration); uint8_t __do_threshold = RTEST(r_do_threshold); xcb_change_pointer_control(connection, __acceleration_numerator, __acceleration_denominator, __threshold, __do_acceleration, __do_threshold); return Qnil; } |
#change_property(r_mode, r_window, r_property, r_type, r_format, r_data) ⇒ Object
4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 |
# File 'ext/xproto.c', line 4859 static VALUE r_XCB_Connection_change_property(VALUE r_self, VALUE r_mode, VALUE r_window, VALUE r_property, VALUE r_type, VALUE r_format, VALUE r_data) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __mode = FIX2INT(r_mode); uint32_t __window = FIX2INT(r_window); uint32_t __property = FIX2INT(r_property); uint32_t __type = FIX2INT(r_type); uint8_t __format = FIX2INT(r_format); Check_Type(r_data, T_ARRAY); int __data_len = RARRAY_LEN(r_data); uint32_t __data[__data_len]; uint8_t format = __format; switch (format) { case 8: { uint8_t *__data8 = (uint8_t*) __data; int i; for (i = 0; i < __data_len; i += 1) __data8[i] = FIX2INT(rb_ary_entry(r_data, i)); break; } case 16: { uint16_t *__data16 = (uint16_t*) __data; int i; for (i = 0; i < __data_len; i += 1) __data16[i] = FIX2INT(rb_ary_entry(r_data, i)); break; } case 32: { uint32_t *__data32 = (uint32_t*) __data; int i; for (i = 0; i < __data_len; i += 1) __data32[i] = FIX2INT(rb_ary_entry(r_data, i)); break; } default: rb_raise(rb_eArgError, "invalid format"); } xcb_change_property(connection, __mode, __window, __property, __type, __format, __data_len, __data); return Qnil; } |
#change_save_set(r_mode, r_window) ⇒ Object
4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 |
# File 'ext/xproto.c', line 4721 static VALUE r_XCB_Connection_change_save_set(VALUE r_self, VALUE r_mode, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __mode = FIX2INT(r_mode); uint32_t __window = FIX2INT(r_window); xcb_change_save_set(connection, __mode, __window); return Qnil; } |
#change_window_attributes(r_window, r_value_mask, r_value_list) ⇒ Object
4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 |
# File 'ext/xproto.c', line 4675 static VALUE r_XCB_Connection_change_window_attributes(VALUE r_self, VALUE r_window, VALUE r_value_mask, VALUE r_value_list) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); uint32_t __value_mask = FIX2INT(r_value_mask); Check_Type(r_value_list, T_ARRAY); int __value_list_len = RARRAY_LEN(r_value_list); uint32_t __value_list[__value_list_len]; int i; for (i = 0; i < __value_list_len; i += 1) __value_list[i] = FIX2INT(rb_ary_entry(r_value_list, i)); xcb_change_window_attributes(connection, __window, __value_mask, __value_list); return Qnil; } |
#circulate_window(r_direction, r_window) ⇒ Object
4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 |
# File 'ext/xproto.c', line 4795 static VALUE r_XCB_Connection_circulate_window(VALUE r_self, VALUE r_direction, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __direction = FIX2INT(r_direction); uint32_t __window = FIX2INT(r_window); xcb_circulate_window(connection, __direction, __window); return Qnil; } |
#clear_area(r_exposures, r_window, r_x, r_y, r_width, r_height) ⇒ Object
5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 |
# File 'ext/xproto.c', line 5471 static VALUE r_XCB_Connection_clear_area(VALUE r_self, VALUE r_exposures, VALUE r_window, VALUE r_x, VALUE r_y, VALUE r_width, VALUE r_height) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __exposures = RTEST(r_exposures); uint32_t __window = FIX2INT(r_window); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); uint16_t __width = FIX2INT(r_width); uint16_t __height = FIX2INT(r_height); xcb_clear_area(connection, __exposures, __window, __x, __y, __width, __height); return Qnil; } |
#close_font(r_font) ⇒ Object
5244 5245 5246 5247 5248 5249 5250 5251 5252 |
# File 'ext/xproto.c', line 5244 static VALUE r_XCB_Connection_close_font(VALUE r_self, VALUE r_font) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __font = FIX2INT(r_font); xcb_close_font(connection, __font); return Qnil; } |
#configure_window(r_window, r_value_mask, r_value_list) ⇒ Object
4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 |
# File 'ext/xproto.c', line 4779 static VALUE r_XCB_Connection_configure_window(VALUE r_self, VALUE r_window, VALUE r_value_mask, VALUE r_value_list) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); uint16_t __value_mask = FIX2INT(r_value_mask); Check_Type(r_value_list, T_ARRAY); int __value_list_len = RARRAY_LEN(r_value_list); uint32_t __value_list[__value_list_len]; int i; for (i = 0; i < __value_list_len; i += 1) __value_list[i] = FIX2INT(rb_ary_entry(r_value_list, i)); xcb_configure_window(connection, __window, __value_mask, __value_list); return Qnil; } |
#convert_selection(r_requestor, r_selection, r_target, r_property, r_time) ⇒ Object
4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 |
# File 'ext/xproto.c', line 4966 static VALUE r_XCB_Connection_convert_selection(VALUE r_self, VALUE r_requestor, VALUE r_selection, VALUE r_target, VALUE r_property, VALUE r_time) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __requestor = FIX2INT(r_requestor); uint32_t __selection = FIX2INT(r_selection); uint32_t __target = FIX2INT(r_target); uint32_t __property = FIX2INT(r_property); uint32_t __time = FIX2INT(r_time); xcb_convert_selection(connection, __requestor, __selection, __target, __property, __time); return Qnil; } |
#copy_area(r_src_drawable, r_dst_drawable, r_gc, r_src_x, r_src_y, r_dst_x, r_dst_y, r_width, r_height) ⇒ Object
5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 |
# File 'ext/xproto.c', line 5485 static VALUE r_XCB_Connection_copy_area(VALUE r_self, VALUE r_src_drawable, VALUE r_dst_drawable, VALUE r_gc, VALUE r_src_x, VALUE r_src_y, VALUE r_dst_x, VALUE r_dst_y, VALUE r_width, VALUE r_height) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __src_drawable = FIX2INT(r_src_drawable); uint32_t __dst_drawable = FIX2INT(r_dst_drawable); uint32_t __gc = FIX2INT(r_gc); uint16_t __src_x = FIX2INT(r_src_x); uint16_t __src_y = FIX2INT(r_src_y); uint16_t __dst_x = FIX2INT(r_dst_x); uint16_t __dst_y = FIX2INT(r_dst_y); uint16_t __width = FIX2INT(r_width); uint16_t __height = FIX2INT(r_height); xcb_copy_area(connection, __src_drawable, __dst_drawable, __gc, __src_x, __src_y, __dst_x, __dst_y, __width, __height); return Qnil; } |
#copy_colormap_and_free(r_mid, r_src_cmap) ⇒ Object
5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 |
# File 'ext/xproto.c', line 5840 static VALUE r_XCB_Connection_copy_colormap_and_free(VALUE r_self, VALUE r_mid, VALUE r_src_cmap) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __mid = FIX2INT(r_mid); uint32_t __src_cmap = FIX2INT(r_src_cmap); xcb_copy_colormap_and_free(connection, __mid, __src_cmap); return Qnil; } |
#copy_gc(r_src_gc, r_dst_gc, r_value_mask) ⇒ Object
5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 |
# File 'ext/xproto.c', line 5411 static VALUE r_XCB_Connection_copy_gc(VALUE r_self, VALUE r_src_gc, VALUE r_dst_gc, VALUE r_value_mask) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __src_gc = FIX2INT(r_src_gc); uint32_t __dst_gc = FIX2INT(r_dst_gc); uint32_t __value_mask = FIX2INT(r_value_mask); xcb_copy_gc(connection, __src_gc, __dst_gc, __value_mask); return Qnil; } |
#copy_plane(r_src_drawable, r_dst_drawable, r_gc, r_src_x, r_src_y, r_dst_x, r_dst_y, r_width, r_height, r_bit_plane) ⇒ Object
5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 |
# File 'ext/xproto.c', line 5502 static VALUE r_XCB_Connection_copy_plane(VALUE r_self, VALUE r_src_drawable, VALUE r_dst_drawable, VALUE r_gc, VALUE r_src_x, VALUE r_src_y, VALUE r_dst_x, VALUE r_dst_y, VALUE r_width, VALUE r_height, VALUE r_bit_plane) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __src_drawable = FIX2INT(r_src_drawable); uint32_t __dst_drawable = FIX2INT(r_dst_drawable); uint32_t __gc = FIX2INT(r_gc); uint16_t __src_x = FIX2INT(r_src_x); uint16_t __src_y = FIX2INT(r_src_y); uint16_t __dst_x = FIX2INT(r_dst_x); uint16_t __dst_y = FIX2INT(r_dst_y); uint16_t __width = FIX2INT(r_width); uint16_t __height = FIX2INT(r_height); uint32_t __bit_plane = FIX2INT(r_bit_plane); xcb_copy_plane(connection, __src_drawable, __dst_drawable, __gc, __src_x, __src_y, __dst_x, __dst_y, __width, __height, __bit_plane); return Qnil; } |
#create_colormap(r_alloc, r_mid, r_window, r_visual) ⇒ Object
5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 |
# File 'ext/xproto.c', line 5819 static VALUE r_XCB_Connection_create_colormap(VALUE r_self, VALUE r_alloc, VALUE r_mid, VALUE r_window, VALUE r_visual) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __alloc = FIX2INT(r_alloc); uint32_t __mid = FIX2INT(r_mid); uint32_t __window = FIX2INT(r_window); uint32_t __visual = FIX2INT(r_visual); xcb_create_colormap(connection, __alloc, __mid, __window, __visual); return Qnil; } |
#create_cursor(r_cid, r_source, r_mask, r_fore_red, r_fore_green, r_fore_blue, r_back_red, r_back_green, r_back_blue, r_x, r_y) ⇒ Object
6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 |
# File 'ext/xproto.c', line 6035 static VALUE r_XCB_Connection_create_cursor(VALUE r_self, VALUE r_cid, VALUE r_source, VALUE r_mask, VALUE r_fore_red, VALUE r_fore_green, VALUE r_fore_blue, VALUE r_back_red, VALUE r_back_green, VALUE r_back_blue, VALUE r_x, VALUE r_y) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cid = FIX2INT(r_cid); uint32_t __source = FIX2INT(r_source); uint32_t __mask = FIX2INT(r_mask); uint16_t __fore_red = FIX2INT(r_fore_red); uint16_t __fore_green = FIX2INT(r_fore_green); uint16_t __fore_blue = FIX2INT(r_fore_blue); uint16_t __back_red = FIX2INT(r_back_red); uint16_t __back_green = FIX2INT(r_back_green); uint16_t __back_blue = FIX2INT(r_back_blue); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); xcb_create_cursor(connection, __cid, __source, __mask, __fore_red, __fore_green, __fore_blue, __back_red, __back_green, __back_blue, __x, __y); return Qnil; } |
#create_gc(r_cid, r_drawable, r_value_mask, r_value_list) ⇒ Object
5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 |
# File 'ext/xproto.c', line 5378 static VALUE r_XCB_Connection_create_gc(VALUE r_self, VALUE r_cid, VALUE r_drawable, VALUE r_value_mask, VALUE r_value_list) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cid = FIX2INT(r_cid); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __value_mask = FIX2INT(r_value_mask); Check_Type(r_value_list, T_ARRAY); int __value_list_len = RARRAY_LEN(r_value_list); uint32_t __value_list[__value_list_len]; int i; for (i = 0; i < __value_list_len; i += 1) __value_list[i] = FIX2INT(rb_ary_entry(r_value_list, i)); xcb_create_gc(connection, __cid, __drawable, __value_mask, __value_list); return Qnil; } |
#create_glyph_cursor(r_cid, r_source_font, r_mask_font, r_source_char, r_mask_char, r_fore_red, r_fore_green, r_fore_blue, r_back_red, r_back_green, r_back_blue) ⇒ Object
6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 |
# File 'ext/xproto.c', line 6054 static VALUE r_XCB_Connection_create_glyph_cursor(VALUE r_self, VALUE r_cid, VALUE r_source_font, VALUE r_mask_font, VALUE r_source_char, VALUE r_mask_char, VALUE r_fore_red, VALUE r_fore_green, VALUE r_fore_blue, VALUE r_back_red, VALUE r_back_green, VALUE r_back_blue) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cid = FIX2INT(r_cid); uint32_t __source_font = FIX2INT(r_source_font); uint32_t __mask_font = FIX2INT(r_mask_font); uint16_t __source_char = FIX2INT(r_source_char); uint16_t __mask_char = FIX2INT(r_mask_char); uint16_t __fore_red = FIX2INT(r_fore_red); uint16_t __fore_green = FIX2INT(r_fore_green); uint16_t __fore_blue = FIX2INT(r_fore_blue); uint16_t __back_red = FIX2INT(r_back_red); uint16_t __back_green = FIX2INT(r_back_green); uint16_t __back_blue = FIX2INT(r_back_blue); xcb_create_glyph_cursor(connection, __cid, __source_font, __mask_font, __source_char, __mask_char, __fore_red, __fore_green, __fore_blue, __back_red, __back_green, __back_blue); return Qnil; } |
#create_pixmap(r_depth, r_pid, r_drawable, r_width, r_height) ⇒ Object
5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 |
# File 'ext/xproto.c', line 5356 static VALUE r_XCB_Connection_create_pixmap(VALUE r_self, VALUE r_depth, VALUE r_pid, VALUE r_drawable, VALUE r_width, VALUE r_height) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __depth = FIX2INT(r_depth); uint32_t __pid = FIX2INT(r_pid); uint32_t __drawable = FIX2INT(r_drawable); uint16_t __width = FIX2INT(r_width); uint16_t __height = FIX2INT(r_height); xcb_create_pixmap(connection, __depth, __pid, __drawable, __width, __height); return Qnil; } |
#create_window(r_depth, r_wid, r_parent, r_x, r_y, r_width, r_height, r_border_width, r_class, r_visual, r_value_mask, r_value_list) ⇒ Object
4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 |
# File 'ext/xproto.c', line 4650 static VALUE r_XCB_Connection_create_window(VALUE r_self, VALUE r_depth, VALUE r_wid, VALUE r_parent, VALUE r_x, VALUE r_y, VALUE r_width, VALUE r_height, VALUE r_border_width, VALUE r_class, VALUE r_visual, VALUE r_value_mask, VALUE r_value_list) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __depth = FIX2INT(r_depth); uint32_t __wid = FIX2INT(r_wid); uint32_t __parent = FIX2INT(r_parent); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); uint16_t __width = FIX2INT(r_width); uint16_t __height = FIX2INT(r_height); uint16_t __border_width = FIX2INT(r_border_width); uint16_t __class = FIX2INT(r_class); uint32_t __visual = FIX2INT(r_visual); uint32_t __value_mask = FIX2INT(r_value_mask); Check_Type(r_value_list, T_ARRAY); int __value_list_len = RARRAY_LEN(r_value_list); uint32_t __value_list[__value_list_len]; int i; for (i = 0; i < __value_list_len; i += 1) __value_list[i] = FIX2INT(rb_ary_entry(r_value_list, i)); xcb_create_window(connection, __depth, __wid, __parent, __x, __y, __width, __height, __border_width, __class, __visual, __value_mask, __value_list); return Qnil; } |
#delete_property(r_window, r_property) ⇒ Object
4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 |
# File 'ext/xproto.c', line 4904 static VALUE r_XCB_Connection_delete_property(VALUE r_self, VALUE r_window, VALUE r_property) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); uint32_t __property = FIX2INT(r_property); xcb_delete_property(connection, __window, __property); return Qnil; } |
#destroy_subwindows(r_window) ⇒ Object
4712 4713 4714 4715 4716 4717 4718 4719 4720 |
# File 'ext/xproto.c', line 4712 static VALUE r_XCB_Connection_destroy_subwindows(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); xcb_destroy_subwindows(connection, __window); return Qnil; } |
#destroy_window(r_window) ⇒ Object
4703 4704 4705 4706 4707 4708 4709 4710 4711 |
# File 'ext/xproto.c', line 4703 static VALUE r_XCB_Connection_destroy_window(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); xcb_destroy_window(connection, __window); return Qnil; } |
#each_event ⇒ Object
4598 4599 4600 4601 4602 4603 |
# File 'ext/xproto.c', line 4598 static VALUE r_XCB_Connection_each_event(VALUE r_self) { rb_thread_call_without_gvl(__r_XCB_Connection_each_event, (void*) r_self, NULL, NULL); return Qnil; } |
#fill_poly(r_drawable, r_gc, r_shape, r_coordinate_mode, r_points) ⇒ Object
5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 |
# File 'ext/xproto.c', line 5632 static VALUE r_XCB_Connection_fill_poly(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_shape, VALUE r_coordinate_mode, VALUE r_points) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); uint8_t __shape = FIX2INT(r_shape); uint8_t __coordinate_mode = FIX2INT(r_coordinate_mode); Check_Type(r_points, T_ARRAY); int __points_len = RARRAY_LEN(r_points); xcb_point_t __points[__points_len]; int i; for (i = 0; i < __points_len; i += 1) { xcb_point_t *data; VALUE r_data = rb_ary_entry(r_points, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_POINT) rb_raise(rb_eTypeError, "expected POINT"); Data_Get_Struct(r_data, xcb_point_t, data); __points[i] = *data; } xcb_fill_poly(connection, __drawable, __gc, __shape, __coordinate_mode, __points_len, __points); return Qnil; } |
#flush ⇒ Object
4480 4481 4482 4483 4484 4485 4486 4487 |
# File 'ext/xproto.c', line 4480 static VALUE r_XCB_Connection_flush(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); xcb_flush(connection); return r_self; } |
#force_screen_saver(r_mode) ⇒ Object
6322 6323 6324 6325 6326 6327 6328 6329 6330 |
# File 'ext/xproto.c', line 6322 static VALUE r_XCB_Connection_force_screen_saver(VALUE r_self, VALUE r_mode) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __mode = FIX2INT(r_mode); xcb_force_screen_saver(connection, __mode); return Qnil; } |
#free_colormap(r_cmap) ⇒ Object
5831 5832 5833 5834 5835 5836 5837 5838 5839 |
# File 'ext/xproto.c', line 5831 static VALUE r_XCB_Connection_free_colormap(VALUE r_self, VALUE r_cmap) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); xcb_free_colormap(connection, __cmap); return Qnil; } |
#free_colors(r_cmap, r_plane_mask, r_pixels) ⇒ Object
5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 |
# File 'ext/xproto.c', line 5945 static VALUE r_XCB_Connection_free_colors(VALUE r_self, VALUE r_cmap, VALUE r_plane_mask, VALUE r_pixels) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); uint32_t __plane_mask = FIX2INT(r_plane_mask); Check_Type(r_pixels, T_ARRAY); int __pixels_len = RARRAY_LEN(r_pixels); uint32_t __pixels[__pixels_len]; int i; for (i = 0; i < __pixels_len; i += 1) __pixels[i] = FIX2INT(rb_ary_entry(r_pixels, i)); xcb_free_colors(connection, __cmap, __plane_mask, __pixels_len, __pixels); return Qnil; } |
#free_cursor(r_cursor) ⇒ Object
6073 6074 6075 6076 6077 6078 6079 6080 6081 |
# File 'ext/xproto.c', line 6073 static VALUE r_XCB_Connection_free_cursor(VALUE r_self, VALUE r_cursor) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cursor = FIX2INT(r_cursor); xcb_free_cursor(connection, __cursor); return Qnil; } |
#free_gc(r_gc) ⇒ Object
5462 5463 5464 5465 5466 5467 5468 5469 5470 |
# File 'ext/xproto.c', line 5462 static VALUE r_XCB_Connection_free_gc(VALUE r_self, VALUE r_gc) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __gc = FIX2INT(r_gc); xcb_free_gc(connection, __gc); return Qnil; } |
#free_pixmap(r_pixmap) ⇒ Object
5369 5370 5371 5372 5373 5374 5375 5376 5377 |
# File 'ext/xproto.c', line 5369 static VALUE r_XCB_Connection_free_pixmap(VALUE r_self, VALUE r_pixmap) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __pixmap = FIX2INT(r_pixmap); xcb_free_pixmap(connection, __pixmap); return Qnil; } |
#get_any_property(r_del, r_window, r_name) ⇒ Object
4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 |
# File 'ext/xproto.c', line 4521 static VALUE r_XCB_Connection_get_any_property(VALUE r_self, VALUE r_del, VALUE r_window, VALUE r_name) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __del = RTEST(r_del); xcb_window_t __window = FIX2INT(r_window); xcb_atom_t __name = FIX2INT(r_name); = xcb_get_property(connection, __del, __window, __name, XCB_GET_PROPERTY_TYPE_ANY, 0, UINT_MAX); xcb_get_property_reply_t *reply = xcb_get_property_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetPropertyReply, NULL, NULL, reply); } |
#get_atom(r_atom_name) ⇒ Object
4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 |
# File 'ext/xproto.c', line 4505 static VALUE r_XCB_Connection_get_atom(VALUE r_self, VALUE r_atom_name) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); Check_Type(r_atom_name, T_STRING); int __atom_name_len = RSTRING_LEN(r_atom_name); char *__atom_name = RSTRING_PTR(r_atom_name); = xcb_intern_atom(connection, 0, __atom_name_len, __atom_name); xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(connection, , NULL); if (reply == NULL) return Qnil; xcb_atom_t __atom = reply->atom; free(reply); return INT2FIX(__atom); } |
#get_atom_name(r_atom) ⇒ Object
4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 |
# File 'ext/xproto.c', line 4847 static VALUE r_XCB_Connection_get_atom_name(VALUE r_self, VALUE r_atom) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __atom = FIX2INT(r_atom); = xcb_get_atom_name(connection, __atom); xcb_get_atom_name_reply_t *reply = xcb_get_atom_name_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetAtomNameReply, NULL, NULL, reply); } |
#get_file_descriptor ⇒ Object
4488 4489 4490 4491 4492 4493 4494 4495 |
# File 'ext/xproto.c', line 4488 static VALUE r_XCB_Connection_get_file_descriptor(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); int fd = xcb_get_file_descriptor(connection); return INT2FIX(fd); } |
#get_font_path ⇒ Object
5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 |
# File 'ext/xproto.c', line 5345 static VALUE r_XCB_Connection_get_font_path(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_get_font_path(connection); xcb_get_font_path_reply_t *reply = xcb_get_font_path_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetFontPathReply, NULL, NULL, reply); } |
#get_geometry(r_drawable) ⇒ Object
4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 |
# File 'ext/xproto.c', line 4805 static VALUE r_XCB_Connection_get_geometry(VALUE r_self, VALUE r_drawable) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); = xcb_get_geometry(connection, __drawable); xcb_get_geometry_reply_t *reply = xcb_get_geometry_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetGeometryReply, NULL, NULL, reply); } |
#get_image(r_format, r_drawable, r_x, r_y, r_width, r_height, r_plane_mask) ⇒ Object
5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 |
# File 'ext/xproto.c', line 5723 static VALUE r_XCB_Connection_get_image(VALUE r_self, VALUE r_format, VALUE r_drawable, VALUE r_x, VALUE r_y, VALUE r_width, VALUE r_height, VALUE r_plane_mask) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __format = FIX2INT(r_format); uint32_t __drawable = FIX2INT(r_drawable); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); uint16_t __width = FIX2INT(r_width); uint16_t __height = FIX2INT(r_height); uint32_t __plane_mask = FIX2INT(r_plane_mask); = xcb_get_image(connection, __format, __drawable, __x, __y, __width, __height, __plane_mask); xcb_get_image_reply_t *reply = xcb_get_image_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetImageReply, NULL, NULL, reply); } |
#get_image_data(r_drawable, r_x, r_y, r_w, r_h) ⇒ Object
4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 |
# File 'ext/xproto.c', line 4604 static VALUE r_XCB_Connection_get_image_data(VALUE r_self, VALUE r_drawable, VALUE r_x, VALUE r_y, VALUE r_w, VALUE r_h) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); xcb_drawable_t __drawable = FIX2INT(r_drawable); int16_t __x = FIX2INT(r_x); int16_t __y = FIX2INT(r_y); uint16_t __w = FIX2INT(r_w); uint16_t __h = FIX2INT(r_h); = xcb_get_image(connection, XCB_IMAGE_FORMAT_Z_PIXMAP, __drawable, __x, __y, __w, __h, 0xFFFFFF); xcb_get_image_reply_t *reply = xcb_get_image_reply(connection, , NULL); if (reply == NULL) return Qnil; int data_len = xcb_get_image_data_length(reply); uint8_t *data = xcb_get_image_data(reply); VALUE r_data = rb_str_new((char*) data, data_len); free(reply); return r_data; } |
#get_input_focus ⇒ Object
5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 |
# File 'ext/xproto.c', line 5207 static VALUE r_XCB_Connection_get_input_focus(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_get_input_focus(connection); xcb_get_input_focus_reply_t *reply = xcb_get_input_focus_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetInputFocusReply, NULL, NULL, reply); } |
#get_keyboard_control ⇒ Object
6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 |
# File 'ext/xproto.c', line 6185 static VALUE r_XCB_Connection_get_keyboard_control(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_get_keyboard_control(connection); xcb_get_keyboard_control_reply_t *reply = xcb_get_keyboard_control_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetKeyboardControlReply, NULL, NULL, reply); } |
#get_keyboard_mapping(r_first_keycode, r_count) ⇒ Object
6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 |
# File 'ext/xproto.c', line 6157 static VALUE r_XCB_Connection_get_keyboard_mapping(VALUE r_self, VALUE r_first_keycode, VALUE r_count) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __first_keycode = FIX2INT(r_first_keycode); uint8_t __count = FIX2INT(r_count); = xcb_get_keyboard_mapping(connection, __first_keycode, __count); xcb_get_keyboard_mapping_reply_t *reply = xcb_get_keyboard_mapping_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetKeyboardMappingReply, NULL, NULL, reply); } |
#get_modifier_mapping ⇒ Object
6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 |
# File 'ext/xproto.c', line 6377 static VALUE r_XCB_Connection_get_modifier_mapping(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_get_modifier_mapping(connection); xcb_get_modifier_mapping_reply_t *reply = xcb_get_modifier_mapping_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetModifierMappingReply, NULL, NULL, reply); } |
#get_motion_events(r_window, r_start, r_stop) ⇒ Object
5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 |
# File 'ext/xproto.c', line 5151 static VALUE r_XCB_Connection_get_motion_events(VALUE r_self, VALUE r_window, VALUE r_start, VALUE r_stop) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); uint32_t __start = FIX2INT(r_start); uint32_t __stop = FIX2INT(r_stop); = xcb_get_motion_events(connection, __window, __start, __stop); xcb_get_motion_events_reply_t *reply = xcb_get_motion_events_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetMotionEventsReply, NULL, NULL, reply); } |
#get_pointer_control ⇒ Object
6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 |
# File 'ext/xproto.c', line 6218 static VALUE r_XCB_Connection_get_pointer_control(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_get_pointer_control(connection); xcb_get_pointer_control_reply_t *reply = xcb_get_pointer_control_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetPointerControlReply, NULL, NULL, reply); } |
#get_pointer_mapping ⇒ Object
6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 |
# File 'ext/xproto.c', line 6348 static VALUE r_XCB_Connection_get_pointer_mapping(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_get_pointer_mapping(connection); xcb_get_pointer_mapping_reply_t *reply = xcb_get_pointer_mapping_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetPointerMappingReply, NULL, NULL, reply); } |
#get_property(r_delete, r_window, r_property, r_type, r_long_offset, r_long_length) ⇒ Object
4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 |
# File 'ext/xproto.c', line 4914 static VALUE r_XCB_Connection_get_property(VALUE r_self, VALUE r_delete, VALUE r_window, VALUE r_property, VALUE r_type, VALUE r_long_offset, VALUE r_long_length) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __delete = RTEST(r_delete); uint32_t __window = FIX2INT(r_window); uint32_t __property = FIX2INT(r_property); uint32_t __type = FIX2INT(r_type); uint32_t __long_offset = FIX2INT(r_long_offset); uint32_t __long_length = FIX2INT(r_long_length); = xcb_get_property(connection, __delete, __window, __property, __type, __long_offset, __long_length); xcb_get_property_reply_t *reply = xcb_get_property_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetPropertyReply, NULL, NULL, reply); } |
#get_screen_saver ⇒ Object
6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 |
# File 'ext/xproto.c', line 6241 static VALUE r_XCB_Connection_get_screen_saver(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_get_screen_saver(connection); xcb_get_screen_saver_reply_t *reply = xcb_get_screen_saver_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetScreenSaverReply, NULL, NULL, reply); } |
#get_selection_owner(r_selection) ⇒ Object
4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 |
# File 'ext/xproto.c', line 4954 static VALUE r_XCB_Connection_get_selection_owner(VALUE r_self, VALUE r_selection) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __selection = FIX2INT(r_selection); = xcb_get_selection_owner(connection, __selection); xcb_get_selection_owner_reply_t *reply = xcb_get_selection_owner_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetSelectionOwnerReply, NULL, NULL, reply); } |
#get_setup ⇒ Object
4496 4497 4498 4499 4500 4501 4502 4503 4504 |
# File 'ext/xproto.c', line 4496 static VALUE r_XCB_Connection_get_setup(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); const xcb_setup_t *setup = xcb_get_setup(connection); VALUE r_setup = Data_Wrap_Struct(r_XCB_Setup, NULL, __free, (xcb_setup_t*) setup); return r_setup; } |
#get_window_attributes(r_window) ⇒ Object
4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 |
# File 'ext/xproto.c', line 4691 static VALUE r_XCB_Connection_get_window_attributes(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); = xcb_get_window_attributes(connection, __window); xcb_get_window_attributes_reply_t *reply = xcb_get_window_attributes_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GetWindowAttributesReply, NULL, NULL, reply); } |
#get_wm_protocols(r_window, r_wm_protocols_atom) ⇒ Object
4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 |
# File 'ext/xproto.c', line 4535 static VALUE r_XCB_Connection_get_wm_protocols(VALUE r_self, VALUE r_window, VALUE r_wm_protocols_atom) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); xcb_window_t __window = FIX2INT(r_window); xcb_atom_t __wm_protocols_atom = FIX2INT(r_wm_protocols_atom); = xcb_icccm_get_wm_protocols_unchecked(connection, __window, __wm_protocols_atom); xcb_icccm_get_wm_protocols_reply_t protocols; if (xcb_icccm_get_wm_protocols_reply(connection, , &protocols, NULL) == 0) rb_raise(rb_eArgError, "xcb_icccm_get_wm_protocols failed"); int __atoms_len = protocols.atoms_len; xcb_atom_t *__atoms = protocols.atoms; VALUE r_wm_protocols = rb_ary_new2(__atoms_len); int i; for (i = 0; i < __atoms_len; i += 1) rb_ary_store(r_wm_protocols, i, INT2FIX(__atoms[i])); xcb_icccm_get_wm_protocols_reply_wipe(&protocols); return r_wm_protocols; } |
#grab_button(r_owner_events, r_grab_window, r_event_mask, r_pointer_mode, r_keyboard_mode, r_confine_to, r_cursor, r_button, r_modifiers) ⇒ Object
5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 |
# File 'ext/xproto.c', line 5024 static VALUE (VALUE r_self, VALUE r_owner_events, VALUE r_grab_window, VALUE r_event_mask, VALUE r_pointer_mode, VALUE r_keyboard_mode, VALUE r_confine_to, VALUE r_cursor, VALUE , VALUE r_modifiers) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __owner_events = RTEST(r_owner_events); uint32_t __grab_window = FIX2INT(r_grab_window); uint16_t __event_mask = FIX2INT(r_event_mask); uint8_t __pointer_mode = FIX2INT(r_pointer_mode); uint8_t __keyboard_mode = FIX2INT(r_keyboard_mode); uint32_t __confine_to = FIX2INT(r_confine_to); uint32_t __cursor = FIX2INT(r_cursor); uint8_t = FIX2INT(); uint16_t __modifiers = FIX2INT(r_modifiers); (connection, __owner_events, __grab_window, __event_mask, __pointer_mode, __keyboard_mode, __confine_to, __cursor, , __modifiers); return Qnil; } |
#grab_key(r_owner_events, r_grab_window, r_modifiers, r_key, r_pointer_mode, r_keyboard_mode) ⇒ Object
5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 |
# File 'ext/xproto.c', line 5088 static VALUE r_XCB_Connection_grab_key(VALUE r_self, VALUE r_owner_events, VALUE r_grab_window, VALUE r_modifiers, VALUE r_key, VALUE r_pointer_mode, VALUE r_keyboard_mode) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __owner_events = RTEST(r_owner_events); uint32_t __grab_window = FIX2INT(r_grab_window); uint16_t __modifiers = FIX2INT(r_modifiers); uint8_t __key = FIX2INT(r_key); uint8_t __pointer_mode = FIX2INT(r_pointer_mode); uint8_t __keyboard_mode = FIX2INT(r_keyboard_mode); xcb_grab_key(connection, __owner_events, __grab_window, __modifiers, __key, __pointer_mode, __keyboard_mode); return Qnil; } |
#grab_keyboard(r_owner_events, r_grab_window, r_time, r_pointer_mode, r_keyboard_mode) ⇒ Object
5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 |
# File 'ext/xproto.c', line 5063 static VALUE r_XCB_Connection_grab_keyboard(VALUE r_self, VALUE r_owner_events, VALUE r_grab_window, VALUE r_time, VALUE r_pointer_mode, VALUE r_keyboard_mode) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __owner_events = RTEST(r_owner_events); uint32_t __grab_window = FIX2INT(r_grab_window); uint32_t __time = FIX2INT(r_time); uint8_t __pointer_mode = FIX2INT(r_pointer_mode); uint8_t __keyboard_mode = FIX2INT(r_keyboard_mode); = xcb_grab_keyboard(connection, __owner_events, __grab_window, __time, __pointer_mode, __keyboard_mode); xcb_grab_keyboard_reply_t *reply = xcb_grab_keyboard_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GrabKeyboardReply, NULL, NULL, reply); } |
#grab_pointer(r_owner_events, r_grab_window, r_event_mask, r_pointer_mode, r_keyboard_mode, r_confine_to, r_cursor, r_time) ⇒ Object
4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 |
# File 'ext/xproto.c', line 4996 static VALUE r_XCB_Connection_grab_pointer(VALUE r_self, VALUE r_owner_events, VALUE r_grab_window, VALUE r_event_mask, VALUE r_pointer_mode, VALUE r_keyboard_mode, VALUE r_confine_to, VALUE r_cursor, VALUE r_time) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __owner_events = RTEST(r_owner_events); uint32_t __grab_window = FIX2INT(r_grab_window); uint16_t __event_mask = FIX2INT(r_event_mask); uint8_t __pointer_mode = FIX2INT(r_pointer_mode); uint8_t __keyboard_mode = FIX2INT(r_keyboard_mode); uint32_t __confine_to = FIX2INT(r_confine_to); uint32_t __cursor = FIX2INT(r_cursor); uint32_t __time = FIX2INT(r_time); = xcb_grab_pointer(connection, __owner_events, __grab_window, __event_mask, __pointer_mode, __keyboard_mode, __confine_to, __cursor, __time); xcb_grab_pointer_reply_t *reply = xcb_grab_pointer_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_GrabPointerReply, NULL, NULL, reply); } |
#grab_server ⇒ Object
5123 5124 5125 5126 5127 5128 5129 5130 |
# File 'ext/xproto.c', line 5123 static VALUE r_XCB_Connection_grab_server(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); xcb_grab_server(connection); return Qnil; } |
#image_text_16(r_drawable, r_gc, r_x, r_y, r_string) ⇒ Object
5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 |
# File 'ext/xproto.c', line 5795 static VALUE r_XCB_Connection_image_text_16(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_x, VALUE r_y, VALUE r_string) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); Check_Type(r_string, T_ARRAY); int __string_len = RARRAY_LEN(r_string); xcb_char2b_t __string[__string_len]; int i; for (i = 0; i < __string_len; i += 1) { xcb_char2b_t *data; VALUE r_data = rb_ary_entry(r_string, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_CHAR2B) rb_raise(rb_eTypeError, "expected CHAR2B"); Data_Get_Struct(r_data, xcb_char2b_t, data); __string[i] = *data; } xcb_image_text_16(connection, __drawable, __gc, __x, __y, __string_len, __string); return Qnil; } |
#image_text_8(r_drawable, r_gc, r_x, r_y, r_string) ⇒ Object
5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 |
# File 'ext/xproto.c', line 5777 static VALUE r_XCB_Connection_image_text_8(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_x, VALUE r_y, VALUE r_string) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); Check_Type(r_string, T_ARRAY); int __string_len = RARRAY_LEN(r_string); char __string[__string_len]; int i; for (i = 0; i < __string_len; i += 1) __string[i] = FIX2INT(rb_ary_entry(r_string, i)); xcb_image_text_8(connection, __drawable, __gc, __x, __y, __string_len, __string); return Qnil; } |
#install_colormap(r_cmap) ⇒ Object
5850 5851 5852 5853 5854 5855 5856 5857 5858 |
# File 'ext/xproto.c', line 5850 static VALUE r_XCB_Connection_install_colormap(VALUE r_self, VALUE r_cmap) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); xcb_install_colormap(connection, __cmap); return Qnil; } |
#intern_atom(r_only_if_exists, r_name) ⇒ Object
4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 |
# File 'ext/xproto.c', line 4829 static VALUE r_XCB_Connection_intern_atom(VALUE r_self, VALUE r_only_if_exists, VALUE r_name) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __only_if_exists = RTEST(r_only_if_exists); Check_Type(r_name, T_ARRAY); int __name_len = RARRAY_LEN(r_name); char __name[__name_len]; int i; for (i = 0; i < __name_len; i += 1) __name[i] = FIX2INT(rb_ary_entry(r_name, i)); = xcb_intern_atom(connection, __only_if_exists, __name_len, __name); xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_InternAtomReply, NULL, NULL, reply); } |
#kill_client(r_resource) ⇒ Object
6297 6298 6299 6300 6301 6302 6303 6304 6305 |
# File 'ext/xproto.c', line 6297 static VALUE r_XCB_Connection_kill_client(VALUE r_self, VALUE r_resource) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __resource = FIX2INT(r_resource); xcb_kill_client(connection, __resource); return Qnil; } |
#list_extensions ⇒ Object
6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 |
# File 'ext/xproto.c', line 6129 static VALUE r_XCB_Connection_list_extensions(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_list_extensions(connection); xcb_list_extensions_reply_t *reply = xcb_list_extensions_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_ListExtensionsReply, NULL, NULL, reply); } |
#list_fonts(r_max_names, r_pattern) ⇒ Object
5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 |
# File 'ext/xproto.c', line 5289 static VALUE r_XCB_Connection_list_fonts(VALUE r_self, VALUE r_max_names, VALUE r_pattern) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint16_t __max_names = FIX2INT(r_max_names); Check_Type(r_pattern, T_ARRAY); int __pattern_len = RARRAY_LEN(r_pattern); char __pattern[__pattern_len]; int i; for (i = 0; i < __pattern_len; i += 1) __pattern[i] = FIX2INT(rb_ary_entry(r_pattern, i)); = xcb_list_fonts(connection, __max_names, __pattern_len, __pattern); xcb_list_fonts_reply_t *reply = xcb_list_fonts_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_ListFontsReply, NULL, NULL, reply); } |
#list_fonts_with_info(r_max_names, r_pattern) ⇒ Object
5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 |
# File 'ext/xproto.c', line 5307 static VALUE r_XCB_Connection_list_fonts_with_info(VALUE r_self, VALUE r_max_names, VALUE r_pattern) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint16_t __max_names = FIX2INT(r_max_names); Check_Type(r_pattern, T_ARRAY); int __pattern_len = RARRAY_LEN(r_pattern); char __pattern[__pattern_len]; int i; for (i = 0; i < __pattern_len; i += 1) __pattern[i] = FIX2INT(rb_ary_entry(r_pattern, i)); = xcb_list_fonts_with_info(connection, __max_names, __pattern_len, __pattern); xcb_list_fonts_with_info_reply_t *reply = xcb_list_fonts_with_info_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_ListFontsWithInfoReply, NULL, NULL, reply); } |
#list_hosts ⇒ Object
6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 |
# File 'ext/xproto.c', line 6268 static VALUE r_XCB_Connection_list_hosts(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_list_hosts(connection); xcb_list_hosts_reply_t *reply = xcb_list_hosts_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_ListHostsReply, NULL, NULL, reply); } |
#list_installed_colormaps(r_window) ⇒ Object
5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 |
# File 'ext/xproto.c', line 5868 static VALUE r_XCB_Connection_list_installed_colormaps(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); = xcb_list_installed_colormaps(connection, __window); xcb_list_installed_colormaps_reply_t *reply = xcb_list_installed_colormaps_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_ListInstalledColormapsReply, NULL, NULL, reply); } |
#list_properties(r_window) ⇒ Object
4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 |
# File 'ext/xproto.c', line 4931 static VALUE r_XCB_Connection_list_properties(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); = xcb_list_properties(connection, __window); xcb_list_properties_reply_t *reply = xcb_list_properties_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_ListPropertiesReply, NULL, NULL, reply); } |
#lookup_color(r_cmap, r_name) ⇒ Object
6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 |
# File 'ext/xproto.c', line 6017 static VALUE r_XCB_Connection_lookup_color(VALUE r_self, VALUE r_cmap, VALUE r_name) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); Check_Type(r_name, T_ARRAY); int __name_len = RARRAY_LEN(r_name); char __name[__name_len]; int i; for (i = 0; i < __name_len; i += 1) __name[i] = FIX2INT(rb_ary_entry(r_name, i)); = xcb_lookup_color(connection, __cmap, __name_len, __name); xcb_lookup_color_reply_t *reply = xcb_lookup_color_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_LookupColorReply, NULL, NULL, reply); } |
#map_subwindows(r_window) ⇒ Object
4752 4753 4754 4755 4756 4757 4758 4759 4760 |
# File 'ext/xproto.c', line 4752 static VALUE r_XCB_Connection_map_subwindows(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); xcb_map_subwindows(connection, __window); return Qnil; } |
#map_window(r_window) ⇒ Object
4743 4744 4745 4746 4747 4748 4749 4750 4751 |
# File 'ext/xproto.c', line 4743 static VALUE r_XCB_Connection_map_window(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); xcb_map_window(connection, __window); return Qnil; } |
#no_operation ⇒ Object
6388 6389 6390 6391 6392 6393 6394 6395 |
# File 'ext/xproto.c', line 6388 static VALUE r_XCB_Connection_no_operation(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); xcb_no_operation(connection); return Qnil; } |
#open_font(r_fid, r_name) ⇒ Object
5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 |
# File 'ext/xproto.c', line 5229 static VALUE r_XCB_Connection_open_font(VALUE r_self, VALUE r_fid, VALUE r_name) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __fid = FIX2INT(r_fid); Check_Type(r_name, T_ARRAY); int __name_len = RARRAY_LEN(r_name); char __name[__name_len]; int i; for (i = 0; i < __name_len; i += 1) __name[i] = FIX2INT(rb_ary_entry(r_name, i)); xcb_open_font(connection, __fid, __name_len, __name); return Qnil; } |
#poly_arc(r_drawable, r_gc, r_arcs) ⇒ Object
5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 |
# File 'ext/xproto.c', line 5610 static VALUE r_XCB_Connection_poly_arc(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_arcs) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); Check_Type(r_arcs, T_ARRAY); int __arcs_len = RARRAY_LEN(r_arcs); xcb_arc_t __arcs[__arcs_len]; int i; for (i = 0; i < __arcs_len; i += 1) { xcb_arc_t *data; VALUE r_data = rb_ary_entry(r_arcs, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_ARC) rb_raise(rb_eTypeError, "expected ARC"); Data_Get_Struct(r_data, xcb_arc_t, data); __arcs[i] = *data; } xcb_poly_arc(connection, __drawable, __gc, __arcs_len, __arcs); return Qnil; } |
#poly_fill_arc(r_drawable, r_gc, r_arcs) ⇒ Object
5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 |
# File 'ext/xproto.c', line 5678 static VALUE r_XCB_Connection_poly_fill_arc(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_arcs) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); Check_Type(r_arcs, T_ARRAY); int __arcs_len = RARRAY_LEN(r_arcs); xcb_arc_t __arcs[__arcs_len]; int i; for (i = 0; i < __arcs_len; i += 1) { xcb_arc_t *data; VALUE r_data = rb_ary_entry(r_arcs, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_ARC) rb_raise(rb_eTypeError, "expected ARC"); Data_Get_Struct(r_data, xcb_arc_t, data); __arcs[i] = *data; } xcb_poly_fill_arc(connection, __drawable, __gc, __arcs_len, __arcs); return Qnil; } |
#poly_fill_rectangle(r_drawable, r_gc, r_rectangles) ⇒ Object
5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 |
# File 'ext/xproto.c', line 5656 static VALUE r_XCB_Connection_poly_fill_rectangle(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_rectangles) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); Check_Type(r_rectangles, T_ARRAY); int __rectangles_len = RARRAY_LEN(r_rectangles); xcb_rectangle_t __rectangles[__rectangles_len]; int i; for (i = 0; i < __rectangles_len; i += 1) { xcb_rectangle_t *data; VALUE r_data = rb_ary_entry(r_rectangles, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_RECTANGLE) rb_raise(rb_eTypeError, "expected RECTANGLE"); Data_Get_Struct(r_data, xcb_rectangle_t, data); __rectangles[i] = *data; } xcb_poly_fill_rectangle(connection, __drawable, __gc, __rectangles_len, __rectangles); return Qnil; } |
#poly_line(r_coordinate_mode, r_drawable, r_gc, r_points) ⇒ Object
5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 |
# File 'ext/xproto.c', line 5543 static VALUE r_XCB_Connection_poly_line(VALUE r_self, VALUE r_coordinate_mode, VALUE r_drawable, VALUE r_gc, VALUE r_points) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __coordinate_mode = FIX2INT(r_coordinate_mode); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); Check_Type(r_points, T_ARRAY); int __points_len = RARRAY_LEN(r_points); xcb_point_t __points[__points_len]; int i; for (i = 0; i < __points_len; i += 1) { xcb_point_t *data; VALUE r_data = rb_ary_entry(r_points, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_POINT) rb_raise(rb_eTypeError, "expected POINT"); Data_Get_Struct(r_data, xcb_point_t, data); __points[i] = *data; } xcb_poly_line(connection, __coordinate_mode, __drawable, __gc, __points_len, __points); return Qnil; } |
#poly_point(r_coordinate_mode, r_drawable, r_gc, r_points) ⇒ Object
5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 |
# File 'ext/xproto.c', line 5520 static VALUE r_XCB_Connection_poly_point(VALUE r_self, VALUE r_coordinate_mode, VALUE r_drawable, VALUE r_gc, VALUE r_points) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __coordinate_mode = FIX2INT(r_coordinate_mode); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); Check_Type(r_points, T_ARRAY); int __points_len = RARRAY_LEN(r_points); xcb_point_t __points[__points_len]; int i; for (i = 0; i < __points_len; i += 1) { xcb_point_t *data; VALUE r_data = rb_ary_entry(r_points, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_POINT) rb_raise(rb_eTypeError, "expected POINT"); Data_Get_Struct(r_data, xcb_point_t, data); __points[i] = *data; } xcb_poly_point(connection, __coordinate_mode, __drawable, __gc, __points_len, __points); return Qnil; } |
#poly_rectangle(r_drawable, r_gc, r_rectangles) ⇒ Object
5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 |
# File 'ext/xproto.c', line 5588 static VALUE r_XCB_Connection_poly_rectangle(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_rectangles) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); Check_Type(r_rectangles, T_ARRAY); int __rectangles_len = RARRAY_LEN(r_rectangles); xcb_rectangle_t __rectangles[__rectangles_len]; int i; for (i = 0; i < __rectangles_len; i += 1) { xcb_rectangle_t *data; VALUE r_data = rb_ary_entry(r_rectangles, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_RECTANGLE) rb_raise(rb_eTypeError, "expected RECTANGLE"); Data_Get_Struct(r_data, xcb_rectangle_t, data); __rectangles[i] = *data; } xcb_poly_rectangle(connection, __drawable, __gc, __rectangles_len, __rectangles); return Qnil; } |
#poly_segment(r_drawable, r_gc, r_segments) ⇒ Object
5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 |
# File 'ext/xproto.c', line 5566 static VALUE r_XCB_Connection_poly_segment(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_segments) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); Check_Type(r_segments, T_ARRAY); int __segments_len = RARRAY_LEN(r_segments); xcb_segment_t __segments[__segments_len]; int i; for (i = 0; i < __segments_len; i += 1) { xcb_segment_t *data; VALUE r_data = rb_ary_entry(r_segments, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_SEGMENT) rb_raise(rb_eTypeError, "expected SEGMENT"); Data_Get_Struct(r_data, xcb_segment_t, data); __segments[i] = *data; } xcb_poly_segment(connection, __drawable, __gc, __segments_len, __segments); return Qnil; } |
#poly_text_16(r_drawable, r_gc, r_x, r_y, r_items) ⇒ Object
5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 |
# File 'ext/xproto.c', line 5759 static VALUE r_XCB_Connection_poly_text_16(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_x, VALUE r_y, VALUE r_items) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); Check_Type(r_items, T_ARRAY); int __items_len = RARRAY_LEN(r_items); uint8_t __items[__items_len]; int i; for (i = 0; i < __items_len; i += 1) __items[i] = FIX2INT(rb_ary_entry(r_items, i)); xcb_poly_text_16(connection, __drawable, __gc, __x, __y, __items_len, __items); return Qnil; } |
#poly_text_8(r_drawable, r_gc, r_x, r_y, r_items) ⇒ Object
5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 |
# File 'ext/xproto.c', line 5741 static VALUE r_XCB_Connection_poly_text_8(VALUE r_self, VALUE r_drawable, VALUE r_gc, VALUE r_x, VALUE r_y, VALUE r_items) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); Check_Type(r_items, T_ARRAY); int __items_len = RARRAY_LEN(r_items); uint8_t __items[__items_len]; int i; for (i = 0; i < __items_len; i += 1) __items[i] = FIX2INT(rb_ary_entry(r_items, i)); xcb_poly_text_8(connection, __drawable, __gc, __x, __y, __items_len, __items); return Qnil; } |
#put_image(r_format, r_drawable, r_gc, r_width, r_height, r_dst_x, r_dst_y, r_left_pad, r_depth, r_data) ⇒ Object
5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 |
# File 'ext/xproto.c', line 5700 static VALUE r_XCB_Connection_put_image(VALUE r_self, VALUE r_format, VALUE r_drawable, VALUE r_gc, VALUE r_width, VALUE r_height, VALUE r_dst_x, VALUE r_dst_y, VALUE r_left_pad, VALUE r_depth, VALUE r_data) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __format = FIX2INT(r_format); uint32_t __drawable = FIX2INT(r_drawable); uint32_t __gc = FIX2INT(r_gc); uint16_t __width = FIX2INT(r_width); uint16_t __height = FIX2INT(r_height); uint16_t __dst_x = FIX2INT(r_dst_x); uint16_t __dst_y = FIX2INT(r_dst_y); uint8_t __left_pad = FIX2INT(r_left_pad); uint8_t __depth = FIX2INT(r_depth); Check_Type(r_data, T_ARRAY); int __data_len = RARRAY_LEN(r_data); uint8_t __data[__data_len]; int i; for (i = 0; i < __data_len; i += 1) __data[i] = FIX2INT(rb_ary_entry(r_data, i)); xcb_put_image(connection, __format, __drawable, __gc, __width, __height, __dst_x, __dst_y, __left_pad, __depth, __data_len, __data); return Qnil; } |
#query_best_size(r_class, r_drawable, r_width, r_height) ⇒ Object
6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 |
# File 'ext/xproto.c', line 6097 static VALUE r_XCB_Connection_query_best_size(VALUE r_self, VALUE r_class, VALUE r_drawable, VALUE r_width, VALUE r_height) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __class = FIX2INT(r_class); uint32_t __drawable = FIX2INT(r_drawable); uint16_t __width = FIX2INT(r_width); uint16_t __height = FIX2INT(r_height); = xcb_query_best_size(connection, __class, __drawable, __width, __height); xcb_query_best_size_reply_t *reply = xcb_query_best_size_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_QueryBestSizeReply, NULL, NULL, reply); } |
#query_colors(r_cmap, r_pixels) ⇒ Object
5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 |
# File 'ext/xproto.c', line 5999 static VALUE r_XCB_Connection_query_colors(VALUE r_self, VALUE r_cmap, VALUE r_pixels) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); Check_Type(r_pixels, T_ARRAY); int __pixels_len = RARRAY_LEN(r_pixels); uint32_t __pixels[__pixels_len]; int i; for (i = 0; i < __pixels_len; i += 1) __pixels[i] = FIX2INT(rb_ary_entry(r_pixels, i)); = xcb_query_colors(connection, __cmap, __pixels_len, __pixels); xcb_query_colors_reply_t *reply = xcb_query_colors_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_QueryColorsReply, NULL, NULL, reply); } |
#query_extension(r_name) ⇒ Object
6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 |
# File 'ext/xproto.c', line 6112 static VALUE r_XCB_Connection_query_extension(VALUE r_self, VALUE r_name) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); Check_Type(r_name, T_ARRAY); int __name_len = RARRAY_LEN(r_name); char __name[__name_len]; int i; for (i = 0; i < __name_len; i += 1) __name[i] = FIX2INT(rb_ary_entry(r_name, i)); = xcb_query_extension(connection, __name_len, __name); xcb_query_extension_reply_t *reply = xcb_query_extension_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_QueryExtensionReply, NULL, NULL, reply); } |
#query_font(r_font) ⇒ Object
5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 |
# File 'ext/xproto.c', line 5253 static VALUE r_XCB_Connection_query_font(VALUE r_self, VALUE r_font) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __font = FIX2INT(r_font); = xcb_query_font(connection, __font); xcb_query_font_reply_t *reply = xcb_query_font_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_QueryFontReply, NULL, NULL, reply); } |
#query_keymap ⇒ Object
5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 |
# File 'ext/xproto.c', line 5218 static VALUE r_XCB_Connection_query_keymap(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); = xcb_query_keymap(connection); xcb_query_keymap_reply_t *reply = xcb_query_keymap_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_QueryKeymapReply, NULL, NULL, reply); } |
#query_pointer(r_window) ⇒ Object
5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 |
# File 'ext/xproto.c', line 5139 static VALUE r_XCB_Connection_query_pointer(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); = xcb_query_pointer(connection, __window); xcb_query_pointer_reply_t *reply = xcb_query_pointer_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_QueryPointerReply, NULL, NULL, reply); } |
#query_text_extents(r_font, r_string) ⇒ Object
5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 |
# File 'ext/xproto.c', line 5265 static VALUE r_XCB_Connection_query_text_extents(VALUE r_self, VALUE r_font, VALUE r_string) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __font = FIX2INT(r_font); Check_Type(r_string, T_ARRAY); int __string_len = RARRAY_LEN(r_string); xcb_char2b_t __string[__string_len]; int i; for (i = 0; i < __string_len; i += 1) { xcb_char2b_t *data; VALUE r_data = rb_ary_entry(r_string, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_CHAR2B) rb_raise(rb_eTypeError, "expected CHAR2B"); Data_Get_Struct(r_data, xcb_char2b_t, data); __string[i] = *data; } = xcb_query_text_extents(connection, __font, __string_len, __string); xcb_query_text_extents_reply_t *reply = xcb_query_text_extents_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_QueryTextExtentsReply, NULL, NULL, reply); } |
#query_tree(r_window) ⇒ Object
4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 |
# File 'ext/xproto.c', line 4817 static VALUE r_XCB_Connection_query_tree(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); = xcb_query_tree(connection, __window); xcb_query_tree_reply_t *reply = xcb_query_tree_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_QueryTreeReply, NULL, NULL, reply); } |
#recolor_cursor(r_cursor, r_fore_red, r_fore_green, r_fore_blue, r_back_red, r_back_green, r_back_blue) ⇒ Object
6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 |
# File 'ext/xproto.c', line 6082 static VALUE r_XCB_Connection_recolor_cursor(VALUE r_self, VALUE r_cursor, VALUE r_fore_red, VALUE r_fore_green, VALUE r_fore_blue, VALUE r_back_red, VALUE r_back_green, VALUE r_back_blue) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cursor = FIX2INT(r_cursor); uint16_t __fore_red = FIX2INT(r_fore_red); uint16_t __fore_green = FIX2INT(r_fore_green); uint16_t __fore_blue = FIX2INT(r_fore_blue); uint16_t __back_red = FIX2INT(r_back_red); uint16_t __back_green = FIX2INT(r_back_green); uint16_t __back_blue = FIX2INT(r_back_blue); xcb_recolor_cursor(connection, __cursor, __fore_red, __fore_green, __fore_blue, __back_red, __back_green, __back_blue); return Qnil; } |
#reparent_window(r_window, r_parent, r_x, r_y) ⇒ Object
4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 |
# File 'ext/xproto.c', line 4731 static VALUE r_XCB_Connection_reparent_window(VALUE r_self, VALUE r_window, VALUE r_parent, VALUE r_x, VALUE r_y) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); uint32_t __parent = FIX2INT(r_parent); uint16_t __x = FIX2INT(r_x); uint16_t __y = FIX2INT(r_y); xcb_reparent_window(connection, __window, __parent, __x, __y); return Qnil; } |
#rotate_properties(r_window, r_delta, r_atoms) ⇒ Object
6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 |
# File 'ext/xproto.c', line 6306 static VALUE r_XCB_Connection_rotate_properties(VALUE r_self, VALUE r_window, VALUE r_delta, VALUE r_atoms) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); uint16_t __delta = FIX2INT(r_delta); Check_Type(r_atoms, T_ARRAY); int __atoms_len = RARRAY_LEN(r_atoms); uint32_t __atoms[__atoms_len]; int i; for (i = 0; i < __atoms_len; i += 1) __atoms[i] = FIX2INT(rb_ary_entry(r_atoms, i)); xcb_rotate_properties(connection, __window, __delta, __atoms_len, __atoms); return Qnil; } |
#send_event(r_propagate, r_destination, r_event_mask, r_event) ⇒ Object
4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 |
# File 'ext/xproto.c', line 4979 static VALUE r_XCB_Connection_send_event(VALUE r_self, VALUE r_propagate, VALUE r_destination, VALUE r_event_mask, VALUE r_event) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __propagate = RTEST(r_propagate); uint32_t __destination = FIX2INT(r_destination); uint32_t __event_mask = FIX2INT(r_event_mask); Check_Type(r_event, T_ARRAY); int __event_len = 32; char __event[__event_len]; int i; for (i = 0; i < __event_len; i += 1) __event[i] = FIX2INT(rb_ary_entry(r_event, i)); xcb_send_event(connection, __propagate, __destination, __event_mask, __event); return Qnil; } |
#send_event_object(r_propagate, r_destination, r_event_mask, r_event) ⇒ Object
4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 |
# File 'ext/xproto.c', line 4555 static VALUE r_XCB_Connection_send_event_object(VALUE r_self, VALUE r_propagate, VALUE r_destination, VALUE r_event_mask, VALUE r_event) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __propagate = RTEST(r_propagate); xcb_window_t __destination = FIX2INT(r_destination); uint32_t __event_mask = FIX2INT(r_event_mask); *event; Data_Get_Struct(r_event, , event); xcb_send_event(connection, __propagate, __destination, __event_mask, (char*) event); return Qnil; } |
#set_access_control(r_mode) ⇒ Object
6279 6280 6281 6282 6283 6284 6285 6286 6287 |
# File 'ext/xproto.c', line 6279 static VALUE r_XCB_Connection_set_access_control(VALUE r_self, VALUE r_mode) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __mode = FIX2INT(r_mode); xcb_set_access_control(connection, __mode); return Qnil; } |
#set_clip_rectangles(r_ordering, r_gc, r_clip_x_origin, r_clip_y_origin, r_rectangles) ⇒ Object
5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 |
# File 'ext/xproto.c', line 5438 static VALUE r_XCB_Connection_set_clip_rectangles(VALUE r_self, VALUE r_ordering, VALUE r_gc, VALUE r_clip_x_origin, VALUE r_clip_y_origin, VALUE r_rectangles) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __ordering = FIX2INT(r_ordering); uint32_t __gc = FIX2INT(r_gc); uint16_t __clip_x_origin = FIX2INT(r_clip_x_origin); uint16_t __clip_y_origin = FIX2INT(r_clip_y_origin); Check_Type(r_rectangles, T_ARRAY); int __rectangles_len = RARRAY_LEN(r_rectangles); xcb_rectangle_t __rectangles[__rectangles_len]; int i; for (i = 0; i < __rectangles_len; i += 1) { xcb_rectangle_t *data; VALUE r_data = rb_ary_entry(r_rectangles, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_RECTANGLE) rb_raise(rb_eTypeError, "expected RECTANGLE"); Data_Get_Struct(r_data, xcb_rectangle_t, data); __rectangles[i] = *data; } xcb_set_clip_rectangles(connection, __ordering, __gc, __clip_x_origin, __clip_y_origin, __rectangles_len, __rectangles); return Qnil; } |
#set_close_down_mode(r_mode) ⇒ Object
6288 6289 6290 6291 6292 6293 6294 6295 6296 |
# File 'ext/xproto.c', line 6288 static VALUE r_XCB_Connection_set_close_down_mode(VALUE r_self, VALUE r_mode) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __mode = FIX2INT(r_mode); xcb_set_close_down_mode(connection, __mode); return Qnil; } |
#set_dashes(r_gc, r_dash_offset, r_dashes) ⇒ Object
5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 |
# File 'ext/xproto.c', line 5422 static VALUE r_XCB_Connection_set_dashes(VALUE r_self, VALUE r_gc, VALUE r_dash_offset, VALUE r_dashes) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __gc = FIX2INT(r_gc); uint16_t __dash_offset = FIX2INT(r_dash_offset); Check_Type(r_dashes, T_ARRAY); int __dashes_len = RARRAY_LEN(r_dashes); uint8_t __dashes[__dashes_len]; int i; for (i = 0; i < __dashes_len; i += 1) __dashes[i] = FIX2INT(rb_ary_entry(r_dashes, i)); xcb_set_dashes(connection, __gc, __dash_offset, __dashes_len, __dashes); return Qnil; } |
#set_font_path(r_font) ⇒ Object
5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 |
# File 'ext/xproto.c', line 5325 static VALUE r_XCB_Connection_set_font_path(VALUE r_self, VALUE r_font) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); Check_Type(r_font, T_ARRAY); int __font_len = RARRAY_LEN(r_font); xcb_str_t __font[__font_len]; int i; for (i = 0; i < __font_len; i += 1) { xcb_str_t *data; VALUE r_data = rb_ary_entry(r_font, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_STR) rb_raise(rb_eTypeError, "expected STR"); Data_Get_Struct(r_data, xcb_str_t, data); __font[i] = *data; } xcb_set_font_path(connection, __font_len, __font); return Qnil; } |
#set_image_data(r_drawable, r_x, r_y, r_w, r_h, r_data) ⇒ Object
4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 |
# File 'ext/xproto.c', line 4625 static VALUE r_XCB_Connection_set_image_data(VALUE r_self, VALUE r_drawable, VALUE r_x, VALUE r_y, VALUE r_w, VALUE r_h, VALUE r_data) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); xcb_drawable_t __drawable = FIX2INT(r_drawable); int16_t __x = FIX2INT(r_x); int16_t __y = FIX2INT(r_y); uint16_t __w = FIX2INT(r_w); uint16_t __h = FIX2INT(r_h); Check_Type(r_data, T_STRING); int __data_len = RSTRING_LEN(r_data); char *__data = RSTRING_PTR(r_data); uint32_t pixmap = xcb_generate_id(connection); xcb_create_pixmap(connection, 24, pixmap, __drawable, __w, __h); uint32_t gc = xcb_generate_id(connection); xcb_create_gc(connection, gc, pixmap, 0, NULL); xcb_put_image(connection, XCB_IMAGE_FORMAT_Z_PIXMAP, pixmap, gc, __w, __h, __x, __y, 0, 24, __data_len, (uint8_t*) __data); xcb_free_gc(connection, gc); xcb_change_window_attributes(connection, __drawable, XCB_CW_BACK_PIXMAP, &pixmap); xcb_map_window(connection, __drawable); xcb_clear_area(connection, 0, __drawable, 0, 0, 0, 0); xcb_flush(connection); return Qnil; } |
#set_input_focus(r_revert_to, r_focus, r_time) ⇒ Object
5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 |
# File 'ext/xproto.c', line 5196 static VALUE r_XCB_Connection_set_input_focus(VALUE r_self, VALUE r_revert_to, VALUE r_focus, VALUE r_time) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __revert_to = FIX2INT(r_revert_to); uint32_t __focus = FIX2INT(r_focus); uint32_t __time = FIX2INT(r_time); xcb_set_input_focus(connection, __revert_to, __focus, __time); return Qnil; } |
#set_modifier_mapping(r_keycodes_per_modifier, r_keycodes) ⇒ Object
6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 |
# File 'ext/xproto.c', line 6359 static VALUE r_XCB_Connection_set_modifier_mapping(VALUE r_self, VALUE r_keycodes_per_modifier, VALUE r_keycodes) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __keycodes_per_modifier = FIX2INT(r_keycodes_per_modifier); Check_Type(r_keycodes, T_ARRAY); int __keycodes_len = RARRAY_LEN(r_keycodes); uint8_t __keycodes[__keycodes_len]; int i; for (i = 0; i < __keycodes_len; i += 1) __keycodes[i] = FIX2INT(rb_ary_entry(r_keycodes, i)); = xcb_set_modifier_mapping(connection, __keycodes_per_modifier, __keycodes); xcb_set_modifier_mapping_reply_t *reply = xcb_set_modifier_mapping_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_SetModifierMappingReply, NULL, NULL, reply); } |
#set_pointer_mapping(r_map) ⇒ Object
6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 |
# File 'ext/xproto.c', line 6331 static VALUE r_XCB_Connection_set_pointer_mapping(VALUE r_self, VALUE r_map) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); Check_Type(r_map, T_ARRAY); int __map_len = RARRAY_LEN(r_map); uint8_t __map[__map_len]; int i; for (i = 0; i < __map_len; i += 1) __map[i] = FIX2INT(rb_ary_entry(r_map, i)); = xcb_set_pointer_mapping(connection, __map_len, __map); xcb_set_pointer_mapping_reply_t *reply = xcb_set_pointer_mapping_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_SetPointerMappingReply, NULL, NULL, reply); } |
#set_screen_saver(r_timeout, r_interval, r_prefer_blanking, r_allow_exposures) ⇒ Object
6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 |
# File 'ext/xproto.c', line 6229 static VALUE r_XCB_Connection_set_screen_saver(VALUE r_self, VALUE r_timeout, VALUE r_interval, VALUE r_prefer_blanking, VALUE r_allow_exposures) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint16_t __timeout = FIX2INT(r_timeout); uint16_t __interval = FIX2INT(r_interval); uint8_t __prefer_blanking = FIX2INT(r_prefer_blanking); uint8_t __allow_exposures = FIX2INT(r_allow_exposures); xcb_set_screen_saver(connection, __timeout, __interval, __prefer_blanking, __allow_exposures); return Qnil; } |
#set_selection_owner(r_owner, r_selection, r_time) ⇒ Object
4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 |
# File 'ext/xproto.c', line 4943 static VALUE r_XCB_Connection_set_selection_owner(VALUE r_self, VALUE r_owner, VALUE r_selection, VALUE r_time) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __owner = FIX2INT(r_owner); uint32_t __selection = FIX2INT(r_selection); uint32_t __time = FIX2INT(r_time); xcb_set_selection_owner(connection, __owner, __selection, __time); return Qnil; } |
#store_colors(r_cmap, r_items) ⇒ Object
5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 |
# File 'ext/xproto.c', line 5961 static VALUE r_XCB_Connection_store_colors(VALUE r_self, VALUE r_cmap, VALUE r_items) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); Check_Type(r_items, T_ARRAY); int __items_len = RARRAY_LEN(r_items); xcb_coloritem_t __items[__items_len]; int i; for (i = 0; i < __items_len; i += 1) { xcb_coloritem_t *data; VALUE r_data = rb_ary_entry(r_items, i); if (TYPE(r_data) != T_DATA || RBASIC(r_data)->klass != r_XCB_COLORITEM) rb_raise(rb_eTypeError, "expected COLORITEM"); Data_Get_Struct(r_data, xcb_coloritem_t, data); __items[i] = *data; } xcb_store_colors(connection, __cmap, __items_len, __items); return Qnil; } |
#store_named_color(r_flags, r_cmap, r_pixel, r_name) ⇒ Object
5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 |
# File 'ext/xproto.c', line 5982 static VALUE r_XCB_Connection_store_named_color(VALUE r_self, VALUE r_flags, VALUE r_cmap, VALUE r_pixel, VALUE r_name) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __flags = FIX2INT(r_flags); uint32_t __cmap = FIX2INT(r_cmap); uint32_t __pixel = FIX2INT(r_pixel); Check_Type(r_name, T_ARRAY); int __name_len = RARRAY_LEN(r_name); char __name[__name_len]; int i; for (i = 0; i < __name_len; i += 1) __name[i] = FIX2INT(rb_ary_entry(r_name, i)); xcb_store_named_color(connection, __flags, __cmap, __pixel, __name_len, __name); return Qnil; } |
#translate_coordinates(r_src_window, r_dst_window, r_src_x, r_src_y) ⇒ Object
5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 |
# File 'ext/xproto.c', line 5165 static VALUE r_XCB_Connection_translate_coordinates(VALUE r_self, VALUE r_src_window, VALUE r_dst_window, VALUE r_src_x, VALUE r_src_y) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __src_window = FIX2INT(r_src_window); uint32_t __dst_window = FIX2INT(r_dst_window); uint16_t __src_x = FIX2INT(r_src_x); uint16_t __src_y = FIX2INT(r_src_y); = xcb_translate_coordinates(connection, __src_window, __dst_window, __src_x, __src_y); xcb_translate_coordinates_reply_t *reply = xcb_translate_coordinates_reply(connection, , NULL); if (reply == NULL) return Qnil; return Data_Wrap_Struct(r_XCB_TranslateCoordinatesReply, NULL, NULL, reply); } |
#ungrab_button(r_button, r_grab_window, r_modifiers) ⇒ Object
5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 |
# File 'ext/xproto.c', line 5041 static VALUE (VALUE r_self, VALUE , VALUE r_grab_window, VALUE r_modifiers) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t = FIX2INT(); uint32_t __grab_window = FIX2INT(r_grab_window); uint16_t __modifiers = FIX2INT(r_modifiers); (connection, , __grab_window, __modifiers); return Qnil; } |
#ungrab_key(r_key, r_grab_window, r_modifiers) ⇒ Object
5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 |
# File 'ext/xproto.c', line 5102 static VALUE r_XCB_Connection_ungrab_key(VALUE r_self, VALUE r_key, VALUE r_grab_window, VALUE r_modifiers) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint8_t __key = FIX2INT(r_key); uint32_t __grab_window = FIX2INT(r_grab_window); uint16_t __modifiers = FIX2INT(r_modifiers); xcb_ungrab_key(connection, __key, __grab_window, __modifiers); return Qnil; } |
#ungrab_keyboard(r_time) ⇒ Object
5079 5080 5081 5082 5083 5084 5085 5086 5087 |
# File 'ext/xproto.c', line 5079 static VALUE r_XCB_Connection_ungrab_keyboard(VALUE r_self, VALUE r_time) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __time = FIX2INT(r_time); xcb_ungrab_keyboard(connection, __time); return Qnil; } |
#ungrab_pointer(r_time) ⇒ Object
5015 5016 5017 5018 5019 5020 5021 5022 5023 |
# File 'ext/xproto.c', line 5015 static VALUE r_XCB_Connection_ungrab_pointer(VALUE r_self, VALUE r_time) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __time = FIX2INT(r_time); xcb_ungrab_pointer(connection, __time); return Qnil; } |
#ungrab_server ⇒ Object
5131 5132 5133 5134 5135 5136 5137 5138 |
# File 'ext/xproto.c', line 5131 static VALUE r_XCB_Connection_ungrab_server(VALUE r_self) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); xcb_ungrab_server(connection); return Qnil; } |
#uninstall_colormap(r_cmap) ⇒ Object
5859 5860 5861 5862 5863 5864 5865 5866 5867 |
# File 'ext/xproto.c', line 5859 static VALUE r_XCB_Connection_uninstall_colormap(VALUE r_self, VALUE r_cmap) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __cmap = FIX2INT(r_cmap); xcb_uninstall_colormap(connection, __cmap); return Qnil; } |
#unmap_subwindows(r_window) ⇒ Object
4770 4771 4772 4773 4774 4775 4776 4777 4778 |
# File 'ext/xproto.c', line 4770 static VALUE r_XCB_Connection_unmap_subwindows(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); xcb_unmap_subwindows(connection, __window); return Qnil; } |
#unmap_window(r_window) ⇒ Object
4761 4762 4763 4764 4765 4766 4767 4768 4769 |
# File 'ext/xproto.c', line 4761 static VALUE r_XCB_Connection_unmap_window(VALUE r_self, VALUE r_window) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __window = FIX2INT(r_window); xcb_unmap_window(connection, __window); return Qnil; } |
#warp_pointer(r_src_window, r_dst_window, r_src_x, r_src_y, r_src_width, r_src_height, r_dst_x, r_dst_y) ⇒ Object
5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 |
# File 'ext/xproto.c', line 5180 static VALUE r_XCB_Connection_warp_pointer(VALUE r_self, VALUE r_src_window, VALUE r_dst_window, VALUE r_src_x, VALUE r_src_y, VALUE r_src_width, VALUE r_src_height, VALUE r_dst_x, VALUE r_dst_y) { xcb_connection_t *connection; Data_Get_Struct(r_self, xcb_connection_t, connection); uint32_t __src_window = FIX2INT(r_src_window); uint32_t __dst_window = FIX2INT(r_dst_window); uint16_t __src_x = FIX2INT(r_src_x); uint16_t __src_y = FIX2INT(r_src_y); uint16_t __src_width = FIX2INT(r_src_width); uint16_t __src_height = FIX2INT(r_src_height); uint16_t __dst_x = FIX2INT(r_dst_x); uint16_t __dst_y = FIX2INT(r_dst_y); xcb_warp_pointer(connection, __src_window, __dst_window, __src_x, __src_y, __src_width, __src_height, __dst_x, __dst_y); return Qnil; } |